Description Usage Arguments Value Notes Examples
These functions allow the user to type less when using readRDS and saveRDS. The object name followed by RDS is appended to the file destination.
1 2 3 | savenameRDS(x, dir)
readnameRDS(x, dir, envir = NULL)
|
x |
R object to serialize. |
dir |
The file storage location. |
envir |
The environment to which readnamesRDS assign the R object. The default is NULL in which case it reads in the R object without assigning it. |
all functions return either TRUE or FALSE.
These functions are for convenience only. Does not work with matrix()
since length(matrix)
does not equal 0.
1 2 3 4 5 6 7 8 9 | ## Not run:
x1 <- c(1, 2, 3)
x2 <- data.frame(v1 = 1:10)
savenameRDS(x = x1, dir = getwd())
readnameRDS(x = x1, dir = getwd())
rm(x1)
readnameRDS(x = "x1", dir = getwd(), env = .GlobalEnv)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.