Skip to content

Commit

Permalink
style adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
Haydée Svab committed Oct 11, 2023
1 parent f8eeaea commit 955ae08
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions R/read_dictionary.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ read_dictionary <- function(city = "S\u00E3o Paulo",

# Validate if there is any metadata entry for the given arguments
if (nrow(odbr::metadata[clean_string(odbr::metadata$city) == city_clean &
odbr::metadata$year == year &
odbr::metadata$harmonized == harmonize &
odbr::metadata$language == language, ]) == 0) {
odbr::metadata$year == year &

Check warning on line 38 in R/read_dictionary.R

View workflow job for this annotation

GitHub Actions / lint

file=R/read_dictionary.R,line=38,col=4,[indentation_linter] Indentation should be 28 spaces but is 4 spaces.

Check warning on line 38 in R/read_dictionary.R

View workflow job for this annotation

GitHub Actions / lint-project

file=R/read_dictionary.R,line=38,col=4,[indentation_linter] Indentation should be 28 spaces but is 4 spaces.
odbr::metadata$harmonized == harmonize &
odbr::metadata$language == language, ]) == 0) {
usethis::ui_stop("There is no dictionary for:
- city: {city}
- year: {year}
Expand Down
4 changes: 2 additions & 2 deletions R/read_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ read_map <- function(city = "S\u00E3o Paulo",

# Validate if there is any metadata entry for the given arguments
if (nrow(odbr::metadata[clean_string(odbr::metadata$city) == city_clean &
odbr::metadata$year == year &
odbr::metadata$harmonized == harmonize, ]) == 0) {
odbr::metadata$year == year &

Check warning on line 55 in R/read_map.R

View workflow job for this annotation

GitHub Actions / lint

file=R/read_map.R,line=55,col=4,[indentation_linter] Indentation should be 28 spaces but is 4 spaces.

Check warning on line 55 in R/read_map.R

View workflow job for this annotation

GitHub Actions / lint-project

file=R/read_map.R,line=55,col=4,[indentation_linter] Indentation should be 28 spaces but is 4 spaces.
odbr::metadata$harmonized == harmonize, ]) == 0) {
usethis::ui_stop("There is no geometry data for:
- city: {city}
- year: {year}
Expand Down
4 changes: 2 additions & 2 deletions R/read_od.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ read_od <- function(city = "S\u00E3o Paulo",

# Validate if there is any metadata entry for the given arguments
if (nrow(odbr::metadata[clean_string(odbr::metadata$city) == city_clean &
odbr::metadata$year == year &
odbr::metadata$harmonized == harmonize, ]) == 0) {
odbr::metadata$year == year &

Check warning on line 34 in R/read_od.R

View workflow job for this annotation

GitHub Actions / lint

file=R/read_od.R,line=34,col=4,[indentation_linter] Indentation should be 28 spaces but is 4 spaces.

Check warning on line 34 in R/read_od.R

View workflow job for this annotation

GitHub Actions / lint-project

file=R/read_od.R,line=34,col=4,[indentation_linter] Indentation should be 28 spaces but is 4 spaces.
odbr::metadata$harmonized == harmonize, ]) == 0) {
usethis::ui_stop("There is no data for:
- city: {city}
- year: {year}
Expand Down
6 changes: 3 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,23 @@ df <- read_od(
city = "Sao Paulo",
year = 2017,
harmonize = FALSE
)
)
# Return zone data from OD Surveys database as sf object at a given city and year
df <- read_map(
city = "Sao Paulo",
year = 2017,
harmonize = FALSE,
geometry = "zone"
)
)
# Return data dictionary from OD Surveys, as data.frame, at a given city and year
df <- read_dictionary(
city = "Sao Paulo",
year = 1977,
harmonize = FALSE,
language = "pt"
)
)
```

## Available non-harmonized datasets:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,23 @@ df <- read_od(
city = "Sao Paulo",
year = 2017,
harmonize = FALSE
)
)

# Return zone data from OD Surveys database as sf object at a given city and year
df <- read_map(
city = "Sao Paulo",
year = 2017,
harmonize = FALSE,
geometry = "zone"
)
)

# Return data dictionary from OD Surveys, as data.frame, at a given city and year
df <- read_dictionary(
city = "Sao Paulo",
year = 1977,
harmonize = FALSE,
language = "pt"
)
)
```

## Available non-harmonized datasets:
Expand Down

0 comments on commit 955ae08

Please sign in to comment.