Skip to content

Commit

Permalink
rebuild vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
SpatLyu committed Oct 17, 2024
1 parent cbfab88 commit 2124843
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions vignettes/geosimilarity.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ The `geosimilarity` package contains two spatial datasets:

``` r
install.packages("geosimilarity", dependencies = TRUE)
# or run the following code:
install.packages("geosimilarity", dep = TRUE)
```


Expand Down Expand Up @@ -152,7 +154,7 @@ b1 <- gos_bestkappa(Zn ~ Slope + Water + NDVI + SOC + pH + Road + Mine,
cores = 1)
})
## user system elapsed
## 3.12 0.06 4.67
## 3.42 0.08 4.67
b1$bestkappa
## [1] 0.1
b1$cvmean
Expand All @@ -174,7 +176,7 @@ b2 <- gos_bestkappa(Zn ~ Slope + Water + NDVI + SOC + pH + Road + Mine,
cores = 6)
})
## user system elapsed
## 0.04 0.03 16.32
## 0.05 0.00 17.17
b2$bestkappa
## [1] 0.08
b2$cvmean
Expand Down Expand Up @@ -220,7 +222,7 @@ g2 <- gos(Zn ~ Slope + Water + NDVI + SOC + pH + Road + Mine,
data = dt, newdata = grid, kappa = 0.08, cores = 6)
})
## user system elapsed
## 0.05 0.03 5.60
## 0.06 0.00 5.53
grid$pred <- exp(g2$pred)
grid$uc99 <- g2$`uncertainty99`

Expand Down
2 changes: 2 additions & 0 deletions vignettes/geosimilarity.Rmd.orig
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ The `geosimilarity` package contains two spatial datasets:

```{r, eval = FALSE}
install.packages("geosimilarity", dependencies = TRUE)
# or run the following code:
install.packages("geosimilarity", dep = TRUE)
```

```{r}
Expand Down

0 comments on commit 2124843

Please sign in to comment.