rxImport의 usage에서 inData -> inSource로, outFile -> outSource로 변환된 것으로 기능적인 측면에서는 rxImport와 거의 같다. rxImport와 다른 점은 outSource가 Null이더라도 xdf파일(.xdf)로 저장이 된다는 것이다.
rxImportToXdf(inSource, outSource, rowSelection = NULL, transforms = NULL, transformObjects = NULL, transformFunc = NULL, transformVars = NULL, transformPackages = NULL, transformEnvir = NULL, append = “none”, overwrite = FALSE, numRows = -1, reportProgress = rxGetOption(“reportProgress”), verbose = 0, xdfCompressionLevel = rxGetOption(“xdfCompressionLevel”), userObjects = NULL)
# (1-1)data의 위치지정
text_air <- "C:/Users/Public/Documents/airline/airline.txt"
# (1-2)rxImportToXdf를 사용한 data import
data_air <- rxImportToXdf(inSource = text_air, outSource = "airline", overwrite = TRUE)
rxImport의 코드와 거의 같지만, inData와 outFile을 각각 inSource와 outSource로 변환준다.
Hankuk University of Foreign Studies. Dept of Statistics. Daewoo Choi Lab. Yeeseul Han.
한국외국어대학교 통계학과 최대우 연구실 한이슬
e-mail : han.lolove17@gmail.com