powered by
Scales the input data via a selected logarithmic function.
scaleData(x, scale.="linear")
the scaled data is returned with an attribute "scalestr" attached, which defines the scaling treatment used on the input data.
"scalestr"
an object that inherits from the numeric class, typically a scalar, vector, or matrix.
scalar
vector
matrix
a character string defining the type of scaling to perform. Choices are "linear","log2","log10","log" or "db". Default: "linear" (no scaling).
"linear"
"log2"
"log10"
"log"
"db"
logb, decibel.
logb
decibel
scaleData(c(1,10,100,1000),scale="db")
Run the code above in your browser using DataLab