cldf: Reads a Cross-Linguistic Data Format dataset into an object.

View source: R/rcldf.R

cldfR Documentation

Reads a Cross-Linguistic Data Format dataset into an object.

Description

Reads a Cross-Linguistic Data Format dataset into an object.

Usage

cldf(
  mdpath,
  load_bib = TRUE,
  cache_dir = tools::R_user_dir("rcldf", which = "cache")
)

read_cldf(mdpath)

Arguments

mdpath

the path to the directory or metadata JSON file.

load_bib

a boolean flag (TRUE/FALSE, default TRUE) to load the sources.bib BibTeX file. load_bib=FALSE can easily speed up loading of a CLDF dataset by an order of magnitude or two, so consider this if you don't need access to the source information.

cache_dir

a directory to cache downloaded files to

Value

A cldf object

Examples

cldfobj <- cldf(system.file("extdata/huon", "cldf-metadata.json", package = "rcldf"))

SimonGreenhill/rcldf documentation built on April 25, 2024, 8:27 a.m.