[R] re ad and check table

mysimbaa adel.tekari at sisltd.ch
Fri Jul 18 17:51:40 CEST 2008


Dear R users,
I want to read a file like following :

if it is a table then z <- read.table(pathname, dec=".", header=TRUE)
else if it's not a table (image,doc,...) then send an error or something
like that

acually I have a read.table in the beginnig of my R code, and if my data is
not a table I become in my R console : fail in scan.
So the question is how to check the nature of the file?
something like : is.table?
I don't know the function.

Thanks for any help
Adel
-- 
View this message in context: http://www.nabble.com/read-and-check-table-tp18532292p18532292.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list