Skip to contents

Transform: a transformation applied to extracted values

Usage

Transform(
  format = NULL,
  json_path = NULL,
  read_lines = NULL,
  regex = NULL,
  replace = NULL,
  sampling_rate = NULL,
  separator = NULL,
  un_archive = NULL,
  other_properties = NULL
)

Arguments

format

Optional Character: Format used to parse the value, such as a date format.

json_path

Optional Character: JSONPath expression.

read_lines

Optional Logical: Whether to split the content into lines.

regex

Optional Character: Regular expression whose first capture group is kept.

replace

Optional Character: Replacement pattern.

sampling_rate

Optional Numeric: Sampling rate of audio content.

separator

Optional Character: Separator used to split the value.

un_archive

Optional Logical: Whether to extract an archive.

other_properties

Optional List: Properties without a typed counterpart, keyed by canonical JSON-LD key, with their parsed JSON values.

Value

Transform object.

Author

EDG

Examples

Transform(regex = "^(\\d+)_.*$")
#> <croissant::Transform>
#>  @ format          : NULL
#>  @ json_path       : NULL
#>  @ read_lines      : NULL
#>  @ regex           : chr "^(\\d+)_.*$"
#>  @ replace         : NULL
#>  @ sampling_rate   : NULL
#>  @ separator       : NULL
#>  @ un_archive      : NULL
#>  @ other_properties: NULL