R Tip: Use match_order() to Align Data

Win-Vector Blog 2018-04-10

Summary:

R tip. Use wrapr::match_order() to align data. Suppose we have data in two data frames, and both of these data frames have common row-identifying columns called “idx“. library("wrapr") d1 <- build_frame( "idx", "x" | 3 , "a" | 1 , "b" | 2 , "c" ) d2 <- build_frame( "idx", "y" | 2 , "D" … Continue reading R Tip: Use match_order() to Align Data

Link:

http://www.win-vector.com/blog/2018/04/r-tip-use-match_order-to-align-data/

From feeds:

Statistics and Visualization » Win-Vector Blog

Tags:

Authors:

John Mount

Date tagged:

04/10/2018, 17:44

Date published:

04/10/2018, 11:39