Package: rcldf 1.6.2

rcldf: Read Linguistic Data in the Cross Linguistic Data Format (CLDF)

Cross-Linguistic Data Format (CLDF) is a framework for storing cross-linguistic data, ensuring compatibility and ease of data exchange between different linguistic datasets see Forkel et al. (2018) <doi:10.1038/sdata.2018.205>. The 'rcldf' package is designed to facilitate the manipulation and analysis of these datasets by simplifying the loading, querying, and visualisation of CLDF datasets making it easier to conduct comparative linguistic analyses, manage language data, and apply statistical methods directly within R.

Authors:Simon J. Greenhill [aut, cre]

rcldf_1.6.2.tar.gz
rcldf_1.6.2.zip(r-4.7)rcldf_1.6.2.zip(r-4.6)rcldf_1.6.2.zip(r-4.5)
rcldf_1.6.2.tgz(r-4.6-any)rcldf_1.6.2.tgz(r-4.5-any)
rcldf_1.6.2.tar.gz(r-4.7-any)rcldf_1.6.2.tar.gz(r-4.6-any)
rcldf_1.6.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
rcldf/json (API)
NEWS

# Install 'rcldf' in R:
install.packages('rcldf', repos = c('https://simongreenhill.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/simongreenhill/rcldf/issues

On CRAN:

Conda:

cldf

6.25 score 16 stars 22 scripts 457 downloads 31 exports 91 dependencies

Last updated from:aed8317a50. Checks:7 WARNING, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64WARNING172
source / vignettesOK297
linux-release-x86_64WARNING159
macos-release-arm64WARNING90
macos-oldrel-arm64WARNING93
windows-develWARNING110
windows-releaseWARNING108
windows-oldrelWARNING120
wasm-releaseOK149

Exports:as.cldf.widecldfdatasetsdatatype_to_typeget_cache_dirget_detailsget_dir_sizeget_filenameget_foreign_keysget_separatorsget_table_fromget_tablenameis_githubis_urllist_cache_filesload_cltsload_concepticonload_datasetload_dplaceload_glottologmake_cache_keynullifyplot_languagesplot_parameterplot_wordread_bibresolve_pathschemaseparateset_cache_dirsubset_cldf

Dependencies:archiveaskpassbase64encbib2dfbitbit64bslibcachemclassclassIntclicliprcpp11crayoncrosstalkcsvwrcurlDBIdigestdplyre1071evaluatefarverfastmapfontawesomefsgenericsgluehighrhmshtmltoolshtmlwidgetshttrhumaniformatjquerylibjsonliteKernSmoothknitrlabelinglatticelazyevalleafletleaflet.providerslifecycleloggermagrittrMASSmemoisemimeopensslpillarpkgconfigpngprettyunitsprogressproxypurrrR6rappdirsrasterRColorBrewerRcppreadrremotesrlangrmarkdowns2sassscalessfspstringistringrsysterratibbletidyselecttinytextriebeardtzdbunitsurltoolsutf8vctrsversionsortviridisLitevroomwithrwkxfunyaml

Using rcldf to work with Cross-Linguistic Data Format datasets

Rendered fromusing-rcldf.Rmdusingknitr::rmarkdownon May 20 2026.

Last update: 2026-05-18
Started: 2025-09-13

Readme and manuals

Help Manual

Help pageTopics
Adds a dataframe.add_dataframe
Extracts a CLDF table as a 'wide' dataframe by resolving all foreign key linksas.cldf.wide
Reads a Cross-Linguistic Data Format dataset into an object.cldf read_cldf
Coalesce value to truthinesscoalesce_truth
Returns a table of datasets available in cldf_metadatasets
Map csvw datatypes to R typesdatatype_to_type
CSVW default dialectdefault_dialect
Create a default table schema given a csv file and dialectdefault_schema
Returns the cache dir.get_cache_dir
Returns a dataframe of with details on the CLDF dataset in 'path'.get_details
Returns the filesize in bytes of a directory.get_dir_size
Get a filename from url value in metadata (handles .zip files)get_filename
Returns a table of the foreign keys in a CLDF dataset.get_foreign_keys
Downloads and installs a CLDF dataset from a Zenodo endpointget_from_zenodo
Identifies the separator characters specified by the CLDF metadata.get_separators
Extracts a single table from a CLDF dataset.get_table_from
Convert a CLDF URL tablename to a short tablenameget_tablename
Returns TRUE if 'url' looks like a github URLis_github
Returns TRUE if 'url' looks like a URLis_url
Returns a dataframe of directories in the cache dirlist_cache_files
Returns a CLDF dataset object of the latest CLTS version.load_clts
Returns a CLDF dataset object of the latest Concepticon version.load_concepticon
Load a CLDF dataset by name and versionload_dataset
Returns a CLDF dataset object of the latest D-PLACE version.load_dplace
Returns a CLDF dataset object of the latest glottolog version.load_glottolog
Returns the cachekey for the given path.make_cache_key
Converts all values specified in the CLDF metadata as 'null' to R's 'NA'.nullify
Plot CLDF Languages on an Interactive Mapplot_languages
Plot Distribution of a Specific Parameterplot_parameter
Plot Words/Forms as Text Labels on a Mapplot_word
Summarises the CLDF fileprint.cldf
Prints a CLDF schemaprint.cldf_schema
Load and access bibliographic sources from a CLDF datasetread_bib
Relabels a column in a dataset for merging.relabel
Helper function to resolve the path (e.g. directory or md.json file)resolve_path
Visualize CLDF Dataset Schemaschema
Expands all values with separators.separate
Sets the cache dir for the current session.set_cache_dir
Subset a CLDF object with Cascading Filterssubset_cldf
Summarises the CLDF filesummary.cldf
Updates a table 'tbl' based on expression 'e'.update_table