-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME.Rmd
76 lines (53 loc) · 1.88 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# <img src="https://i.imgur.com/vTLlhbp.png" align="right" height=88 /> Analyze soils
[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
[![Travis build status](https://travis-ci.org/forestgeo/fgeo.krig.svg?branch=master)](https://travis-ci.org/forestgeo/fgeo.krig)
[![Coverage status](https://coveralls.io/repos/github/forestgeo/fgeo.krig/badge.svg)](https://coveralls.io/r/forestgeo/fgeo.krig?branch=master)
[![CRAN status](http://www.r-pkg.org/badges/version/fgeo.krig)](https://cran.r-project.org/package=fgeo.krig)
## Installation
Install the latest stable version of __fgeo.krig__ with:
```R
these_repos <- c(getOption("repos"), "https://forestgeo.github.io/drat")
install.packages("fgeo.krig", repos = these_repos)
```
Install the development version of __fgeo.krig__ with:
```R
# install.packages("devtools")
devtools::install_github("forestgeo/fgeo.krig")
```
## Example
```{r, warning=FALSE, message=FALSE}
library(fgeo.krig)
```
### Krige soil data
Using custom parameters and multiple soil variable.
```{r}
params <- list(
model = "circular", range = 100, nugget = 1000, sill = 46000, kappa = 0.5
)
vars <- c("c", "p")
custom <- krig(soil_fake, vars, params = params, quiet = TRUE)
# Showing only the first item of the resulting output
as_tibble(custom)
```
Using automated parameters.
```{r}
result <- krig(soil_fake, var = "c", quiet = TRUE)
summary(result)
```
[Get started with __fgeo__](https://forestgeo.github.io/fgeo)
## Information
* [Getting help](SUPPORT.md).
* [Contributing](CONTRIBUTING.md).
* [Contributor Code of Conduct](CODE_OF_CONDUCT.md).