ez.saver: save one (only one) object to a rds file

ez.saverR Documentation

save one (only one) object to a rds file

Description

save one (only one) object to a rds file

Usage

ez.saver(
  object,
  file = "",
  ascii = FALSE,
  version = NULL,
  compress = TRUE,
  refhook = NULL
)

ez.writer(
  object,
  file = "",
  ascii = FALSE,
  version = NULL,
  compress = TRUE,
  refhook = NULL
)

Note

alias of saveRDS
x=5; saveRDS(x, "my.rds")

usage for save (you have to always explicitly specify file=):
1) save(x, file='my.rda'), save(x, y, file='my.rda'), save('x', y, file='my.rda')
2) save(list='x', file='my.rda'), save(list=c('x', 'y'), file='my.rda')
the variable name will also be the same as when you save
if you want a different name, you have to assign variable to that name first

save.image(file='my.rda')

load(file)


jerryzhujian9/zmisc documentation built on March 9, 2024, 12:49 a.m.