There is nothing that could be used - you only pass it one vector - not a list of vectors, but simply convert the result into a matrix (one column).
sapply simplifies the result for you, but it should generate an array.
Compare if you give him a list:
system.time(sapply(list(rnorm(1000000,0,1)), function (x) round(x,2))) user system elapsed 0.22 0.00 0.22 system.time(sapply(rnorm(1000000,0,1), function (x) round(x,2))) user system elapsed 4.21 0.00 4.21
source share