search for: 7cd

Displaying 3 results from an estimated 3 matches for "7cd".

Did you mean: 7c
2012 Nov 22
1
ayuda con Merge
Estimados usuarios de R: Tengo dos data frames, A y B, donde hay algunas variables comunes y otras distintas. En el A tengo las variables, a1, a2, a3, a4, a5. En el B tengo las variables a1, a2, a3, b1, b2, b3,b4, b5, b6, b7. Los valores llave son a1 y a2, al data frame B quiero pegarle las variables a4 y a5 y en el caso no se tenga ningun valor en la variable a3, ponerle el valor que aparece
2024 Nov 27
4
R Processing dataframe by group - equivalent to SAS by group processing with a first. and retain statments
Check out the dplyr package, specifically the mutate function. # Create new column based on existing column value df <- df %>% mutate(FirstDay = if(ID = 2, 5)) df Repeat as needed to capture all of the day/firstday combinations you want to account for. Like everything else in R, there are probably at least a dozen other ways to do this, between base R and all of the library packages
2012 Nov 24
1
reshapeGUI en WIN7
...;, "4ad", "4ae"),     b5 = c("5ba", "5bb", "5bc", "5bd", "5be"),     b6 = c("6ca", "6cb", "6cc", "6cd", "6ce"),     b7 = c("7ca", "7cb", "7cc", "7cd", "7ce")) (m1 <- merge(A, B, by.x = c("a1", "a2"), by.y = c("a1","a2"))[,-6]) Daniel Merino El día 22 de noviembre de 2012 15:46, Sebastian Kruk <residuo.solow@gmail.com> escribió: > En el B tengo las variables a1, a2, a3, b1, b2...