I go this error and I and I am not sure what is going on because there are 3 different vaccines.
Error in $<-.data.frame(*tmp*, "VaccType", value = logical(0)) :
replacement has 0 rows, data has 31
any thoughts
I go this error and I and I am not sure what is going on because there are 3 different vaccines.
Error in $<-.data.frame(*tmp*, "VaccType", value = logical(0)) :
replacement has 0 rows, data has 31
any thoughts
Please show the code you ran that produced this error.
breastmilk$VaccType=ifelse(breastmilk$vaccinetype=="Pf",0,1)
Error in `$<-.data.frame`(`*tmp*`, "VaccType", value = logical(0)) :
replacement has 0 rows, data has 31
You might want to show the data too. dput(breastmilk) then copy and paste.