Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Modify Data Frames | R Data Frames Tutorial
Working with Data Structures in R

bookChallenge: Modify Data Frames

Compito

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.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 4
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Modify Data Frames

Scorri per mostrare il menu

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 4
single

single

some-alt