Created
August 12, 2020 14:42
-
-
Save Planeshifter/43312dc3f141602a8044f8e6b26a6481 to your computer and use it in GitHub Desktop.
R Script to save data in JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(jsonlite) | |
library(readr) | |
diabetes <- readr::read_csv("diabetes.csv") | |
write( toJSON( diabetes, dataframe = "columns" ), "diabetes.json" ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment