Names exactly one of file_object, file_set, or field by @id, and
optionally how values are extracted and transformed.
Usage
Source(
file_object = NULL,
file_set = NULL,
record_set = NULL,
field = NULL,
extract = NULL,
transform = NULL,
format = NULL,
sampling_rate = NULL,
other_properties = NULL
)Arguments
- file_object
Optional Character:
@idof aFileObject.- file_set
Optional Character:
@idof aFileSet.- record_set
Optional Character:
@idof aRecordSet.- field
Optional Character:
@idof aField.- extract
Optional
Extractobject.- transform
Optional List:
Transformobjects, applied in order.- format
Optional Character: Format of the source values.
- sampling_rate
Optional Numeric: Sampling rate of audio content.
- other_properties
Optional List: Properties without a typed counterpart, keyed by canonical JSON-LD key, with their parsed JSON values.
Examples
Source(file_object = "passengers.csv", extract = Extract(column = "name"))#> <croissant::Source>
#> @ file_object : chr "passengers.csv"
#> @ file_set : NULL
#> @ record_set : NULL
#> @ field : NULL
#> @ extract : <croissant::Extract>
#> .. @ column : chr "name"
#> .. @ file_property : NULL
#> .. @ json_path : NULL
#> .. @ other_properties: NULL
#> @ transform : NULL
#> @ format : NULL
#> @ sampling_rate : NULL
#> @ other_properties: NULL