I have a data.frame HERE. I was wondering how I can subset variables named as dot.names (see below) for rows in the data.frame for which variable control is FALSE AND alphabetically order the answer based on D$study.name in BASE R?
Here is the code I used without success:
D <- read.csv("https://raw.githubusercontent.com/izeh/m/master/k.csv") # data.frame
dot.names <- c("ESL", "prof" ,"scope", "type")
D[dot.names & !control]