Skip to content

Commit

Permalink
all examples under in donntest now
Browse files Browse the repository at this point in the history
  • Loading branch information
SpatLyu committed Dec 2, 2024
1 parent bca14b4 commit 9845750
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion R/sshic.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
#' @export
#'
#' @examples
#' \donttest{
#' # This code may take a bit longer to execute:
#' baltim = sf::read_sf(system.file("extdata/baltim.gpkg",package = "sshicm"))
#' sshic(baltim$PRICE,baltim$DWELL)
#'
#' }
sshic = \(d, s, seed = 42,
permutation_number = 999,
bin_method = "Sturges") {
Expand Down
4 changes: 3 additions & 1 deletion R/sshin.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
#' @export
#'
#' @examples
#' \donttest{
#' # This code may take a bit longer to execute:
#' cinc = sf::read_sf(system.file("extdata/cinc.gpkg",package = "sshicm"))
#' sshin(cinc$THEFT_D,cinc$MALE)
#'
#' }
sshin = \(d, s, seed = 42,
permutation_number = 999) {
d = as.integer(as.factor(d))
Expand Down
4 changes: 3 additions & 1 deletion man/sshic.Rd

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

4 changes: 3 additions & 1 deletion man/sshin.Rd

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

0 comments on commit 9845750

Please sign in to comment.