Question: R studio Consider the two tables shown below called bands and instruments. bands: name lastname band year Mick Jagger Stones 1962 John Lennon Beatles 1960
R studio
Consider the two tables shown below called bands and instruments.
| bands:
| instruments:
|
Draw the output table from the following operations (you should be able to calculate the output by hand though you may use R to check your answers).
-
bands %>% inner_join(instruments) [Hint: this is a trick question!]
-
bands %>% inner_join(instruments, by=c(name="artist"))
-
bands %>% inner_join(instruments, by=c(name="artist", lastname="artistname"))
-
bands %>% left_join(instruments, by=c(name="artist", lastname="artistname"))
-
bands %>% inner_join(instruments, by=c(name="artist", lastname="artistname", year="plays"))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
