Skip to content

Commit

Permalink
Shorten nndm example
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemahoney218 committed May 17, 2023
1 parent d2b148d commit a50b673
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: spatialsample
Title: Spatial Resampling Infrastructure
Version: 0.3.0.9000
Version: 0.4.0
Authors@R: c(
person("Michael", "Mahoney", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2402-304X")),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# spatialsample (development version)
# spatialsample 0.4.0

* `spatial_nndm_cv()` is a new function for nearest neighbor distance matching
cross-validation, as described in Milà et al. 2022
Expand Down
2 changes: 1 addition & 1 deletion R/spatial_nndm_cv.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#' ames_sf <- sf::st_as_sf(ames, coords = c("Longitude", "Latitude"), crs = 4326)
#'
#' # Using a small subset of the data, to make the example run faster:
#' spatial_nndm_cv(ames_sf[1:200, ], ames_sf[2001:2200, ])
#' spatial_nndm_cv(ames_sf[1:100, ], ames_sf[2001:2100, ])
#'
#' @export
spatial_nndm_cv <- function(data, prediction_sites, ...,
Expand Down
4 changes: 4 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This is the 5th CRAN release of spatialsample. This release adds support for spatial nearest-neighbor distance matching cross-validation and updates some URLs and styling.

## Resubmission

This is a re-submission. In this version, I have shortened the runtime of an example.

## R CMD check results

0 errors | 0 warnings | 0 notes
Expand Down
2 changes: 1 addition & 1 deletion man/spatial_nndm_cv.Rd

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

0 comments on commit a50b673

Please sign in to comment.