estimate.missing(A, method = c("TPS", "Reg"))
complete.cases
(use:
mydata[complete.cases(mydata),]) or
na.omit
(use: newdata <-
na.omit(mydata)) to make a dataset of only the complete
specimens. These functions require the dataset to be a
matrix in the form of a 2d array (see
two.d.array
).data(plethodon)
plethland<-plethodon$land
plethland[3,,2]<-plethland[8,,2]<-NA #create missing landmarks
plethland[3,,5]<-plethland[8,,5]<-plethland[9,,5]<-NA
plethland[3,,10]<-NA
estimate.missing(plethland,method="TPS")
estimate.missing(plethland,method="Reg")
Run the code above in your browser using DataLab