scaleweight | R Documentation |
Requires a data.frame with one variable and one value column.
scaleweight(DAT_df, var = "all", val = 5)
DAT_df |
a data.frame |
var |
index or name of the column that should be used as the group variable, OR "all" |
val |
index or name of the column that should be scaled (has to be numeric) |
the same data.frame, with the scaled values in the specified column
data("Inscr_Bithynia")
DAT_df <- Inscr_Bithynia[, c("ID", "Location", "DAT_min", "DAT_max")]
DAT_df_steps <- datsteps(DAT_df, stepsize = 25)
DAT_df_scaled <- scaleweight(DAT_df_steps, var = 2, val = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.