Learn R Programming

datplot (version 1.1.1)

scaleweight: Scales the content of a column

Description

Requires a data.frame with one variable and one value column.

Usage

scaleweight(DAT_df, var = "all", val = 5)

Value

the same data.frame, with the scaled values in the specified column

Arguments

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)

Examples

Run this code
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)

Run the code above in your browser using DataLab