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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started