View source: R/scalingFactor.R
scaling_factor | R Documentation |
Interassemblage variation makes comparing mean ridge breadth (MRB) measurements difficult. This function scales a vector of MRB values to the modern Kralik and Novotny (2003) reference data set.
scaling_factor(mrbs, x = 0.95, type = "all", adult_age = 15)
mrbs |
the vector or column of your collected MRB measurements |
x |
what percentile should serve as the alignment point? (defaults to 95th percentile) |
type |
are you aligning your data to a subset of the reference data? Options are currently |
adult_age |
what age do you consider to be the threshold for adulthood? (only used when scaling to a subset of the reference data) |
the scaling factor that your data should be multiplied by in order to be analagous with modern MRB data
fake.data <- data.frame( id.number = 1:100, mrb = c(rgamma(50,64,160), rgamma(50,2500,5000)), location = sample(c("palace", "domestic"), 100, replace = TRUE) ) fake.data$mrb <- fake.data$mrb*scaling_factor(fake.data$mrb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.