Learn R Programming

fr (version 0.5.1)

as_fr_tdr: Coerce a data frame into a fr_tdr object

Description

Coerce a data frame into a fr_tdr object

Usage

as_fr_tdr(x, ...)

Value

a fr_tdr object

Arguments

x

a data.frame

...

<dynamic-dots> required (name) and optional tabular-data-resource properties (e.g., path, version, title, homepage, description)

Details

Use the .template argument to provide a template fr_tdr object from which table-specific (i.e. "name", "version", "title", "homepage", "description") and field-specific metadata will be copied; note that all metadata provided in ... will be ignored if this argument is provided

Examples

Run this code
as_fr_tdr(mtcars, name = "mtcars")
S7::prop(as_fr_tdr(mtcars, name = "mtcars"), "schema")

Run the code above in your browser using DataLab