Handbook of Hidden Data Scientist (R)
  • Introduction
  • References
  • Install R
    • Mac OSX
    • Windows
    • Linux
  • Basics
    • Analysis Types
    • Machine Learning
    • Tidy data set
  • R
    • Limitations
    • Documentation
    • Coding Standards
    • Basics and Data Types
    • Data Table
    • Textual Serialization
    • Control Structures
    • Functions
    • Packages
    • Vectorized Operations
    • Date and Time
    • Loop Functions
    • Split Function
    • Random Variables
    • Simulate Linear Model
    • Debugging
    • Profiler
  • Reading and Writing
    • Files
    • Larger Datasets
    • CSV
    • Excel
    • JSON
    • XML and Web pages
    • REST API
    • MySql
    • HDF5
    • Other...
  • Cleaning Data
    • Subsetting
    • Summarizing
    • New Variables
    • Reshaping
    • Merging
    • Editing text
    • Regular Expressions
Powered by GitBook
On this page
  • Write object into file
  • Read object from file
  • Reading and writting multiple objects

Was this helpful?

  1. R

Textual Serialization

We can serialize an object into a file with all the metadata.

Write object into file

data <- data.frame(a=1, b=2)
dput(data, file="data.R")

Read object from file

newData <- dget("data.R")

Reading and writting multiple objects

dump and source functions are used to read and write multiple objects.

Or we can use save and load functions.

PreviousData TableNextControl Structures

Last updated 5 years ago

Was this helpful?