Learn R Programming

disk.frame (version 0.1.0)

add_meta: Add metadata to the disk.frame

Description

Add metadata to the disk.frame

Usage

add_meta(df, ..., nchunks = nchunks.disk.frame(df), shardkey = "",
  shardchunks = -1)

Arguments

df

a disk.frame

...

any other metadata the user wishes to keep.

nchunks

number of chunks

shardkey

the shard key

shardchunks

The number of chunks to shard to. Sometimes the number of actual file chunks is different to the number of intended chunks. In this case the shardchunks is the intended number

Examples

Run this code
# NOT RUN {
cars.df = as.disk.frame(cars)

# adding some useless metadata to the repo
add_meta(cars.df, useless = TRUE)

# clean up
delete(cars.df)
# }

Run the code above in your browser using DataLab