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
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
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
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
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
___
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
6 matches
Mail list logo