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

1

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
             y1    - y coordinate of end of line
             width - optional full width of each transect
                      line is in center of transect
             ...   - any number of covariates
       
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;
                       positive=right side; negative=left side
               ...   - any number of covariates
      

Value

observations dataframe with true x,y locations

Author(s)

Jeff Laake

See Also

offset.points

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.