On 18.12.2011 12:58, Ronaldo Reis Júnior wrote:
Hi,
I try to use write.xls from dataframes2xls inside a function. The
write.xls work normally in console, but inside a function it dont find
the object.
Look this example:
> library(dataframes2xls)
> test<- function(x){
+ a<- data.frame(A=c(1,2),B=c(10,11))
+ write.xls(a,file="a.xls")
+ }
> test()
Erro em get(s[i]) : objeto 'a' não encontrado
Why the write.xls dont find the object a inside a function?
Because at least that part of the function is poorly written.
Uwe Ligges
Thanks
Ronaldo
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.