Multiple Choices: Data Wrangling without dplyr part 2

Questions

  1. How do you combine two data frames vertically in base R?
  1. Which function is used to remove rows with missing values in base R?
  1. If you want to select specific columns from a data frame, which function can you use?
  1. Which function would you use to create a new variable in a data frame based on existing columns?
  1. Which of the following can be used to sort a data frame by a specific column in base R?
  1. When you want to filter rows based on conditions in base R, which function should you use?
  1. What function can you use to find the mean of each column in a data frame?
  1. Which function allows you to summarize a data frame by calculating statistics like mean, median, or sum for each group of a factor variable?
  1. Which function in base R is commonly used to combine two data frames by a common column?
  1. How can you change the name of a specific column in a data frame in base R?
  1. Which function can be used to get the structure of a data frame, including column names, data types, and a preview of data?
  1. To add a new row to a data frame in base R, which function would you use?
  1. What is the purpose of the apply() function in base R?
  1. Which function is used to count the number of rows in a data frame?
  1. If you want to rename multiple columns in a data frame, which command should you use?
  1. What function would you use to convert a specific column in a data frame to a factor?
  1. Which function can be used to transpose a data frame in base R?
  1. If you want to create a subset of a data frame based on multiple conditions, which operator can help combine these conditions?
  1. Which base R function returns the number of unique values in a column?
  1. How do you remove a column from a data frame in base R?
  1. Which function in base R can you use to split a data frame by a factor or categorical variable?
  1. How do you remove duplicate rows from a data frame in base R?
  1. Which function can calculate the sum of each row in a matrix or data frame?
  1. To extract specific rows and columns in a data frame by index position, you would use:
  1. Which function in base R will give a summary of each column, including mean, median, and quartiles?
  1. What function can you use to find the maximum value in each column of a data frame?
  1. How do you add a prefix to all column names in a data frame in base R?
  1. Which function can be used to convert a data frame to a matrix in base R?
  1. To replace all occurrences of a specific value in a data frame column, you would use:
  1. Which function would you use to combine multiple character vectors into a single string in base R?