Learn R Programming

⚠️There's a newer version (0.4.0) of this package.Take me there.

soundcorrs (version 0.1.1)

Semi-Automatic Analysis of Sound Correspondences

Description

A set of tools that can be used in computer-aided analysis of sound correspondences between languages, plus several helper functions. Analytic functions range from purely qualitative analysis, through statistic methods yielding qualitative results, to an entirely quantitative approach.

Copy Link

Version

Install

install.packages('soundcorrs')

Monthly Downloads

68

Version

0.1.1

License

GPL-3

Maintainer

Kamil Stachowski

Last Published

April 24th, 2020

Functions in soundcorrs (0.1.1)

collapse

Paste and collapse.
fitTable

Fit multiple models to multiple datasets.
read.transcription

Read transcription from a tsv file.
formatter.html

A formatter for allPairs. This one formats to HTML.
lapplyTest

Apply a function to a list.
binTable

Sum all rows and all columns in a table, except for the selected ones.
char2value

Convert characters to their values.
wide2long

Convert from the wide format (multiple entries per row) to the long format (single entry per row).
%hasPrefix%

Check if a string starts with another string.
findSegments

Segments in relation to segments exhibiting a correspondence.
list.depth

Measure the depth of a nested list.
ngrams

Frequencies of n-grams.
print.soundcorrs

print.scOne

revChar

Rev (reverse the order) for character strings.
summary.list.lapplyTest

sampleSoundCorrsData.abc

A sample dataset with entirely made up words and languages.
sampleSoundCorrsData.capitals

A sample dataset with the names of EU capitals in German, Polish, and Spanish.
tableOne

Build a contingency table counting either occurrences or words.
tableTwo

Build a contingency table counting either occurrences or words.
summary.soundcorrs

Generate a segment-to-segment contingency table for two languages.
%.%

Compose two functions.
addSeparators

Intersperse a vector of strings with a character or string.
summary.list.multiFit

print.df.findPairs

vec2df.rank

A vector to data frame converter for fitTable. This one orders data by rank.
vec2df.id

A vector to data frame converter for fitTable. This one only does the necessary minimum.
allPairs

Produce a list of all sound correspondences and all pairs in which they are attested.
%hasSuffix%

Check if a string ends in another string.
tabAbs2Rel

Convert a table from absolute to relative values.
long2wide

Convert from the long format (single entry per row) to the wide format (multiple entries per row).
%nin%

The inverse of %in%.
multiFit

Fit multiple models to one dataset.
sampleSoundCorrsData.ie

A sample dataset with a dozen words in English, Gothic, Greek, and Latin.
print.transcription

formatter.none

A formatter for allPairs. This one does practically no formatting at all.
scOne

Constructor function for the scOne class.
formatter.latex

A formatter for allPairs. This one formats to LaTeX.
table

The base::table function.
table.soundcorrs

Generate a correspondence-to-correspondence or correspondence-to-metadata contingency table.
transcription

Constructor function for the transcription class.
checkCount

Check if the count argument is correct.
soundcorrs

Constructor function for the soundcorrs class.
read.scOne

Read data for a single language from a tsv file.
checkUnit

Check if the unit argument is correct.
subset.soundcorrs

Return a subset of sound correspondences data which meets a condition.
vec2df.hist

A vector to data frame converter for fitTable. This one makes a histogram, and returns a data frame with midpoints and counts.
expandMeta

Expand custom metacharacters to a regular expression.
allTables

Generate all contingency tables for a dataset.
cbind.soundcorrs

findPairs

Find all pairs with corresponding sequences of sounds.