ropensci/stats19

format_sf fails

Robinlovelace opened this issue · 0 comments

x = fatalities
n = names(x)
coords = n[grep(pattern = "easting|northing", x = n, ignore.case = TRUE)]
coords[1]
# [1] "location_easting_osgr"
# Identify rows with NA in coords columns:
x[[coords[1]]] | x[[coords[2]]]

Error in x[[coords[1]]] | x[[coords[2]]] : 
  operations are possible only for numeric, logical or complex types