forked from genizamt/NIS-Core-readr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
2001_core.r
1 lines (1 loc) · 1.88 KB
/
2001_core.r
1
full2001core <- read_fwf("NIS_2001_CORE.asc", fwf_positions(c(1,15,18,21,23,25,28,30,32,34,44,46,48,50,53,56,58,71,76,81,86,91,96,101,106,111,116,121,126,131,136,141,146,150,154,158,162,166,170,174,178,182,186,190,194,198,202,206,208,213,215,220,225,231,233,235,251,267,269,271,275,277,279,289,291,301,305,309,313,317,321,325,329,333,337,341,345,349,353,357,361,364,367,370,373,376,379,382,385,388,391,394,397,400,403,406,409,412,415,418,421,424,427,430,433,436,439,442,445,448,451,453,463,478,482), c(14,17,20,22,24,27,29,31,33,43,45,47,49,52,55,57,70,75,80,85,90,95,100,105,110,115,120,125,130,135,140,145,149,153,157,161,165,169,173,177,181,185,189,193,197,201,205,207,212,214,219,224,230,232,234,250,266,268,270,274,276,278,288,290,300,304,308,312,316,320,324,328,332,336,340,344,348,352,356,360,363,366,369,372,375,378,381,384,387,390,393,396,399,402,405,408,411,414,417,420,423,426,429,432,435,438,441,444,447,450,452,462,477,481,483), col_names = c("KEY","AGE","AGEDAY","AMONTH","ASOURCE","ASOURCE_X","ATYPE","AWEEKEND","DIED","DISCWT","DISPUB92","DISPUNIFORM","DQTR","DRG","DRG18","DRGVER","DSHOSPID","DX1","DX2","DX3","DX4","DX5","DX6","DX7","DX8","DX9","DX10","DX11","DX12","DX13","DX14","DX15","DXCCS1","DXCCS2","DXCCS3","DXCCS4","DXCCS5","DXCCS6","DXCCS7","DXCCS8","DXCCS9","DXCCS10","DXCCS11","DXCCS12","DXCCS13","DXCCS14","DXCCS15","FEMALE","HOSPID","HOSPST","HOSPSTCO","LOS","LOS_X","MDC","MDC18","MDNUM1_S","MDNUM2_S","NDX","NEOMAT","NIS_STRATUM","NPR","PAY1","PAY1_X","PAY2","PAY2_X","PR1","PR2","PR3","PR4","PR5","PR6","PR7","PR8","PR9","PR10","PR11","PR12","PR13","PR14","PR15","PRCCS1","PRCCS2","PRCCS3","PRCCS4","PRCCS5","PRCCS6","PRCCS7","PRCCS8","PRCCS9","PRCCS10","PRCCS11","PRCCS12","PRCCS13","PRCCS14","PRCCS15","PRDAY1","PRDAY2","PRDAY3","PRDAY4","PRDAY5","PRDAY6","PRDAY7","PRDAY8","PRDAY9","PRDAY10","PRDAY11","PRDAY12","PRDAY13","PRDAY14","PRDAY15","RACE","TOTCHG","TOTCHG_X","YEAR","ZIPINC")))