Displaying 1 result from an estimated 1 matches for "anaquim".
Did you mean:
anaheim
2010 May 31
2
Problems with apply
Hello I am tryin to use the apply functions with two data frames I've got
and I am getting the following error message
Error en HistRio$SecSte : $ operator is invalid for atomic vectors
I don't understand why. when I use the apply I am doing:
PromP <- function(HistRio,AnaQuim){
xx <- c(0,0,0)
if(length(which(AnaQuim$SecSte==HistRio$SecSte))>0){ xx[1]<-1 }
if(length(which(as.Date(AnaQuim$A?O1)<=as.Date(HistRio$FinCorte)))>0){ xx[2]
<- 1}
if( length(which(as.Date(AnaQuim$A?O1)>=as.Date(HistRio$FechaSiembra)))>0){
xx[3]<-1 }
if( length(which(as.D...