pbiGenerateTableSchema: Generate a table schema.

Description Usage Arguments Value Examples

View source: R/pbiGenerateTableSchema.R

Description

Use a data frame to infer data types and produce a list object that can be converted to compatible JSON. See here: https://msdn.microsoft.com/en-us/library/mt203560.aspx

Usage

1

Arguments

df

Data frame - the data used to infer the table schema.

tableName

A character string. When is not NULL, it will override the default of using the variable name as the table name.

debug

When TRUE, it will return a list object converted from the JSON so that you can see what the R object should look like.

Value

List object or JSON to be passed into the body of a request.

Examples

1
pbiGenerateTableSchema(iris, debug = TRUE) # It will coerce objects to data frames if it can.

olfrost/poweRbi documentation built on May 6, 2019, 6:05 p.m.