search for: ref_df

Displaying 4 results from an estimated 4 matches for "ref_df".

2010 Apr 30
1
as.environment Error
Dear R community, I have a problem with assign: <snip> for ( iii in 1:dim(ref_df)[2] ) { ret <<- ref_df[,iii][names(single_string[ii])]*(single_count/sum(ref_df[,iii])) assign(paste("expected_sing_ref",iii,sep=""),c(get(paste("expected_single_ref",iii,sep=""))), ret) } <snap> The Error: Error in as.e...
2016 Jan 26
2
Corregir mismo ID para individuos diferentes en una serie temporal
...ot;O", "P", "Q", "R", "M", "N", "Q", "S", "L", "T", "U", "V", "W", "X", "Y", "Z", "CC", "AA", "BB", "Y") ref_df <- data.frame (ID, Year, new_ID) ref_df rep_val <- rep(0, nrow(df)) new_df <- data.frame(ID=rep_val, Year=rep_val, newID=rep_val, hmyears=rep_val) for(i in 1:nrow(df)) { #Cero print(i) if(i==1) { new_df$ID[i] <- df$ID[i] new_df$Year[i] <- df$Year[i] new_df$newID[i] &...
2016 Jan 26
2
Corregir mismo ID para individuos diferentes en una serie temporal
...uot;O", "P", "Q", "R", "M", "N", "Q", "S", "L", "T", "U", "V", "W", "X", "Y", "Z", "CC", "AA", "BB", "Y")ref_df <- data.frame (ID, Year, new_ID)ref_df rep_val <- rep(0, nrow(df))new_df <- data.frame(ID=rep_val, Year=rep_val, newID=rep_val, hmyears=rep_val )for(i in 1:nrow(df)) { #Cero if(i==1) { new_df$ID[i] <- df$ID[i] new_df$Year[i] <- df$Year[i] new_df$newID[i] <- df$ID[i] n...
2016 Jan 25
4
Corregir mismo ID para individuos diferentes en una serie temporal
Hola a todos, Quería preguntar si alguno sabe como puedo identificar registros con un mismo ID en el tiempo, pero que hacer referencia a objetos o individuos diferentes. En mi caso en particular estoy estudiando un animal que tiene una vida media cercana 2 años, y tengo una serie longitudinal de 25 años. El problema es que durante el muestreo en algunos casos durante la recoleccion de los datos,