search for: ind_id

Displaying 3 results from an estimated 3 matches for "ind_id".

Did you mean: kind_id
2006 Feb 08
1
adding variable into dataframe by indice
...ue for that proportion. Below is an example of the code that I am using. The data is made up for the dataframe. Should give you an idea, but the original has 'NA' in many rows. The original data is what is reported in the output below. #Read in Data age.int <- data.frame(IND_ID = seq(1, 140, 10), rs1042364 = sample( c("(1,1)","(1,2)","(2,2)"),14,replace = T), first_drink = sample(5:17,14,replace = T)) asubs112 <- subset(age.int, rs1042364 != "(2,2)") ages112 <- sort(unique(na.omit(asubs112$first_drink))...
2004 May 10
3
sqlSave with underscores in table fieldname
Hi group, I try to write a frame to a table (RODBC). I use colnames(temp6) <- c("ind_id","ser_id","period_id","year","calc","mean") sqlSave(channel, temp6, tablename = "series_indices_test",append= TRUE, rownames=FALSE, verbose = FALSE, test = FALSE, nastring = -999999, fast = FALSE) This is giving me an error: Error...
2006 Feb 08
0
insert value according to indice
...2) asubs112[indce,5] <- prop asubs112[indce,] } Below is the output that I get from the script above. Notice the proportion for the first NA but not any of the others. Not sure what I am doing wrong, any suggestions are a big help. TIA, Adrian asubs112[1:50,] IND_ID rs1042364 first_drink age_int V5 4 10008007 (1,2) NA 16 0.003891051 6 10013012 (1,2) 13 14 0.116731518 7 10015006 (1,2) 12 17 0.105058366 8 10015007 (1,1) 12 16 0.105058366 10 10021009 (1,2) NA...