Closed Joaobazzo closed 2 years ago
Hi @Joaobazzo . Thanks for the suggestions. A
By city code you mean the code_muni
or the abbrev_muni
?
The read_
functions already accept a vector. For example.
library(aopdata)
pop <- read_population(city=c('bel', 'poa'))
acc <- read_access(city=c('Belem', 'Porto Alegre'))
code_muni
and abbrev_muni
was not mentioned in the documentation@Joaobazzo , we are ready to close this one, right?
@rafapereirabr . There is still number 3 to be implemented. However, since we will be updating the whole data set soon, considering other years and car modes, I believe we'll update the function anyways. We can close this.
I've been downloading the data through the
read_access
function and I saw three enhancements that could be made.The first is the need to mention the cities code in the
read_access
,read_population
,read_grid
, andread_landuse
documentation. I could only find the codes when I downloaded usingcity = all
.Also, the function could be implemented to accept a vector of cities' names, instead of a single city. By doing this the user doesn't need to use any
lapply()
command to extract the desired files.When we use
mode = 'public_transport'
withcity = 'all'
, we get this error:There could be a condition that uses
c("for", "rec", "bho","rio", "spo", "cur", "poa")
when the commands (mode = 'public_transport'
withcity = 'all'
) are used together.If you guys agree with these suggestions, I can go forward and open a PR.