powered by
Sweep
sweep1_in_place(x, STATS, FUN = c("-", "+", "*", "/"))sweep2_in_place(x, STATS, FUN = c("-", "+", "*", "/"))
sweep2_in_place(x, STATS, FUN = c("-", "+", "*", "/"))
a matrix.
the summary statistic which is to be swept out.
the function to be used to carry out the sweep.
NULL, invisibly.
NULL
# NOT RUN { x <- matrix(1:6, 2) sweep(x, 2, 1:3) x sweep2_in_place(x, 1:3) x # }
Run the code above in your browser using DataLab