- 9 Suppose That You Have A Dataframe Object Named Df In R S Global Environment Which Code Segment Can You Use To Create 1 (51.08 KiB) Viewed 191 times
9. Suppose that you have a dataframe object named df in R's global environment. Which code segment can you use to create
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
9. Suppose that you have a dataframe object named df in R's global environment. Which code segment can you use to create
9. Suppose that you have a dataframe object named df in R's global environment. Which code segment can you use to create a new dataframe, df2, that includes only the first 15 rows of data, as well as two columns named, "description" and "price", which are located in the fifth and ninth columns, respectively? (Check all that apply) Odf2 <-df[1:15, (5,9)] Odf2 <-df[1:15, ('description', 'price')] O df2<-df(1:15, (5,9)) Odf2 <df(1:15, cl'description', 'price')) 10. Suppose that you have a dataframe object named df in R's global environment. Which line of code can you use to return a boxplot for the subtotal column? Odf.boxplot('price') O boxplot(df$price) O plot(df$price, type = 'box') O plot.box['price', data = df)