View source: R/glottoconvert.R
glottoconvert | R Documentation |
Convert a linguistic dataset into glottodata or glottosubdata
glottoconvert( data, var, glottocodes = NULL, table = NULL, glottocolumn = NULL, glottosubcolumn = NULL, ref = NULL, page = NULL, remark = NULL, contributor = NULL, varnamecol = NULL )
data |
A dataset that should be converted into glottodata/glottosubdata. This will generally be an excel file loaded with glottoget(). The dataset will be converted into glottodata if:
Otherwise, glottospace will attempt to convert the dataset into glottosubdata. This works if:
|
var |
Character string that distinguishes those columns which contain variable names. |
glottocodes |
Optional character vector of glottocodes. If no glottocodes are supplied, glottospace will search for them in the sample table. |
table |
In case dataset consists of multiple tables, indicate which table contains the data that should be converted. |
glottocolumn |
column name or column id with glottocodes (optional, provide if glottocodes are not stored in a column called 'glottocode') |
glottosubcolumn |
Column name or column id with glottosubcodes (optional, provide if glottosubcodes are not stored in a column called 'glottosubcode') |
ref |
Character string that distinguishes those columns which contain references. |
page |
Character string that distinguishes those columns which contain page numbers. |
remark |
Character string that distinguishes those columns which contain remarks. |
contributor |
Character string that distinguishes those columns which contain contributors. |
varnamecol |
In case the dataset contains a structure table, but the varnamecol is not called 'varname', its name should be specified. |
A glottodata or glottosubdata object (either a list or data.frame)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.