sub-.tbl_json: Extract subsets of a tbl_json object (not replace)

[.tbl_jsonR Documentation

Extract subsets of a tbl_json object (not replace)

Description

Extends '[.data.frame' to work with tbl_json objects, so that row filtering of the underlying data.frame also filters the associated JSON.

Usage

## S3 method for class 'tbl_json'
.x[i, j, drop = FALSE]

Arguments

.x

a tbl_json object

i

row elements to extract

j

column elements to extract

drop

whether or not to simplify results

Value

a tbl_json object


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