Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Modify Data Frames | Section
Practice
Projects
Quizzes & Challenges
Quizzer
Challenges
/
Data Cleaning and Transformation with Data Frames in R - 1768563984993

bookChallenge: Modify Data Frames

Opgave

Swipe to start coding

You are given a data frame of class records. Modify this data frame as follows:

  • Add a new column named attendance with the values 90, 95, and 88 for the existing students.
  • Remove the age column from the data frame.
  • Add a new row for a student named "Diana" with a grade of 87 and attendance of 98.

Assign the final, modified data frame to the variable updated_students.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 10
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Modify Data Frames

Stryg for at vise menuen

Opgave

Swipe to start coding

You are given a data frame of class records. Modify this data frame as follows:

  • Add a new column named attendance with the values 90, 95, and 88 for the existing students.
  • Remove the age column from the data frame.
  • Add a new row for a student named "Diana" with a grade of 87 and attendance of 98.

Assign the final, modified data frame to the variable updated_students.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 10
single

single

some-alt