코딩, 딱 지금이 시작할때! (코딱지)
[R] 열 이름 기준으로 열 제거 (drop columns by column names)
Ufungi
2024. 4. 28. 21:44
https://stackoverflow.com/questions/5234117/how-to-drop-columns-by-name-in-a-data-frame
How to drop columns by name in a data frame
I have a large data set and I would like to read specific columns or drop all the others. data <- read.dta("file.dta") I select the columns that I'm not interested in: var.out <- names(dat...
stackoverflow.com