Skip to content

fields

17.3

Tools for Spatial Data

235packages depend
650.8Kdownloads / year
48.9%test coverage
9/13checks pass

Overview

About
Maintained by Douglas NychkaFirst published 2001-07-2780 releasesCRAN page ↗GitHub ↗

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

CRAN checks
1ERROR3NOTE9OK
Failing flavors
  • 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
Slowest check: 11.7 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.41
48.9%
Coverage · measured lines
5
Dependencies · direct
Check history
  • ERROR2026-07-23
    9 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-07-11
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-05-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-03-10
    11 OK · 0 NOTE · 3 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
96%
Documented parameters
not tracked
Return-value docs
not tracked
References docs
6%

Downloads

650.8K
CRAN downloads in the past year
Rank #426 · ~1.8K/day · ~54.2K/mo
Daily download trend is not available in this view yet.
41.4K30 days
210K90 days
650.8K1 year
Compare downloads with other packages →
Also on6.7K r2u288 autocran37K conda_forge909 bioconda285 c2d4u

Repository

Repository
16Stars
6Forks
4Open issues
1Open PRs
0Releases
52Commits
1Contributors
License GPL-2.0 · 52 commits · Last activity 2026-05-08

Repository practices

Upstream repositoryBeta

Checks run against github.com/dnychka/fieldsrpackage on 2026-07-19.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (5)
Imports (1)
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none

Code & Tests

Code Composition
R 23,219 (51%)Rd 16,854 (37%)Other 2,623 (6%)Fortran 1,953 (4%)C 513 (1%)
Code characteristics
Object systems
S350
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

Loading call graph…

Lowest coverage

310 functions
FunctionCycloCoverage
Exp.earth.cov20%
Exp.image.cov50%
Exp.simple.cov60%
Krig.updateY60%
Matern.cor.to.range40%
Paciorek.cov110%

Datasets

Bundled datasets · 24
NameClassRows × ColsAlso ships in
CO.elevvector
CO.idvector
CO.locdata.frame376 × 2
CO.namesvector
CO.ppt.MAM.climatevector
CO.tmax.MAM.climatevector
CO.tmean.MAM.climatevector
CO.tmin.MAM.climatevector
CO.yearsvector
blasterBluevector
coloradoRedvector
darkBluevector
darkGrayvector
earthBluevector
energyYellowvector
envrGreenvector
goldenTechvector
lightBluevector
lightGrayvector
mutedBluevector
paleBluevector
rat.dietdata.frame39 × 3
redFlannelvector
silvervector

People & History

People (7)
Maintainer (1)
Author, Maintainer · added in 2.7.0
Authors (7)
Author, Maintainer · added in 2.7.0
Author · added in 2.7.0
Author · added in 9.9
Author · added in 9.9
Author · added in 16.2
Author · added in 8.3-5
Author · added in 3.0.3
Listed in earlier versions (3)
no longer listed · 1.0 to 4.1
no longer listed · 2.7.0 to 6.8
no longer listed · 9.8-3 to 15.2
Package Timeline

80 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 17.3Latest
    2026-05-05 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 17.1
    2025-09-08 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 16.3.1
    2025-03-08 · diff ↗
  • 16.3
    2024-10-01 · diff ↗
  • 16.2
    2024-06-27 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 15.2
    2023-08-17 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 14.1
    2022-08-12 · diff ↗
  • 14.0
    2022-07-05 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 13.3
    2021-10-30 · diff ↗
  • 12.5
    2021-06-25 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
