toread <- "id sex age inc r1 r2 r3
1 F 35 17 7 2 2
17 M 50 14 5 5 3
33 F 45 6 7 2 7
49 M 24 14 7 5 7
65 F 52 9 4 7 7
81 M 44 11 7 7 7
2 F 34 17 6 5 3
18 M 40 14 7 5 2
34 F 47 6 6 5 6
50 M 35 17 5 7 5"
survey <- read.table(textConnection(toread), header = TRUE)
closeAllConnections()
survey
http://r.789695.n4.nabble.com/SAS-quot-datalines-quot-or-quot-cards-quot-statement-equivalent-in-R-td949489.html
반응형
'SAS, R, 통계' 카테고리의 다른 글
proc genmod moel y/n = x (0) | 2016.10.22 |
---|---|
R Transform (0) | 2016.10.21 |
정말 분석은 무얼까? (0) | 2015.04.21 |
SAS pointer & put command (0) | 2014.10.03 |
R에서 벡터와 스칼라 (0) | 2014.07.12 |