to_dwc: Convert variable names

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Convert variable names to Darwin Core or FinBIF R package native style.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
to_dwc(...)

to_native(...)

from_schema(
  ...,
  to = c("native", "dwc", "short"),
  file = c("none", "citable", "lite"),
  locale = c("en", "fi", "sv")
)

Arguments

...

Character. Variable names to convert. For to_dwc and to_native the names must be in the opposite format. For from_schema the names must be from the FinBIF schema (e.g., names returned by https://api.laji.fi) or a FinBIF download file (citable or lite).

to

Character. Type of variable names to convert to.

file

Character. For variable names that are derived from a FinBIF download file which type of file.

locale

Character. For variable names from a lite download file which locale the file is in.

Value

Character vector.

Examples

1
to_dwc("record_id", "date_time", "scientific_name")

finbif documentation built on Sept. 5, 2021, 5:43 p.m.