powered by
This is the only mechanism to add metadata to a disk.frame at the moment.
add_meta(df, ..., nchunks = nchunks.disk.frame(df), shardkey = "", shardchunks = -1)
a disk.frame
any other metadata the user wishes to keep.
number of chunks
the shard key
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
# 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