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