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
encode()
Example 1: NA inputs round-tripped through encode/decode return numeric lat/lon coordinates.
NA
encode/decode
df <- data.frame(lat = c(NA_real_), lon = c(NA_real_)) (res <- googlePolylines::encode(df)) #> [1] ">>" googlePolylines::decode(res) #> [[1]] #> lat lon #> 1 -0.00016 -0.00016
Example 2: Data frame with four observations round-tripped through encode/decode returns a data frame with only three observations.
df <- data.frame(lat = c(38.5, 40.7, NA_real_, 43.252), lon = c(-120.2, -120.95, NA_real_, -126.453)) (res <- googlePolylines::encode(df)) #> [1] "_p~iF~ps|U_ulLnnqC_\016\x9e\xd7" googlePolylines::decode(res) #> [[1]] #> lat lon #> 1 38.5000 -120.200 #> 2 40.7000 -120.950 #> 3 40.7024 -120.954
The text was updated successfully, but these errors were encountered:
No branches or pull requests
encode()
Example 1:
NA
inputs round-tripped throughencode/decode
return numeric lat/lon coordinates.Example 2:
Data frame with four observations round-tripped through
encode/decode
returns a data frame with only three observations.The text was updated successfully, but these errors were encountered: