smooth_df | R Documentation |
Smooth numeric variables in a data frame
smooth_df(x, k = 11, id = colnames(x)[1], colnum = NULL, mc.cores = 1)
x |
A data frame. |
k |
Integer width of the rolling window. Default: |
id |
The identification column. Default: |
colnum |
A |
mc.cores |
The number of cores to mclapply. By default uses |
Vector of interpolated values with length near to compact.to*length(x)
.
extract_features
library(voice)
# get path to audio file
path2wav <- list.files(system.file('extdata', package = 'wrassp'),
pattern = glob2rx('*.wav'), full.names = TRUE)
# minimal usage
M <- extract_features(path2wav, features = c('f0', 'fmt'))
(Ms <- smooth_df(M[-(1:2)]))
dim(M)
dim(Ms)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.