search for: free_test

Displaying 3 results from an estimated 3 matches for "free_test".

Did you mean: free_list
2007 Nov 22
3
Naming elements of a list
...ion. I am aware that there is an attach function which you need to call. The attach function will accept a list. However, I don't seem to be able to create the list properly. (Or should I use a frame instead?) free_driver <- function (){ i <- numeric (1) attach (as.list (i)) i <- 25 free_test () } free_test <- function (){ print ("i =") print (i) return () } Anyway, here is the output, starting with the load operation: ------------------------------------------------------------------ > free_driver <- function (){ + i <- numeric (1) + attach (as.list (i)) + i...
2007 Nov 23
1
Problem with environments
...rting with the load operation; ---------------------------------------------------------------------------- > # function bar_driver > > free_driver <- function (){ + i <- 25 + attach_list <- list (i = i) + print1 ("attach_list = ", attach_list) + attach (attach_list) + free_test () + + } > free_test <- function (){ + print ("entering free_test") + print1 ("i") + return () + + } > [1] "attach_list = " $i [1] 25 The following object(s) are masked _by_ .GlobalEnv : i [1] "entering free_test" [1] "i&qu...
2007 Nov 23
0
R users in Cyprus
...ion. I am aware that there is an attach function which you need to call. The attach function will accept a list. However, I don't seem to be able to create the list properly. (Or should I use a frame instead?) free_driver <- function (){ i <- numeric (1) attach (as.list (i)) i <- 25 free_test () } free_test <- function (){ print ("i =") print (i) return () } Anyway, here is the output, starting with the load operation: ------------------------------------------------------------------ > free_driver <- function (){ + i <- numeric (1) + attach (as.list (i)) + i...