save_json: Save dt into several json files

Description Usage Arguments Examples

Description

Save dt into several json files

Usage

1
save_json(dt, out_folder = "out/", json_file_name = "file", nt = 5)

Arguments

dt

the input data table

out_folder

place to put output files

json_file_name

names of the output json files

nt

number of threads to use in parallel computing

Examples

1
2
3
dt <- data.table(num = 1:26, lett = letters, LETT = LETTERS)
cm::save_json(dt, json_file_name = 'test', nt = 3)
jsonlite::read_json('out/file_2.json', simplifyVector = TRUE)

mucun1988/cm documentation built on May 5, 2019, 8:02 p.m.