Learn R Programming

DSpat (version 0.1.5)

create.points.by.offset: Create point dataframe offset from line

Description

For a set of observations with x,y locations on the line and a perpendicular distance, create a new observation dataframe with true x,y point locations.

Usage

create.points.by.offset(lines, observations)

Arguments

lines
- data frame of lines with the following structure label - unique label x0 - x coordinate of beginning of line y0 - y coordinate of beginning of line x1 - x coordinate of end of line
observations
- data frame of observations with the following structure label - label linking it to a unique line x - x coordinate y - y coordinate distance- perpendicular distance;

Value

  • observations dataframe with true x,y locations

See Also

offset.points