get_VM | R Documentation |
Calculate vector magnitude
get_VM(triaxial, method = c("legacy", "Rcpp"), verbose = FALSE) get_VM_C(x, y, z)
triaxial |
a dataframe of triaxial data on which to calculate vector magnitude |
method |
which method to use, either |
verbose |
print information about variable search criteria? |
x |
NumericVector. X-axis values |
y |
NumericVector. Y-axis values |
z |
NumericVector. Z-axis values |
a vector of vector magnitude values
data(imu_to_collapse) vm_columns <- grepl("accelerometer", names(imu_to_collapse), ignore.case = TRUE) vm_values <- get_VM( data.frame(imu_to_collapse)[, vm_columns] ) head(vm_values)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.