R/growth2vgc.fnc.R

Defines functions `growth2vgc.fnc`

`growth2vgc.fnc` <-
function(growth) {
  requireNamespace("zipfR", quietly = TRUE)
  return(zipfR::vgc(N  = growth@data$data$Tokens, 
             V  = growth@data$data$Types, 
             Vm = list(growth@data$data$HapaxLegomena,
                        growth@data$data$DisLegomena, 
                        growth@data$data$TrisLegomena)))

}

Try the languageR package in your browser

Any scripts or data that you put into this service are public.

languageR documentation built on May 2, 2019, 10:02 a.m.