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

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

SimonGreenhill/rcldf documentation built on Dec. 7, 2024, 7:33 p.m.