Skip to content

Commit

Permalink
Update l definition for id
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Dec 10, 2015
1 parent 91a2fc7 commit 72172e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/od-funs.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ line2points <- function(l){
#' lines(routes_slow[n,], col = "green")

line2route <- function(ldf, ...){
l <- ldf # save spatial data and row numbers
if(class(ldf) == "SpatialLinesDataFrame"){
l <- ldf # save spatial data and row numbers
ldf <- line2df(ldf)
ldf <- line2df(l)
}

# Save the first line - catch it if it's an error
Expand Down

0 comments on commit 72172e4

Please sign in to comment.