R/fd.R

fd<-function(input){
  if(is.character(input)==TRUE){
  rp<-read.table(input)}else{
    rp<-input
  }
  disp<-rp[,1:3]
  rad<-rp[,4:6]
  angDisp<-sin(rad)*50
  
  totDisp<-cbind(disp,angDisp)
  dif<-apply(totDisp,2,diff)
  dif.sq<-dif^2
  fd<-sqrt(rowSums(dif.sq))

  return(c(0,fd))
}

Try the FIACH package in your browser

Any scripts or data that you put into this service are public.

FIACH documentation built on May 1, 2019, 8:02 p.m.