Good morning , i want to read in a file with the xlsx package... the documentation says, that i could define the desired destination with an absolute path. the argument 'file' in the function-call should be: quote : "file->the absolute path to the file which the data are to be read from" (http://cran.r-project.org/web/packages/xlsx/xlsx.pdf ; pagina 14) 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? Thanks in advance. Best regards, Nero -- View this message in context: http://r.789695.n4.nabble.com/xlsx-path-input-tp2306056p2306056.html Sent from the R help mailing list archive at Nabble.com.
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