in input I have
vecA <- c("AA3","AA56","AA128","AA1256")
I have the manifest for corresponding name in nomenclature B from AA1 to AAx
I want an output as follows:
vecB <- c("BB3","BB56","BB128","BB1256")
it could be easily with a loop :
vecB = NULL
for (i in vecA) {
n <- manifest$nomB[which(manifest$nomA == vecA ) ]
vecB = c(vecB,n)
}
But vecA is very huge so I prefer to use a function, apply or other. I don't see how to code it.
Regards
Simon