Skip to content

Commit

Permalink
Correct small typos using spelling::spell_check_package()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekyt committed Feb 7, 2019
1 parent 2a129c2 commit 1926bb1
Show file tree
Hide file tree
Showing 16 changed files with 64 additions and 368 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Expand Up @@ -16,4 +16,4 @@ export(nlm_random)
export(nlm_randomcluster)
export(nlm_randomrectangularcluster)
importFrom(Rcpp,sourceCpp)
useDynLib(NLMR)
useDynLib(NLMR, .registration=TRUE)
6 changes: 3 additions & 3 deletions R/RcppExports.R
Expand Up @@ -2,14 +2,14 @@
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

rcpp_mpd <- function(ncol, nrow, rand_dev, rcpp_roughness, seed) {
.Call('_NLMR_rcpp_mpd', PACKAGE = 'NLMR', ncol, nrow, rand_dev, rcpp_roughness, seed)
.Call(`_NLMR_rcpp_mpd`, ncol, nrow, rand_dev, rcpp_roughness, seed)
}

rcpp_neigh <- function(nrow, ncol, mat, n_categories, cells_per_cat, neighbourhood, p_neigh, p_empty, seed) {
.Call('_NLMR_rcpp_neigh', PACKAGE = 'NLMR', nrow, ncol, mat, n_categories, cells_per_cat, neighbourhood, p_neigh, p_empty, seed)
.Call(`_NLMR_rcpp_neigh`, nrow, ncol, mat, n_categories, cells_per_cat, neighbourhood, p_neigh, p_empty, seed)
}

rcpp_randomrectangularcluster <- function(ncol, nrow, minl, maxl, seed) {
.Call('_NLMR_rcpp_randomrectangularcluster', PACKAGE = 'NLMR', ncol, nrow, minl, maxl, seed)
.Call(`_NLMR_rcpp_randomrectangularcluster`, ncol, nrow, minl, maxl, seed)
}

2 changes: 1 addition & 1 deletion R/nlm_gaussianfield.R
Expand Up @@ -30,7 +30,7 @@
#' distinct from one another than they are to closer objects.
#'
#' @references
#' K茅ry & Royle (2016) \emph{Applied Hierarachical Modeling in Ecology}
#' K茅ry & Royle (2016) \emph{Applied Hierarchical Modeling in Ecology}
#' Chapter 20
#'
#' @examples
Expand Down
2 changes: 1 addition & 1 deletion R/nlm_mosaicgibbs.R
Expand Up @@ -9,7 +9,7 @@
#' but instead of a random point pattern the algorithm fits a simulated realization of the Strauss
#' process. The Strauss process starts with a given number of points and
#' uses a minimization approach to fit a point pattern with a given interaction
#' parameter (0 - hardcore process; 1 - Poission process) and interaction radius
#' parameter (0 - hardcore process; 1 - Poisson process) and interaction radius
#' (distance of points/germs being apart).
#'
#' @param ncol [\code{numerical(1)}]\cr
Expand Down
4 changes: 2 additions & 2 deletions R/nlm_neigh.R
Expand Up @@ -10,8 +10,8 @@
#' Von-Neumann-neighborhood (4 cells), otherwise it is based on \code{p_empty}. To create
#' clustered neutral landscape models, \code{p_empty} should be (significantly) smaller than
#' \code{p_neigh}. By default, the Von-Neumann-neighborhood is used to check adjacent
#' cells. The algorithm starts with the highest categorial value. If the
#' proportion of cells with this value is reached, the categorial value is
#' cells. The algorithm starts with the highest categorical value. If the
#' proportion of cells with this value is reached, the categorical value is
#' reduced by 1. By default, a uniform distribution of the categories is
#' applied.
#'
Expand Down
2 changes: 1 addition & 1 deletion R/nlm_randomrectangularcluster.R
Expand Up @@ -14,7 +14,7 @@
#' with rectangles defined by \code{minl} and \code{maxl} until the surface
#' of the landscape is completely covered.
#' This is one type of realisation of a "falling/dead leaves" algorithm,
#' for more details see Galerne & Goussea (2012).
#' for more details see Galerne & Gousseau (2012).
#'
#' @return RasterLayer
#'
Expand Down
8 changes: 4 additions & 4 deletions README.Rmd
Expand Up @@ -25,7 +25,7 @@ knitr::opts_chunk$set(
# NLMR <img src="man/figures/logo.png" align="right" width="150" />

**NLMR** is an ``R`` package for simulating **n**eutral **l**andscape **m**odels (NLM). Designed to be a generic framework like [NLMpy](https://pypi.python.org/pypi/nlmpy), it leverages the ability to simulate the most common NLM that are described in the ecological literature.
**NLMR** builds on the advantages of the **raster** package and returns all simulation as ``RasterLayer`` objects, thus ensuring a direct compability to common GIS tasks and a flexible and simple usage.
**NLMR** builds on the advantages of the **raster** package and returns all simulation as ``RasterLayer`` objects, thus ensuring a direct compatibility to common GIS tasks and a flexible and simple usage.
Furthermore, it simulates NLMs within a self-contained, reproducible framework.

## Installation
Expand Down Expand Up @@ -65,7 +65,7 @@ midpoint_displacememt <- NLMR::nlm_mpd(ncol = 100,

## Overview

**NLMR** supplies 15 NLM algorithms, with several options to simulate derivates of
**NLMR** supplies 15 NLM algorithms, with several options to simulate derivatives of
them. The algorithms differ from each other in spatial auto-correlation, from
no auto-correlation (random NLM) to a constant gradient (planar gradients):

Expand Down Expand Up @@ -109,7 +109,7 @@ function_tibble[5,4] <- "Schlather et al. (2015)"
# nlm_mosaicfield
function_tibble[6,1] <- "nlm_mosaicfield"
function_tibble[6,2] <- "Simulates a mosaic random field neutral landscape model. The algorithm imitates fault lines by repeatedly bisecting the landscape and lowering the values of cells in one half and increasing the values in the other half. If one sets the parameter infinit to TRUE, the algorithm approaches a fractal pattern"
function_tibble[6,2] <- "Simulates a mosaic random field neutral landscape model. The algorithm imitates fault lines by repeatedly bisecting the landscape and lowering the values of cells in one half and increasing the values in the other half. If one sets the parameter infinite to TRUE, the algorithm approaches a fractal pattern"
function_tibble[6,3] <- "Figure 1f"
function_tibble[6,4] <- "Schlather et al. (2015)"
Expand Down Expand Up @@ -175,7 +175,7 @@ kable(function_tibble) %>%
## See also

**NLMR** was split during its development process - to have a minimal dependency version
for simulating neutral landscape models and an utility toolbox to facilate workflows
for simulating neutral landscape models and an utility toolbox to facilitate workflows
with raster data.
If you are interested in merging, visualizing or further handling neutral landscape models
have a look at the [landscapetools](https://github.com/ropensci/landscapetools/) package.
Expand Down

0 comments on commit 1926bb1

Please sign in to comment.