Skip to content

Commit

Permalink
Update with class object
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Apr 22, 2021
1 parent f75e934 commit 66e4889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/aggregate.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ od_disaggregate = function(od,
}

# is the input data an sf object? tell the user and convert to df if so
if(is(object = od, class2 = "sf")) {
if(methods::is(object = od, class2 = "sf")) {
message("Input object is sf, attempting to convert to a data frame")
od = sf::st_drop_geometry(od)
}
Expand Down

0 comments on commit 66e4889

Please sign in to comment.