get_table_from: Extracts a single table from a CLDF dataset.

View source: R/get_table_from.R

get_table_fromR Documentation

Extracts a single table from a CLDF dataset.

Description

Extracts a single table from a CLDF dataset.

Usage

get_table_from(
  table,
  mdpath,
  cache_dir = tools::R_user_dir("rcldf", which = "cache")
)

Arguments

table

a CLDF table type

mdpath

a path to a CLDF file

cache_dir

a directory to cache downloaded files to

Value

a dataframe

Examples

md_json <- system.file("extdata/huon", "cldf-metadata.json", package = "rcldf")
df <- get_table_from("LanguageTable", md_json)

SimonGreenhill/rcldf documentation built on July 4, 2025, 10:22 p.m.