78.4k views
2 votes
After previewing and cleaning your data, you determine what variables are most relevant to your analysis. Your main focus is on Rating, Cocoa. Percent, and Company. Location. You decide to use the select() function to create a new data frame with only these three variables. Assume the first part of your code is:

trimmed_flavors_df <- flavors_df %>%


What bean type appears in row 6 of your tibble?


a. Criollo

b. Beniano

c. Forastero

d. Trinitario

User Valin
by
4.7k points

1 Answer

1 vote

Answer: None of these

Step-by-step explanation:

It is not possible for me to determine what bean type appears in row 6 of your tibble without more information. The select() function is used to create a new data frame with only the specified variables, but it does not change the content of the original data frame. In order to determine the bean type for row 6 of your tibble, you will need to access the relevant column of the data frame and use the index to retrieve the value for that row.

For example, if the column containing the bean type is called "Bean Type", you could use the following code to retrieve the value for row 6:

bean_type <- flavors_df$Bean.Type[6]

User Wes Gamble
by
4.7k points