to_rds: Save object as RDS, with name automatically defined

View source: R/io.R

to_rdsR Documentation

Save object as RDS, with name automatically defined

Description

Similar to the Plot() function, but for any R object. This is useful for quickly saving data for use in other sessions. For example, if one must compile tables of all p-values for manuscript submission.

Usage

to_rds(obj, file = NULL, path = NULL, suffix = "")

Arguments

file

File name to write. If NULL, the name will be based on the md5sum of the object, so the name will change if the object changes.

path

Path to write to. If NULL, the path will be .data/.

suffix

File name suffix

object

Any R object


leylabmpi/LeyLabRMisc documentation built on Nov. 3, 2022, 3:45 p.m.