Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format_sf fails #228

Closed
Robinlovelace opened this issue Nov 4, 2023 · 0 comments · Fixed by #229
Closed

format_sf fails #228

Robinlovelace opened this issue Nov 4, 2023 · 0 comments · Fixed by #229

Comments

@Robinlovelace
Copy link
Member

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
Robinlovelace added a commit that referenced this issue Nov 4, 2023
@Robinlovelace Robinlovelace linked a pull request Nov 4, 2023 that will close this issue
Robinlovelace added a commit that referenced this issue Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant