forked from genizamt/NIS-Core-readr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
2010_core.r
1 lines (1 loc) · 2.57 KB
/
2010_core.r
1
full2010core <- read_fwf("NIS_2010_Core.ASC", fwf_positions(c(1,4,7,9,11,12,16,18,20,22,33,35,37,39,41,44,47,49,52,69,74,79,84,89,94,99,104,109,114,119,124,129,134,139,144,149,154,159,164,169,174,179,184,189,194,197,200,203,206,209,212,215,218,221,224,227,230,233,236,239,242,245,248,251,254,257,260,263,266,269,274,279,284,289,291,295,299,303,307,309,312,314,319,321,335,340,346,348,350,352,354,356,359,361,365,367,369,371,381,383,393,396,400,404,408,412,416,420,424,428,432,436,440,444,448,452,456,459,462,465,468,471,474,477,480,483,486,489,492,495,498,501,504,507,510,513,516,519,522,525,528,531,534,537,540,543,546,547,555,557,567,582,584,586,590), c(3,6,8,10,11,15,17,19,21,32,34,36,38,40,43,46,48,51,68,73,78,83,88,93,98,103,108,113,118,123,128,133,138,143,148,153,158,163,168,173,178,183,188,193,196,199,202,205,208,211,214,217,220,223,226,229,232,235,238,241,244,247,250,253,256,259,262,265,268,273,278,283,288,290,294,298,302,306,308,311,313,318,320,334,339,345,347,349,351,353,355,358,360,364,366,368,370,380,382,392,395,399,403,407,411,415,419,423,427,431,435,439,443,447,451,455,458,461,464,467,470,473,476,479,482,485,488,491,494,497,500,503,506,509,512,515,518,521,524,527,530,533,536,539,542,545,546,554,556,566,581,583,585,589,591), col_names = c("AGE","AGEDAY","AMONTH","ASOURCE","ASOURCEUB92","ASOURCE_X","ATYPE","AWEEKEND","DIED","DISCWT","DISPUB04","DISPUNIFORM","DQTR","DQTR_X","DRG","DRG24","DRGVER","DRG_NoPOA","DSHOSPID","DX1","DX2","DX3","DX4","DX5","DX6","DX7","DX8","DX9","DX10","DX11","DX12","DX13","DX14","DX15","DX16","DX17","DX18","DX19","DX20","DX21","DX22","DX23","DX24","DX25","DXCCS1","DXCCS2","DXCCS3","DXCCS4","DXCCS5","DXCCS6","DXCCS7","DXCCS8","DXCCS9","DXCCS10","DXCCS11","DXCCS12","DXCCS13","DXCCS14","DXCCS15","DXCCS16","DXCCS17","DXCCS18","DXCCS19","DXCCS20","DXCCS21","DXCCS22","DXCCS23","DXCCS24","DXCCS25","ECODE1","ECODE2","ECODE3","ECODE4","ELECTIVE","E_CCS1","E_CCS2","E_CCS3","E_CCS4","FEMALE","HCUP_ED","HOSPBRTH","HOSPID","HOSPST","KEY","LOS","LOS_X","MDC","MDC24","MDC_NoPOA","NCHRONIC","NDX","NECODE","NEOMAT","NIS_STRATUM","NPR","ORPROC","PAY1","PAY1_X","PAY2","PAY2_X","PL_NCHS2006","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","PointOfOriginUB04","PointOfOrigin_X","RACE","TOTCHG","TOTCHG_X","TRAN_IN","TRAN_OUT","YEAR","ZIPINC_QRTL")))