Show 99 earlier events
  • 12.3
    2021-05-17 · diff ↗
  • 11.6
    2020-10-09 · diff ↗
  • 11.5
    2020-10-04 · diff ↗
  • 11.4
    2020-09-03 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 10.3
    2020-02-04 · diff ↗
  • 10.2
    2020-02-02 · diff ↗
  • 10.0
    2019-11-11 · diff ↗
  • 9.9
    2019-10-13 · diff ↗
  • 9.8-6
    2019-08-19 · diff ↗
  • 9.8-3
    2019-05-28 · diff ↗
  • 9.8-1
    2019-05-14 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 9.7
    2019-04-23 · diff ↗
  • 9.6.1
    2019-04-22 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 9.6
    2018-01-29 · diff ↗
  • 9.0
    2017-06-06 · diff ↗
  • 8.15
    2017-05-11 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 8.8
    2016-12-16 · diff ↗
  • 8.10
    2016-12-16 · diff ↗
  • 8.7
    2016-12-13 · diff ↗
  • 8.4-1
    2016-05-05 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 8.3-6
    2016-01-04 · diff ↗
  • 8.3-5
    2015-10-16 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 8.2-1
    2015-02-28 · diff ↗
  • 7.1
    2014-05-16 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 6.9.1
    2013-12-20 · diff ↗
  • 3.0.3
    2013-12-18 · diff ↗
  • 6.8
    2013-07-19 · diff ↗
  • 3.0.2
    2013-07-15 · diff ↗
  • 6.7.6
    2013-04-21 · diff ↗
  • 6.7.5
    2013-04-18 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 6.7
    2012-10-16 · diff ↗
  • 2.15.1
    2012-04-20 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • 6.6.3
    2012-01-03 · diff ↗
  • 6.6.2
    2011-11-17 · diff ↗
  • 2.14.1
    2011-11-16 · diff ↗
  • R
    R 2.14.0 released · 2011-10-31
  • 6.6.1
    2011-09-27 · diff ↗
  • 2.13.2
    2011-09-25 · diff ↗
  • 6.6
    2011-09-05 · diff ↗
  • 6.5.2
    2011-06-23 · diff ↗
  • 2.13.1
    2011-06-02 · diff ↗
  • R
    R 2.13.0 released · 2011-04-13
  • R
    R 2.12.0 released · 2010-10-15
  • 6.3
    2010-07-06 · diff ↗
  • R
    R 2.11.0 released · 2010-04-22
  • R
    R 2.10.0 released · 2009-10-26
  • 6.01
    2009-09-22 · diff ↗
  • 2.10.0
    2009-09-04 · diff ↗
  • R
    R 2.9.0 released · 2009-04-17
  • 5.02
    2009-02-09 · diff ↗
  • 2.9.0
    2009-02-06 · diff ↗
  • 5.01
    2008-10-22 · diff ↗
  • 2.8.0
    2008-10-20 · diff ↗
  • R
    R 2.8.0 released · 2008-10-20
  • 4.3
    2008-07-08 · diff ↗
  • 2.7.0
    2008-04-22 · diff ↗
  • R
    R 2.7.0 released · 2008-04-22
  • 4.1
    2007-11-30 · diff ↗
  • 2.6.1
    2007-11-12 · diff ↗
  • R
    R 2.6.0 released · 2007-10-03
  • 3.5
    2007-04-27 · diff ↗
  • 2.5.1
    2007-04-26 · diff ↗
  • R
    R 2.5.0 released · 2007-04-24
  • 3.3.1
    2007-01-07 · diff ↗
  • R
    R 2.4.0 released · 2006-10-03
  • 3.04
    2006-08-23 · diff ↗
  • R
    R 2.3.0 released · 2006-04-24
  • 2.3
    2006-02-09 · diff ↗
  • R
    R 2.2.0 released · 2005-10-06
  • 2.2.0
    2005-07-25 · diff ↗
  • 2.0
    2005-05-18 · diff ↗
  • R
    R 2.1.0 released · 2005-04-18
  • 2.1.0
    2005-02-07 · diff ↗
  • 1.7.2
    2004-11-20 · diff ↗
  • 2.0.1
    2004-11-12 · diff ↗
  • R
    R 2.0.0 released · 2004-10-04
  • 1.5
    2004-05-15 · diff ↗
  • 2.0.0
    2004-05-10 · diff ↗
  • R
    R 1.9.0 released · 2004-04-12
  • 1.4.2
    2003-11-12 · diff ↗
  • R
    R 1.8.0 released · 2003-10-08
  • 1.4
    2003-08-27 · diff ↗
  • 1.3-1
    2003-05-13 · diff ↗
  • R
    R 1.7.0 released · 2003-04-16
  • 1.3
    2003-01-15 · diff ↗
  • 1.2
    2002-12-05 · diff ↗
  • R
    R 1.6.0 released · 2002-10-01
  • R
    R 1.5.0 released · 2002-04-29
  • 1.1
    2001-12-12 · diff ↗
  • 1.0
    2001-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
Appears in task views
Report a problem with this page →