search for: tstring3

Displaying 2 results from an estimated 2 matches for "tstring3".

Did you mean: string3
2018 Jan 24
0
Issue with concatenation of URL losing
...paste0( "https://elevation.mapzen.com/height?json={\"range\":false,\"shape\":[{\"lat\":",lat,",\"lon\":",lon,"}]}&api_key=mycode" ) tstring1 == tstring2 # confirm results are the same #> [1] TRUE lat <- 10 lon <- 20 tstring3 <- paste0( "https://elevation.mapzen.com/height?json={\"range\":false,\"shape\":[{\"lat\":",lat,",\"lon\":",lon,"}]}&api_key=mycode" ) cat( tstring3, "\n" ) # output on its own line #> https://elevation.mapzen...
2018 Jan 24
2
Issue with concatenation of URL losing
Thank you for your help in advance. I am trying to pull some data back from a web service library(httr) sample2 <- GET("https://elevation.mapzen.com/height?json={\"range\":false,\"shape\":[{\"lat\":40.7,\"lon\":-76.5}]}&api_key=mycode") result2 <- content(sample2) height <- result2$height[[1]] I would like to put by own latitude