search for: x1x2file

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

Did you mean: 1xfile
2010 Jul 23
2
randomness using runif
...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 values look identical to x1 and x2, but let's check by loading the x1x2 file and...