lucC_toJSON: Save result as JSON format

Description Usage Arguments Value Author(s) Examples

Description

Save the output data in JSON format in an user's directory

Usage

1
lucC_toJSON (data_tb, path_json_file = NULL)

Arguments

data_tb

Tibble. A data frame with input values

path_json_file

Character. Name path and file to save JSON file data

Value

JSON format to file stored

Author(s)

Adeline M. Maciel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 

library(lucC)

lucC_starting_point()

file_csv = "./data/example_TWDTW.csv"

input_tb_csv <- file_csv %>% 
  lucC_fromCSV(separator = ",", header_file = TRUE) #%>% 
input_tb_csv

# save the input as json format
output_file = "~/Desktop/example_json.json"
lucC_toJSON(input_tb_csv, output_file)


## End(Not run)

ammaciel/stilf documentation built on May 10, 2019, 10:28 a.m.