validate_df: Function validates data frame with distance cases...

View source: R/createDM.R

validate_dfR Documentation

Function validates data frame with distance cases (point1,point2,distance)
  • If values included in all three columns are numeric 1 is returned

  • If values included in first and second column are character and third includes numeric values 2 is returned

Otherwise, this is not a valid data frame, error is generated

Description

Function validates data frame with distance cases (point1,point2,distance)

  • If values included in all three columns are numeric 1 is returned

  • If values included in first and second column are character and third includes numeric values 2 is returned

Otherwise, this is not a valid data frame, error is generated

Usage

validate_df(df)

maszdev/dist2location documentation built on June 11, 2025, 11:55 a.m.