df_winsorise | R Documentation |
Winsorsise data
df_winsorise(x, variables = NULL, z = NULL, rz = NULL, centile = NULL)
x |
Data frame |
variables |
Names of variables to winsorsise. If not given, defaults to all numeric variables. |
z |
Standard z score to winsorise to (mean+sd) |
rz |
Robust z score to winsorise to (median+mad) |
centile |
Centile to winsorsise to |
Data frame with the same variables as input.
iris[1, 1] = 100
df_winsorise(iris, z = 2)
df_winsorise(iris, rz = 2)
df_winsorise(iris, centile = .99)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.