Skip to contents

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: @id of a FileObject.

file_set

Optional Character: @id of a FileSet.

record_set

Optional Character: @id of a RecordSet.

field

Optional Character: @id of a Field.

extract

Optional Extract object.

transform

Optional List: Transform objects, 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.

Value

Source object.

Author

EDG

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