-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completes conversion of benvo to S3 class with accompanying methods.
Updated `benvo()` now allows for construction of relational data with pre-constructed data or data calculated via `add_BEF()` using `sf` or lubridate date/time columns. Helper methods in the form of dplyr verbs and plotting functions are also provided.
- Loading branch information
1 parent
85e3296
commit f57be17
Showing
99 changed files
with
4,867 additions
and
540 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Package: rbenvo | ||
Type: Package | ||
Title: Built Environment Objects for Point Pattern Data in R | ||
Version: 0.1.1.9000 | ||
Version: 1.0.0 | ||
Authors@R: person("Adam", "Peterson", , "[email protected]", c("aut", "cre")) | ||
Description: rbenvo is package that holds S4 class objects and methods for built environment data to ease the use of working with these data and improve interoperability with other packages. | ||
Description: rbenvo is package that holds S3 class objects and methods for built environment data to ease the use of working with these data and improve interoperability with other packages. | ||
License: GPL-3 | ||
Encoding: UTF-8 | ||
LazyData: true | ||
|
@@ -22,7 +22,9 @@ Imports: | |
sf, | ||
lubridate, | ||
rlang, | ||
tidygraph | ||
tidygraph, | ||
ggmap, | ||
stringr | ||
RoxygenNote: 7.1.1 | ||
Depends: | ||
R (>= 2.10) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#' @export | ||
#' @importFrom dplyr arrange | ||
arrange.benvo <- function(.data, ...) { | ||
|
||
tmp_df <- get_active(.data) | ||
if(active(.data) == 'subject') | ||
.data$subject_data <- dplyr::arrange(tmp_df,...) | ||
else if(bef_is_active(.data)) | ||
.data$bef_data[[active(.data)]] <- dplyr::arrange(tmp_df,...) | ||
else | ||
.data$subj_bef_data[[active(.data)]] <- dplyr::arrange(tmp_df,...) | ||
.data | ||
} | ||
|
||
#' @export | ||
dplyr::arrange |
Oops, something went wrong.