read_schemaed_csv: A function to read in a CSV schemaed using JSON Table Schema

Description Usage Arguments Author(s)

Description

A function to read in a CSV schemaed using JSON Table Schema

Usage

1
2
3
  read_schemaed_csv(content, schema,
    overlook.types = FALSE, factorize.foreign.keys = TRUE,
    getter, ...)

Arguments

content

The content to convert. This can either be a String of CSV, a local filename, or a URL.

schema

Optionally, you can provide a separate schema for the message contained in the content parameter. This can be either the JSON itself, a local file reference, or a URL.

overlook.types

If TRUE, any unrecognized or non-supported type will just be treated as a character vector. Otherwise, the function will terminate upon encountering a non-supported type. The currently supported types are: (boolean, string, integer, and number).

factorize.foreign.keys

When TRUE (default), any column leveraging the (non-standardized, at the time of writing – see https://github.com/dataprotocols/dataprotocols/issues/23) foreign-key functionality of JSON Table Schemas will be handled as a fator, mapping the underlying key to the presented form. Currently, this only works with foreign keys that map integers to strings.

getter

The Getter to use when retrieving the specified data. By default, the getter will be inferred based on the structure of the content parameter. Alternatively, you can explicitly set one here, or even provide a custom getter.

...

Additional arugments to be passed to incorporate-foreign-keys (unexported, but publicly documented in this package).

Author(s)

Jeffrey D. Allen Jeffrey.Allen@UTSouthwestern.edu


QBRC/RODProt documentation built on May 8, 2019, 3:11 p.m.