Answers for "add column in r"

R
5

r add column to dataframe

<dataframe> <- <dataframe> %>%
  mutate(<column_name> = <insert what you want bro>)
Posted by: Guest on February-26-2021
1

add column in r

data[["New_column_name"]]<-'Assign value'
Posted by: Guest on September-11-2021

Browse Popular Code Answers by Language