forked from genizamt/NIS-Core-readr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
2002_core.r
1 lines (1 loc) · 1.9 KB
/
2002_core.r
1
full2002core <- read_fwf("NIS_2002_CORE.asc", fwf_positions(c(1,15,18,21,23,25,33,35,37,39,49,51,53,55,58,61,63,76,81,86,91,96,101,106,111,116,121,126,131,136,141,146,151,155,159,163,167,171,175,179,183,187,191,195,199,203,207,211,213,215,220,222,227,232,238,240,242,258,274,276,278,282,284,286,296,298,308,312,316,320,324,328,332,336,340,344,348,352,356,360,364,368,371,374,377,380,383,386,389,392,395,398,401,404,407,410,413,416,419,422,425,428,431,434,437,440,443,446,449,452,455,458,460,470,485,489), c(14,17,20,22,24,32,34,36,38,48,50,52,54,57,60,62,75,80,85,90,95,100,105,110,115,120,125,130,135,140,145,150,154,158,162,166,170,174,178,182,186,190,194,198,202,206,210,212,214,219,221,226,231,237,239,241,257,273,275,277,281,283,285,295,297,307,311,315,319,323,327,331,335,339,343,347,351,355,359,363,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,454,457,459,469,484,488,490), 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","ELECTIVE","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")))