LinL: Calculate length of a discrete scatterplot line

View source: R/LinL.R

LinLR Documentation

Calculate length of a discrete scatterplot line

Usage

LinL(x = x = c(1,2,5,7,6),y = c(3,5,6,4,6))

Arguments

x

One line of the data (a column of variable)

y

One line of the data (a column of variable)

Examples


LinL(x = x = c(1,2,5,7,6),y = c(3,5,6,4,6))

## The function is currently defined as
function(x,y){
  if(length(x) ==length(y)){
    sum(sqrt( (diff(x))^2 +  (diff(y))^2))
  }else{
    message('length(x)!=length(y)')
  }
}



HaoLi111/MFVN documentation built on Jan. 5, 2023, 4:37 a.m.