Displaying 1 result from an estimated 1 matches for "funsave".
Did you mean:
funsafe
2006 Nov 15
1
save objects from function (PR#9365)
Full_Name: Dragan Sestovic
Version: 2.3.0
OS: Windows XP
Submission from: (NULL) (139.149.1.194)
I can not save R objects from function using "save". The simple example is
below:
I do not understand why function funSave.1 fails. Also, why does function
funSave.2 work?
> funSave.1 <- function(a)
+ {
+ save(a, file="a.1.dat")
+ }
>
> funSave.2 <- function(a)
+ {
+ b <- a
+ save(a, file="a.2.dat")
+ }
>
> a <- 1:10
> a
[1] 1 2 3 4 5 6 7 8 9 10
>...