
Data Frame Operations in R
Authored by Hieba Mahmod
Computers
6th - 10th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function combines data frames row-wise?
combine()
rbind()
addrow()
cbind()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you rename a column?
df$1 <- 'name'
colnames(df)[1] <- 'name'
names(df)[1] <- 'name'
rename(df, 'name')
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function do you use to bind columns from two data frames?
rbind()
cbind()
merge()
addcol()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which code removes the second column from a data frame df?
df[, -2]
df[-2, ]
remove(df, 2)
drop(df, 2)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you view the first few rows of a data frame in R?
top(df)
head(df)
preview(df)
df[1:5, ]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If df <- df[-1, ], what happens?
First row removed
First column removed
Row added
Nothing
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you add a new column to a data frame?
new<- cbind(df, num=c(1,2,3))
add(df, 1,2,3)
merge(df)
update(df)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Activity 1: How well do you know Java?
Quiz
•
9th Grade
14 questions
Conceptos Básicos de IA-PIAROB II (3ESO)
Quiz
•
8th Grade
15 questions
หน่วยที่ 1 ความรู้พื้นฐานการจัดการ ข้อมูลขนาดใหญ่ (Big Data)
Quiz
•
9th - 12th Grade
10 questions
ICT - GRADE 6 - 3RD WEEK AUGUST 2021
Quiz
•
6th Grade
13 questions
topologies
Quiz
•
7th - 8th Grade
10 questions
Sistem Komputer
Quiz
•
10th Grade
10 questions
Formatting a Spreadsheet
Quiz
•
6th Grade
12 questions
prep1-revision
Quiz
•
7th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
14 questions
[AP CSP] JavaScript Programming Quiz
Quiz
•
9th - 12th Grade
10 questions
Understanding Computers and Computer Engineering
Interactive video
•
7th - 12th Grade
37 questions
Python - Tuples, Lists, and List Methods
Quiz
•
9th - 12th Grade
60 questions
MOS Word Home, Insert, Reference Ribbon Basics
Quiz
•
9th Grade