Skip to content

Commit

Permalink
Spell check
Browse files Browse the repository at this point in the history
  • Loading branch information
japilo committed Oct 11, 2023
1 parent 1b39214 commit 098ace2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Package: paleopop
Type: Package
Title: Pattern-Oriented Modeling Framework for Coupled Niche-Population Paleo-Climatic Models
Version: 2.1.4
Version: 2.1.5
Authors@R: c(
person("Sean", "Haythorne", email = "[email protected]", role = c("aut")),
person("Julia", "Pilowsky", email = "[email protected]", role = c("aut", "cre"),
person("July", "Pilowsky", email = "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "https://orcid.org/0000-0002-6376-2585")),
person("Stuart", "Brown", email = "[email protected]", role = c("aut"),
comment = c(ORCID = "https://orcid.org/0000-0002-0669-1418")),
person("Damien", "Fordham", email = "[email protected]", role = c("aut"),
comment = c(ORCID = "https://orcid.org/0000-0003-2137-5592")))
Maintainer: Julia Pilowsky <[email protected]>
Maintainer: July Pilowsky <[email protected]>
URL: https://github.com/GlobalEcologyLab/paleopop/
BugReports: https://github.com/GlobalEcologyLab/paleopop/issues
Description: This extension of the poems pattern-oriented modeling (POM) framework
Expand All @@ -21,7 +21,7 @@ Depends: R (>= 3.6.0)
License: GPL (>= 3)
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.2.1
RoxygenNote: 7.2.3
Imports:
poems (>= 1.0.0),
R6 (>= 2.5.0),
Expand All @@ -41,6 +41,7 @@ Suggests:
rmarkdown,
markdown,
dplyr,
raster
raster,
sf
VignetteBuilder: knitr
Config/testthat/edition: 3
6 changes: 3 additions & 3 deletions R/region_subset.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Function generates a region subset of matrix values based on a subset of coordinates within the original region (using nearest spatial neighbour if coordinates differ).
#' Function generates a region subset of matrix values based on a subset of coordinates within the original region (using nearest spatial neighbor if coordinates differ).
#'
#' \code{region_subset} generates a region subset of matrix values based on a subset of coordinates within the original region (using nearest spatial neighbour if coordinates differ).
#' \code{region_subset} generates a region subset of matrix values based on a subset of coordinates within the original region (using nearest spatial neighbor if coordinates differ).
#'
#' @examples
#' coordinates <- data.frame(x = rep(seq(-178.02, -178.06, -0.01), 5),
Expand Down Expand Up @@ -89,7 +89,7 @@ region_subset = function(orig_coords = NULL, orig_matrix = NULL, subset_coords =
orig_coords <- cbind(orig_coords, ret)
subset_coords <- sf::st_as_sf(subset_coords, coords = c("x", "y"), crs = 4326)

# Join coordinates by matching to nearest spatial neighbour
# Join coordinates by matching to nearest spatial neighbor
joined_ids <- as.data.frame(sf::st_join(x = subset_coords, y = orig_coords, join = sf::st_nearest_feature))[, 1:2]

# Return the subset of the original matrix corresponding to the joined ID's
Expand Down

0 comments on commit 098ace2

Please sign in to comment.