We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mesh_to_coords()
r-wakalang slackでの報告から
library(dplyr, warn.conflicts = FALSE) library(tidyr) library(purrr) library(jpmesh) df <- tibble(longitude = 139.71475, latitude = 35.70078, mesh_size = c("80km", "10km", "1km", "500m", "250m", "125m") ) %>% mutate(meshcode = pmap(list(longitude, latitude, mesh_size), coords_to_mesh)) %>% unnest() df %>% mutate(mesh = pmap(list(meshcode), mesh_to_coords)) %>% unnest() %>% select(meshcode, mesh_size, lng_error, lat_error) #> # A tibble: 6 x 4 #> meshcode mesh_size lng_error lat_error #> <chr> <chr> <dbl> <dbl> #> 1 5339 80km 0.5 0.333 #> 2 533945 10km 0.0625 0.0417 #> 3 53394547 1km 0.00625 0.00417 #> 4 533945471 500m 0.00312 0.00208 #> 5 5339454711 250m 0.000781 0.000521 #> 6 53394547112 125m 0.000195 0.000130
Created on 2019-05-15 by the reprex package (v0.2.1)
250m, 125mのlng_errorおよびlat_errorの値は 500mのそれの1/2, 1/4でなければならないが出力がおかしい。
lng_error
lat_error
The text was updated successfully, but these errors were encountered:
596d705
fix.
df %>% mutate(mesh = pmap(list(meshcode), mesh_to_coords)) %>% unnest() %>% select(meshcode, mesh_size, lng_error, lat_error) #> # A tibble: 6 x 4 #> meshcode mesh_size lng_error lat_error #> <chr> <chr> <dbl> <dbl> #> 1 5339 80km 0.5 0.333 #> 2 533945 10km 0.0625 0.0417 #> 3 53394547 1km 0.00625 0.00417 #> 4 533945471 500m 0.00312 0.00208 #> 5 5339454711 250m 0.00156 0.00104 #> 6 53394547112 125m 0.000781 0.000521
Sorry, something went wrong.
No branches or pull requests
r-wakalang slackでの報告から
Created on 2019-05-15 by the reprex package (v0.2.1)
250m, 125mの
lng_error
およびlat_error
の値は 500mのそれの1/2, 1/4でなければならないが出力がおかしい。The text was updated successfully, but these errors were encountered: