| rep4dat {svs} | R Documentation | 
Repeat the Rows of a Data Frame according to a Frequency Column
Description
A helper function for repeating the rows a data frame according to a frequency column.
Usage
rep4dat(dat, freqName = "Freq")
Arguments
| dat | A data frame. | 
| freqName | Character specifying the name of the frequency column. | 
Value
A data frame.
Examples
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)
[Package svs version 3.1.1 Index]