R Tip: Use Slices

Win-Vector Blog 2018-04-17

Summary:

R tip: use slices. R has a very powerful array slicing ability that allows for some very slick data processing. Suppose we have a data.frame “d“, and for every row where d$n_observations < 5 we wish to “NA-out” some other columns (mark them as not yet reliably available). Using slicing techniques this can be done … Continue reading R Tip: Use Slices

Link:

http://www.win-vector.com/blog/2018/04/r-tip-use-slices/

From feeds:

Statistics and Visualization » Win-Vector Blog

Tags:

Authors:

John Mount

Date tagged:

04/17/2018, 03:19

Date published:

04/16/2018, 21:12