Hi, please help me solve two simple questions related to R, based on the documen

Hi, please help me solve two simple questions related to R, based on the documen

Hi, please help me solve two simple questions related to R, based on the document attached below.
1. How can you tell if an object is a tibble?
2. The following code defines a data frame: df <- data.frame(x= 1, y = "a") Try the following code and see the outputs: df$x, df[, ‘y’] Now change df to a tibble: new_df<-as_tibble(df) How to realize df$x, df[, ‘y’] for new_df using pipe?