Skip to content

Commit

Permalink
refactor: Tidy 🚧
Browse files Browse the repository at this point in the history
  • Loading branch information
luukvdmeer committed Nov 17, 2024
1 parent ac31af4 commit b2b09db
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 23 deletions.
6 changes: 3 additions & 3 deletions R/create.R
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ as_sfnetwork = function(x, ...) {
#' an \code{\link[sf]{sf}} object through \code{\link[sf]{st_as_sf}}. Arguments
#' to \code{\link[sf]{st_as_sf}} can be provided as additional arguments and
#' will be forwarded to \code{\link[sf]{st_as_sf}} through the
#' code{\link{sfnetwork}} construction function.
#' \code{\link{sfnetwork}} construction function.
#'
#' @importFrom tidygraph as_tbl_graph
#' @export
Expand Down Expand Up @@ -380,7 +380,7 @@ as_sfnetwork.sfNetwork = function(x, ...) {
#' \code{\link[sf]{sf}} object through \code{\link[sf]{st_as_sf}}. Arguments
#' to \code{\link[sf]{st_as_sf}} can be provided as additional arguments and
#' will be forwarded to \code{\link[sf]{st_as_sf}} through the
#' code{\link{sfnetwork}} construction function. The directness of the original
#' \code{\link{sfnetwork}} construction function. The directness of the original
#' graph is preserved unless specified otherwise through the \code{directed}
#' argument.
#'
Expand Down Expand Up @@ -591,7 +591,7 @@ create_from_spatial_lines = function(x, directed = TRUE, compute_length = FALSE,
#' whenever possible.
#'
#' The provided adjacency matrix may also be sparse. This can be an object of
#' one of the sparse matrix classes from the \code{\pkg{Matrix}} package, or a
#' one of the sparse matrix classes from the \pkg{Matrix} package, or a
#' list-formatted sparse matrix. This is a list with one element per node,
#' holding the integer indices of the nodes it is adjacent to. An example are
#' \code{\link[sf]{sgbp}} objects. If the values are not integers, they are
Expand Down
4 changes: 2 additions & 2 deletions R/ids.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ edge_ids = function(x, focused = TRUE) {
#' @param data An object of class \code{\link{sfnetwork}}.
#'
#' @param query The query that defines for which nodes to extract indices,
#' defused into a \code{\link[dplyr:topic-quosure]{quosure}}. See Details for
#' defused into a \code{\link[rlang:topic-quosure]{quosure}}. See Details for
#' the different ways in which node queries can be formulated.
#'
#' @details There are multiple ways in which node indices can be queried in
Expand Down Expand Up @@ -121,7 +121,7 @@ evaluate_node_query = function(data, query) {
#' @param data An object of class \code{\link{sfnetwork}}.
#'
#' @param query The query that defines for which edges to extract indices,
#' defused into a \code{\link[dplyr:topic-quosure]{quosure}}. See Details for
#' defused into a \code{\link[rlang:topic-quosure]{quosure}}. See Details for
#' the different ways in which edge queries can be formulated.
#'
#' @details There are multiple ways in which edge indices can be queried in
Expand Down
4 changes: 2 additions & 2 deletions R/nb.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#'
#' Neighbor lists are sparse adjacency matrices in list format that specify for
#' each node to which other nodes it is adjacent. They occur for example in the
#' \code{\pkg{sf}} package as \code{\link[sf]{sgbp}} objects, and are also
#' frequently used in the \code{\pkg{spdep}} package.
#' \pkg{sf} package as \code{\link[sf]{sgbp}} objects, and are also
#' frequently used in the \pkg{spdep} package.
#'
#' @param x For the conversion to sfnetwork: a neighbor list, which is a list
# with one element per node that holds the integer indices of the nodes it is
Expand Down
2 changes: 1 addition & 1 deletion R/weights.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' @param data An object of class \code{\link{sfnetwork}}.
#'
#' @param spec The specification that defines how to compute or extract edge
#' weights defused into a \code{\link[dplyr:topic-quosure]{quosure}}. See
#' weights defused into a \code{\link[rlang:topic-quosure]{quosure}}. See
#' Details for the different ways in which edge weights can be specified.
#'
#' @details There are multiple ways in which edge weights can be specified in
Expand Down
4 changes: 2 additions & 2 deletions man/as_sfnetwork.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/create_from_spatial_points.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/evaluate_edge_query.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/evaluate_node_query.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/evaluate_weight_spec.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/nb.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 11 additions & 7 deletions man/st_network_iso.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b2b09db

Please sign in to comment.