Description Usage Arguments Details Value See Also Examples
Takes a data frame of word pairs/triples/..., each stored in a single row, and returns a data frame with the same pairs/triples/... but with each word stored in its own row.
1 |
data |
[data.frame] The dataset to be converted. |
suffixes |
[character vector] Suffixes used to differentiate column names; in the output, those will be used as language names. |
col.lang |
[character] Name of the column in which language names are to be stored. Defaults to |
strip |
[integer] The number of characters to strip from the beginning of suffixes when they are turned into language names. Defaults to 0. |
Data for soundcorrs
can be prepared in one of two formats: the 'long format' and the 'wide format'. In the 'long format', each row contains only a single word and metadata associated with it. In the 'wide format', each row contains the entire pair/triple/... of words, and all the metadata associated with them. The 'long format' is convenient for making sure that all the words in a pair/triple/... have the same number of segments, but it cannot be read directly by soundcorrs
. long2wide
and wide2long
convert between the two formats.
[data.frame] A data frame in the long format (single entry per row).
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.