I'm a little upset here ... So, I have a dataset in which I need to scale variables. I have more than 44 variables, but I realized that the number of operations on all variables probably consumes too much memory (I hardly have 8 GB of RAM, but I donβt know).
When I do the following MWE code, my R crashes or interrupts or causes a core dump.
library(dplyr)
matrix(runif(44*500), ncol = 44) %>%
as.data.frame() %>%
mutate_each(funs(as.numeric(scale(.))))
In approximately 70% of cases, this leads to a failure. Why is this happening and why is this not always happening?
I tried even fewer variables (44 to 22) and it still has some problems (below MWE).
matrix(runif(22*500), ncol = 22) %>%
as.data.frame() %>%
mutate_each(funs(as.numeric(scale(.))))
- , ? ? ?