as_tibble.tbl_json: Convert a tbl_json back to a tbl_df

View source: R/tbl_json.R

as_tibble.tbl_jsonR Documentation

Convert a tbl_json back to a tbl_df

Description

Drops the JSON attribute and the tbl_json class, so that we are back to a pure tbl_df. Useful for some internals. Also useful when you are done processing the JSON portion of your data and are ready to move on to other tools.

Usage

## S3 method for class 'tbl_json'
as_tibble(x, ...)

as_data_frame.tbl_json(x, ...)

Arguments

x

a tbl_json object

...

additional parameters

Details

Note that as.tbl calls tbl_df under the covers, which in turn calls as_tibble. As a result, this should take care of all cases.

Value

a tbl_df object (with no tbl_json component)


tidyjson documentation built on Jan. 7, 2023, 1:14 a.m.