Skip to content

Instantly share code, notes, and snippets.

@Planeshifter
Created August 12, 2020 14:42
Show Gist options
  • Save Planeshifter/43312dc3f141602a8044f8e6b26a6481 to your computer and use it in GitHub Desktop.
Save Planeshifter/43312dc3f141602a8044f8e6b26a6481 to your computer and use it in GitHub Desktop.
R Script to save data in JSON
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