Learn R Programming

gen5helper (version 1.0.1)

saveRDS_: saveRDS and return .data

Description

This function returns the object passed in, can be used for dplyr pipeline.

Usage

saveRDS_(.data, file, ...)

Arguments

.data

object to be saved

file

filename to save

...

for saveRDS

Value

whatever object passed in.

Examples

Run this code
# NOT RUN {
data <- data.frame(a=1, b=2, c=3)
data %>%
    saveRDS_(file.path(tempdir(), "data.rds")) %>%
    print()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab