Question: Given the following data frame: ` ` ` df - data.frame ( name = c ( Alice , Bob, Charlie ) , age
Given the following data frame:
df data.frame
name cAlice "Bob", "Charlie"
age c
score c
What would you run to add a new column called "grade" to the data frame with all values set to F Select all that apply.
df cbind df grade F
df"grade"F
df$grade F
df rbinddf grade F
Hi I tried to run it in R but Im a very novice learner so I don't know if Im using it right. I also don't know if we're supposed to figure it out by running the code, or just from looking at it So if a person can figure it out just by looking at the multiple choice options, what should I look for? I've been combing through my notes but can't find what I need. Im still trying to learn how to apply specific instructions for coding to a specific question to other scenarios
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
