Maybe something like this:
stopifnot(tail(unlist(strsplit("slides.pdf", "\\.")), 1) == "txt")
On Fri, Jul 18, 2008 at 12:51 PM, mysimbaa <[EMAIL PROTECTED]> wrote:
>
> Dear R users,
> I want to read a file like following :
>
> if it is a table then z <- read.table(pathname, dec=".", header=TRUE)
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
2 matches
Mail list logo