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 April 25, 2024, 8:27 a.m.