I am a newbie to R and seek help to calculate sums of selected column for each row. My simple data frame is as below.
data = data.frame(location = c(\"a\",\"b\"
rowSums(cbind(mydata$variable1, mydata$variable2, mydata$variable3), na.rm = T )