R - Dump

Card Puncher Data Processing

Snippet

df=data.frame(a=1:2,b=4:5)
x="Nico"
dump(c("df","x"),file="data.R")
rm(df,x)
source("data.R")
df

The dump function will create a R script that you can call with source

a b
1 1 4
2 2 5

x
[1] "Nico"





Discover More
Card Puncher Data Processing
R - (Object|Variable|Symbol)

R provides a number of specialized objects. They are created (instantiated), used and referenced through variable (known as symbol). When you read the term object in the documentation, you can interchange...



Share this page:
Follow us:
Task Runner