SyntaxFix
Write A Post
Hire A Developer
Questions
Any of the following should work!!
df <- data.frame(x=1:3,y=4:6) mean(df$x) mean(df[,1]) mean(df[["x"]])