fields
17.3Tools for Spatial Data
Overview
For curve, surface and function fitting with an emphasis on splines, spatial data, geostatistics, and spatial statistics. The major methods include cubic, and thin plate splines, Kriging, and compactly supported covariance functions for large data sets. The splines and Kriging methods are supported by functions that can determine the smoothing parameter (nugget and sill variance) and other covariance function parameters by cross validation and also by restricted maximum likelihood. For Kriging there is an easy to use function that also estimates the correlation scale (range parameter). A major feature is that any covariance function implemented in R and following a simple format can be used for spatial prediction. There are also many useful functions for plotting and working with spatial data as images. This package also contains an implementation of sparse matrix methods for large spatial data sets and currently requires the sparse matrix (spam) package. Use help(fields) to get started and for an overview. All graphics functions focus on using base R graphics. The fields source code is deliberately commented and provides useful explanations of numerical details as a companion to the manual pages. The commented source code can be viewed by expanding the source code version and looking in the R subdirectory. The reference for fields can be generated by the citation function in R and has DOI doi:10.5065/D6W957CT. Development of this package was supported in part by the National Science Foundation Grant 1417857, the National Center for Atmospheric Research, and Colorado School of Mines. See the Fields URL for a vignette on using this package and some background on spatial statistics.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- ERROR r-devel-linux-x86_64-debian-gcc
- NOTE r-devel-linux-x86_64-fedora-gcc
- NOTE r-devel-windows-x86_64
- ERROR2026-07-239 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-07-1112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-05-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- WARNING2026-03-1011 OK · 0 NOTE · 3 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 96%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- References docs
- 6%
Downloads
Repository
Repository practices
Checks run against github.com/dnychka/fieldsrpackage on 2026-07-19.
No development-tooling practices detected in the upstream repository.
Dependencies
and 187 more packages.
Code & Tests
- Cyclomatic complexity
- 4.0 median / 39 max
- Test cases
- 1 / 0.41 per code line
Test coverage
Line coverage
49%
Expression
47.7%
Tests / Examples
48.9% / 63% ex
Functions
310 0 exported
Complexity
5.8 avg / 39 max
Call network
310 nodes / 348 edges
Call graph
Open call graph →Lowest coverage
310 functions| Function | Cyclo | Coverage |
|---|---|---|
| Exp.earth.cov | 2 | 0% |
| Exp.image.cov | 5 | 0% |
| Exp.simple.cov | 6 | 0% |
| Krig.updateY | 6 | 0% |
| Matern.cor.to.range | 4 | 0% |
| Paciorek.cov | 11 | 0% |
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| CO.elev | vector | – | – |
| CO.id | vector | – | – |
| CO.loc | data.frame | 376 × 2 | – |
| CO.names | vector | – | – |
| CO.ppt.MAM.climate | vector | – | – |
| CO.tmax.MAM.climate | vector | – | – |
| CO.tmean.MAM.climate | vector | – | – |
| CO.tmin.MAM.climate | vector | – | – |
| CO.years | vector | – | – |
| blasterBlue | vector | – | – |
| coloradoRed | vector | – | – |
| darkBlue | vector | – | – |
| darkGray | vector | – | – |
| earthBlue | vector | – | – |
| energyYellow | vector | – | – |
| envrGreen | vector | – | – |
| goldenTech | vector | – | – |
| lightBlue | vector | – | – |
| lightGray | vector | – | – |
| mutedBlue | vector | – | – |
| paleBlue | vector | – | – |
| rat.diet | data.frame | 39 × 3 | – |
| redFlannel | vector | – | – |
| silver | vector | – | – |
People & History
80 releases. Pick two to compare their code metrics. R releases are shown for context.
- 17.3Latest
- RR 4.6.0 released · 2026-04-24
- 17.12025-09-08 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 16.3.12025-03-08 · diff ↗
- 16.32024-10-01 · diff ↗
- 16.22024-06-27 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 15.22023-08-17 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 14.12022-08-12 · diff ↗
- 14.02022-07-05 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 13.32021-10-30 · diff ↗
- 12.52021-06-25 · diff ↗
- RR 4.1.0 released · 2021-05-18
Show 99 earlier events
- 12.32021-05-17 · diff ↗
- 11.62020-10-09 · diff ↗
- 11.52020-10-04 · diff ↗
- 11.42020-09-03 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 10.32020-02-04 · diff ↗
- 10.22020-02-02 · diff ↗
- 10.02019-11-11 · diff ↗
- 9.92019-10-13 · diff ↗
- 9.8-62019-08-19 · diff ↗
- 9.8-32019-05-28 · diff ↗
- 9.8-12019-05-14 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 9.72019-04-23 · diff ↗
- 9.6.12019-04-22 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 9.62018-01-29 · diff ↗
- 9.02017-06-06 · diff ↗
- 8.152017-05-11 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 8.82016-12-16 · diff ↗
- 8.102016-12-16 · diff ↗
- 8.72016-12-13 · diff ↗
- 8.4-12016-05-05 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 8.3-62016-01-04 · diff ↗
- 8.3-52015-10-16 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 8.2-12015-02-28 · diff ↗
- 7.12014-05-16 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 6.9.12013-12-20 · diff ↗
- 3.0.32013-12-18 · diff ↗
- 6.82013-07-19 · diff ↗
- 3.0.22013-07-15 · diff ↗
- 6.7.62013-04-21 · diff ↗
- 6.7.52013-04-18 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 6.72012-10-16 · diff ↗
- 2.15.12012-04-20 · diff ↗
- RR 2.15.0 released · 2012-03-30
- 6.6.32012-01-03 · diff ↗
- 6.6.22011-11-17 · diff ↗
- 2.14.12011-11-16 · diff ↗
- RR 2.14.0 released · 2011-10-31
- 6.6.12011-09-27 · diff ↗
- 2.13.22011-09-25 · diff ↗
- 6.62011-09-05 · diff ↗
- 6.5.22011-06-23 · diff ↗
- 2.13.12011-06-02 · diff ↗
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- 6.32010-07-06 · diff ↗
- RR 2.11.0 released · 2010-04-22
- RR 2.10.0 released · 2009-10-26
- 6.012009-09-22 · diff ↗
- 2.10.02009-09-04 · diff ↗
- RR 2.9.0 released · 2009-04-17
- 5.022009-02-09 · diff ↗
- 2.9.02009-02-06 · diff ↗
- 5.012008-10-22 · diff ↗
- 2.8.02008-10-20 · diff ↗
- RR 2.8.0 released · 2008-10-20
- 4.32008-07-08 · diff ↗
- 2.7.02008-04-22 · diff ↗
- RR 2.7.0 released · 2008-04-22
- 4.12007-11-30 · diff ↗
- 2.6.12007-11-12 · diff ↗
- RR 2.6.0 released · 2007-10-03
- 3.52007-04-27 · diff ↗
- 2.5.12007-04-26 · diff ↗
- RR 2.5.0 released · 2007-04-24
- 3.3.12007-01-07 · diff ↗
- RR 2.4.0 released · 2006-10-03
- 3.042006-08-23 · diff ↗
- RR 2.3.0 released · 2006-04-24
- 2.32006-02-09 · diff ↗
- RR 2.2.0 released · 2005-10-06
- 2.2.02005-07-25 · diff ↗
- 2.02005-05-18 · diff ↗
- RR 2.1.0 released · 2005-04-18
- 2.1.02005-02-07 · diff ↗
- 1.7.22004-11-20 · diff ↗
- 2.0.12004-11-12 · diff ↗
- RR 2.0.0 released · 2004-10-04
- 1.52004-05-15 · diff ↗
- 2.0.02004-05-10 · diff ↗
- RR 1.9.0 released · 2004-04-12
- 1.4.22003-11-12 · diff ↗
- RR 1.8.0 released · 2003-10-08
- 1.42003-08-27 · diff ↗
- 1.3-12003-05-13 · diff ↗
- RR 1.7.0 released · 2003-04-16
- 1.32003-01-15 · diff ↗
- 1.22002-12-05 · diff ↗
- RR 1.6.0 released · 2002-10-01
- RR 1.5.0 released · 2002-04-29
- 1.12001-12-12 · diff ↗
- 1.02001-07-27
Package metadata
- First published
- 2001-07-27
- Total releases
- 80 / 25 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 3.5 MB / 17 files
- Download size
- 3.9 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet