Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function format_json_rowwise() #300

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
document format_json_rowwise
mgirlich committed Dec 10, 2019

Verified

This commit was signed with the committer’s verified signature.
sandhose Quentin Gliech
commit 2050a3f5bcd794f9df445f6b1ec631fb90a4214f
5 changes: 5 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -2,6 +2,9 @@

S3method(print,json)
S3method(print,scalar)
S3method(vec_ptype2.json,character)
S3method(vec_ptype2.json,default)
S3method(vec_ptype2.json,json)
export(base64_dec)
export(base64_enc)
export(flatten)
@@ -18,6 +21,8 @@ export(toJSON)
export(unbox)
export(unserializeJSON)
export(validate)
export(vec_ptype2.character.json)
export(vec_ptype2.json)
export(write_json)
import(methods)
useDynLib(jsonlite,C_collapse_array)
10 changes: 5 additions & 5 deletions R/format_json_rowwise.R
Original file line number Diff line number Diff line change
@@ -6,11 +6,11 @@
#' @examples
#' format_json_rowwise(mtcars[1:3, ])
#' \dontrun{
#' dplyr::transmute(
#' iris,
#' Species,
#' json_col = format_json_rowwise(dplyr::tibble(Sepal.Length, Sepal.Width))
#' )
#' dplyr::transmute(
#' iris,
#' Species,
#' json_col = format_json_rowwise(dplyr::tibble(Sepal.Length, Sepal.Width))
#' )
#' }
format_json_rowwise <- function(df, matrix = c("rowmajor", "columnmajor"),
Date = c("ISO8601", "epoch"), POSIXt = c("string", "ISO8601", "epoch", "mongo"),
70 changes: 70 additions & 0 deletions man/format_json_rowwise.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.