rep4dat | R Documentation |
A helper function for repeating the rows a data frame according to a frequency column.
rep4dat(dat, freqName = "Freq")
dat |
A data frame. |
freqName |
Character specifying the name of the frequency column. |
A data frame.
SndT_Fra <- read.table(system.file("extdata", "SndT_Fra.txt", package = "svs"),
header = TRUE, sep = "\t", quote = "\"", encoding = "UTF-8",
stringsAsFactors = FALSE)
tab_SndT_Fra <- table(SndT_Fra)
dat_SndT_Fra <- as.data.frame(tab_SndT_Fra)
rep4dat(dat_SndT_Fra)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.