Question: 5. Let's use the bind rows function in dplyr, as it's pretty. powerful. Let's say you want to add a new row to matcars. for
5. Let's use the bind rows function in dplyr, as it's pretty. powerful. Let's say you want to add a new row to matcars. for a new model. Make a new data frame with the following columns: Model = Eizzywig, mpg=31.415, awesomness =11. Now try to make a new data frame where you rbind ntcars and this new data frame. What happens? Don't do this in aymarkdown code chunk - just try it, and then report what happens. It might or might not go as planned (and Rmarkdown can choke unless you add the appropriate argument to the code chunk more on that soon)! Then, make a new data frame here you use dolyz: ikind zowse to combine them. Examine the resulting data frame. What do you see? You can try this in a code chunk for your markdown. How do the two methods differ? Look at their help files for some information that might help you
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
