Learn R Programming

mstrio (version 11.3.5.101)

Parser: Download api v2 parser

Description

Parse the JSON response from cube/report v2 download api and convert the data into a R data frame

Arguments

Public fields

response

JSON response from the cube/report v2 download api

Active bindings

response

JSON response from the cube/report v2 download api

Methods

Public methods

Method new()

Usage

Parser$new(response)

Method parse()

Usage

Parser$parse(response)

Method to_dataframe()

Usage

Parser$to_dataframe()

Method clone()

The objects of this class are cloneable with this method.

Usage

Parser$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

Run this code
# NOT RUN {
# Create a parser object
p <- Parser$new(response)

# Parse the first request
p$parse(response)

# Return the data frame
p$to_dataframe()
# }

Run the code above in your browser using DataLab