tidyjson (version 0.2.4)

bind_rows: Bind Rows (tidyjson)

Description

Since bind_rows is not currently an s3 method, this function is meant to mask dplyr::bind_rows (although it is called directly).

Usage

bind_rows(...)

Arguments

...

Values passed on to dplyr::bind_rows

Value

If all parameters are `tbl_json` objects, then the JSON attributes will be stacked and a `tbl_json` will be returned. Otherwise, `dplyr::bind_rows` is used, a message is displayed, and a `tbl_df` is returned.

See Also

[Related dplyr issue](https://github.com/tidyverse/dplyr/issues/2457)

bind_rows

Examples

Run this code
# NOT RUN {
## Simple example
a <- as.tbl_json('{"a": 1, "b": 2}')
b <- as.tbl_json('{"a": 3, "b": 4}')

bind_rows(a,b) %>% spread_values(a=jnumber(a),b=jnumber(b))

## as a list
bind_rows(list(a,b)) %>% spread_all()

# }

Run the code above in your browser using DataLab