[R] xlsx [path input]
Stefan Grosse
singularitaet at gmx.net
Thu Jul 29 11:56:38 CEST 2010
Am 29.07.2010 09:24, schrieb nero:
> But it doesn´t work. It only works, if i put the file into the
> xlsx-directory and set a dynamic path.
> a short example:
>
> http://r.789695.n4.nabble.com/file/n2306056/example_loading_xls.png
>
> But the file is there...
> Am i missing something?
Lukas,
You have probably misspecified your path. Maybe it is better to use setwd:
setwd("c:/Users/[INSERT YOUR USERNAME]/Documents")
# our your path with desktop, make sure the file is there
# you could check with dir()
library(xlsx)
read.xlsx("test.xlsx",1)
A B C
1 1 3 5
2 2 4 6
hth
Stefan
More information about the R-help
mailing list