21 - Unifying columns with Julia and R #shorts [Julia & R programming]
Alex Tantos
#shorts
For this video, we're going to reload the IKEA dataset in both languages once again.
R's unite() combines multiple columns into a new one named "long_description", using a chosen separator, like a semicolon, based on the "name" and "short_description" columns.
To get the same effect in Julia, you simply need the string()
function. Alternatively, you may first ensure "name" and "short_description" columns aren't in the final result using Not(). Then, via minilanguage's pair symbol, set these two columns as input, use ByRow() to apply a function that merges their string values row by row, and finally name this new column "long_description".
Link to the ikea dataset: https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-11-03/ikea.csv
Ladies Freiburg (Kyla McConnell and Julia Müller) - Tidy Data: Zero to sHero {Part 2}: https://www.youtube.com/watch?v=ivSgLWKhNrw
R-Ladies material on github: https://github.com/rladies/meetup-presentations_freiburg/tree/master/2021-02-17_tidydata_ZerotoShero ... https://www.youtube.com/watch?v=345-TaoZ59w
6043086 Bytes