ld: A simplified load function using readRDS().

View source: R/io.R

ldR Documentation

A simplified load function using readRDS().

Description

A simplified load function using readRDS().

Usage

ld(filename, objname = NULL, path = "./data", force = F)

Arguments

filename

expression or char. The file name to be loaded, e.g. ld(x) equals to load(file='dt.rds')

objname

expression or char. The object name in R. If NULL then equals to filename

path

From which subfolder to read the data. Default to '../data'. If './', load from current directory.

force

Whether the object should be reloaded if it's already in the current environment.

Examples

ld(dt)
ld(filename=dt, objname=dt_new, path='../Rdata')

XiaomoWu/utilr documentation built on July 30, 2022, 11:26 a.m.