Re: [R] write.xls dont find the object in function

2011-12-23 Thread Ronaldo Reis Júnior
Em 20-12-2011 14:09, MacQueen, Don escreveu: > Or: > >> require(xlsx) >> test<- function(x){ > +a<- data.frame(A=c(1,2),B=c(10,11)) > +write.xlsx(a,file="a.xlsx") > + } >> test() >> list.files(patt='xlsx') > [1] "a.xlsx" > > > > Thanks, with the write.xlsx all work. Inte Ronaldo -- 3

Re: [R] write.xls dont find the object in function

2011-12-20 Thread MacQueen, Don
Or: > require(xlsx) > test <- function(x){ +a <- data.frame(A=c(1,2),B=c(10,11)) +write.xlsx(a,file="a.xlsx") + } > test() > list.files(patt='xlsx') [1] "a.xlsx" -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 12

Re: [R] write.xls dont find the object in function

2011-12-19 Thread Uwe Ligges
On 19.12.2011 13:30, Ronaldo Reis Júnior wrote: Em 18-12-2011 18:55, Rolf Turner escreveu: On 19/12/11 04:29, Uwe Ligges wrote: On 18.12.2011 12:58, Ronaldo Reis Júnior wrote: Why the write.xls dont find the object a inside a function? Because at least that part of the function is poo

Re: [R] write.xls dont find the object in function

2011-12-19 Thread Ronaldo Reis Júnior
Em 18-12-2011 18:55, Rolf Turner escreveu: > On 19/12/11 04:29, Uwe Ligges wrote: >> >> >> On 18.12.2011 12:58, Ronaldo Reis Júnior wrote: > > >>> Why the write.xls dont find the object a inside a function? >> >> Because at least that part of the function is poorly written. > > Surely this should

Re: [R] write.xls dont find the object in function

2011-12-18 Thread Rolf Turner
On 19/12/11 04:29, Uwe Ligges wrote: On 18.12.2011 12:58, Ronaldo Reis Júnior wrote: Why the write.xls dont find the object a inside a function? Because at least that part of the function is poorly written. Surely this should be a fortune! cheers, Rolf ___

Re: [R] write.xls dont find the object in function

2011-12-18 Thread Uwe Ligges
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