search for: objectstosave

Displaying 1 result from an estimated 1 matches for "objectstosave".

2010 Jul 23
2
randomness using runif
...lgorithm at all, but from the behavior I'm seeing, it seems that whenever I open a new R console, the function runif gets "reset" to some initial value. For example... In a NEW R console, enter the following: x1 <- runif(1000, -1, 1) x2 <- runif(1000, -1, 1) x1[1:5] x2[1:5] objectsToSave <- c("x1", "x2") filename <- "C:\\Documents\\x1x2file.Rdata" save(list=objectsToSave, file=filename, envir = parent.frame()) Then in a different NEW R console, enter this: x3 <- runif(1000, -1, 1) x4 <- runif(1000, -1, 1) x3[1:5] x4[1:5] # For me, the...