R/spectrum.fnc.R

`spectrum.fnc` <-
function(text) {
  tab = table(table(text))
  spectrum = data.frame(frequency = as.numeric(rownames(tab)),
                        freqOfFreq = as.numeric(tab))
  return(spectrum)
}

Try the languageR package in your browser

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

languageR documentation built on May 30, 2017, 3:09 a.m.