0
> my_query <- paste("select * from", query_table, "where Arrived_Date_Time >=", arrived_earliest_date, "and Arrived_Date_Time < ", arrived_latest_date)
> dfDataIn <- sqlQuery(NSSP, my_query, stringsAsFactors=FALSE)
> odbcCloseAll()
> table(dfDataIn$Discharge_Disposition)
1 2 3 4 5 6 7 8 9 20 21
64059 336 1522 32 306 1166 2343 1 35423 312 36
30 41 43 50 51 61 62 63 64 65 66
26 18 295 133 200 5 270 76 3 1121 811
70 100
249 24
dfDataIn$Discharge_Disposition
문자 변수에 관하여 데이터베이스 (2
- 9
)R은 SQLQuery 기능은 소수 민족이 진정으로 <code>"1"</code>에있는 반면 여기 <code>1</code> 대부분은, 데이터베이스의 <code>"01"</code> 있어야하는 가장 중요한 문자 변수이며, 숫자 변수로 실제로
올바른 형식으로 데이터를 읽을 수있는 방법이 있습니까?
어떤 ODBC 드라이버를 사용하고 있습니까? 그리고,'getSqlTypeInfo() '의 결과는 무엇입니까? – Marcelo