df_xfm | R Documentation |
Returns a data frame, along with many supplementary attributes (e.g., correlations, transformation parameters, simulate from correlation matrix).
df_xfm(x, keepMedian = T, keepMAD = T)
x |
Numeric data frame or matrix |
keepMedian |
Should the result be shifted so that it has the same median as the input vector? |
keepMAD |
Should the result be scaled so that it has the same dispersion (median absolute deviation) as the input vector? |
x <- data.frame(w = 'char',x=rnorm(20),y=rgamma(20,3,2),z=c(rnorm(19,3,3),NA))
x_transformed <- df_xfm(x)
head(x_transformed)
attributes(x_transformed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.