From 875b9cc972de3be55e3d3b99516f6896bcf8478f Mon Sep 17 00:00:00 2001 From: Patrick Hausmann Date: Mon, 6 Mar 2017 14:49:14 +0100 Subject: [PATCH] fix some typos in the comments / examples --- R/deviation.R | 6 +++--- R/erase.R | 2 +- R/intersect.R | 2 +- R/lawn-package.R | 2 +- R/truncate.R | 2 +- R/union.R | 2 +- man/lawn_data.Rd | 2 +- man/lawn_deviation.Rd | 6 +++--- man/lawn_difference.Rd | 2 +- man/lawn_intersect.Rd | 2 +- man/lawn_truncate.Rd | 2 +- man/lawn_union.Rd | 2 +- 12 files changed, 16 insertions(+), 16 deletions(-) diff --git a/R/deviation.R b/R/deviation.R index f8c9859..7f01adc 100644 --- a/R/deviation.R +++ b/R/deviation.R @@ -7,9 +7,9 @@ #' @export #' @param polygons Polygon(s) defining area to aggregate. #' @param points Points with values to aggregate. -#' @param in_field Characater for the name of the field on `pts` on -#' which you wish to perfrom the aggregation. -#' @param out_field Characater for the name of the field on the ouput +#' @param in_field Character for the name of the field on `pts` on +#' which you wish to perform the aggregation. +#' @param out_field Character for the name of the field on the output #' polygon FeatureCollection that will store the resultant value. #' @template lint #' @family aggregations diff --git a/R/erase.R b/R/erase.R index 6f2429a..3d57212 100644 --- a/R/erase.R +++ b/R/erase.R @@ -4,7 +4,7 @@ #' the second polygon from the first. #' #' @export -#' @param poly1 Input Polygon feaure. +#' @param poly1 Input Polygon feature. #' @param poly2 Polygon feature to erase from poly1. #' @template lint #' @family transformations diff --git a/R/intersect.R b/R/intersect.R index 6d20edb..20eebc1 100644 --- a/R/intersect.R +++ b/R/intersect.R @@ -1,6 +1,6 @@ #' Intersection #' -#' Finds the interesection of two [data-Polygon]'s and returns just +#' Finds the intersection of two [data-Polygon]'s and returns just #' the intersection of the two #' #' @export diff --git a/R/lawn-package.R b/R/lawn-package.R index 1a02474..f229581 100644 --- a/R/lawn-package.R +++ b/R/lawn-package.R @@ -30,7 +30,7 @@ NULL #' \item polygons_count - FeatureCollection of polygons #' \item points_within - FeatureCollection of points #' \item polygons_within - FeatureCollection of polygons -#' \item poly - Feaure of a single 1 degree by 1 degree polygon +#' \item poly - Feature of a single 1 degree by 1 degree polygon #' \item multipoly - FeatureCollection of two 1 degree by 1 degree polygons #' \item polygons_aggregate - FeatureCollection of Polygons from turf.js examples #' \item points_aggregate - FeatureCollection of Points from turf.js examples diff --git a/R/truncate.R b/R/truncate.R index 5fc2020..ba64be5 100644 --- a/R/truncate.R +++ b/R/truncate.R @@ -7,7 +7,7 @@ #' @param x any [data-Feature] or #' [data-FeatureCollection] #' @param precision (integer) coordinate decimal precision. default: 6 -#' @param coordinates (integer) maximum number of coordinates (primarly used +#' @param coordinates (integer) maximum number of coordinates (primarily used #' to remove z coordinates). default: 2 #' @template lint #' @family misc diff --git a/R/union.R b/R/union.R index 1f313fa..15a7252 100644 --- a/R/union.R +++ b/R/union.R @@ -1,6 +1,6 @@ #' Merge polygons #' -#' Finds the interesection of two [data-Polygon]'s and returns the +#' Finds the intersection of two [data-Polygon]'s and returns the #' union of the two #' #' @export diff --git a/man/lawn_data.Rd b/man/lawn_data.Rd index 6c087bd..5f6c10a 100644 --- a/man/lawn_data.Rd +++ b/man/lawn_data.Rd @@ -19,7 +19,7 @@ The data objects included in the list, accessible by name \item polygons_count - FeatureCollection of polygons \item points_within - FeatureCollection of points \item polygons_within - FeatureCollection of polygons -\item poly - Feaure of a single 1 degree by 1 degree polygon +\item poly - Feature of a single 1 degree by 1 degree polygon \item multipoly - FeatureCollection of two 1 degree by 1 degree polygons \item polygons_aggregate - FeatureCollection of Polygons from turf.js examples \item points_aggregate - FeatureCollection of Points from turf.js examples diff --git a/man/lawn_deviation.Rd b/man/lawn_deviation.Rd index 798ea80..2998fee 100644 --- a/man/lawn_deviation.Rd +++ b/man/lawn_deviation.Rd @@ -12,10 +12,10 @@ lawn_deviation(polygons, points, in_field, out_field = "deviation", \item{points}{Points with values to aggregate.} -\item{in_field}{Characater for the name of the field on \code{pts} on -which you wish to perfrom the aggregation.} +\item{in_field}{Character for the name of the field on \code{pts} on +which you wish to perform the aggregation.} -\item{out_field}{Characater for the name of the field on the ouput +\item{out_field}{Character for the name of the field on the output polygon FeatureCollection that will store the resultant value.} \item{lint}{(logical) Lint or not. Uses geojsonhint. Takes up increasing time diff --git a/man/lawn_difference.Rd b/man/lawn_difference.Rd index 6e73784..71f01fb 100644 --- a/man/lawn_difference.Rd +++ b/man/lawn_difference.Rd @@ -7,7 +7,7 @@ lawn_difference(poly1, poly2, lint = FALSE) } \arguments{ -\item{poly1}{Input Polygon feaure.} +\item{poly1}{Input Polygon feature.} \item{poly2}{Polygon feature to erase from poly1.} diff --git a/man/lawn_intersect.Rd b/man/lawn_intersect.Rd index 2881ca3..e81ee59 100644 --- a/man/lawn_intersect.Rd +++ b/man/lawn_intersect.Rd @@ -20,7 +20,7 @@ objects. Default: \code{FALSE}} \link{data-Polygon}, \link{data-MultiLineString}, or undefined } \description{ -Finds the interesection of two \link{data-Polygon}'s and returns just +Finds the intersection of two \link{data-Polygon}'s and returns just the intersection of the two } \details{ diff --git a/man/lawn_truncate.Rd b/man/lawn_truncate.Rd index 1729767..f58213b 100644 --- a/man/lawn_truncate.Rd +++ b/man/lawn_truncate.Rd @@ -12,7 +12,7 @@ lawn_truncate(x, precision = 6, coordinates = 2, lint = FALSE) \item{precision}{(integer) coordinate decimal precision. default: 6} -\item{coordinates}{(integer) maximum number of coordinates (primarly used +\item{coordinates}{(integer) maximum number of coordinates (primarily used to remove z coordinates). default: 2} \item{lint}{(logical) Lint or not. Uses geojsonhint. Takes up increasing time diff --git a/man/lawn_union.Rd b/man/lawn_union.Rd index 81afd57..7b6c7dc 100644 --- a/man/lawn_union.Rd +++ b/man/lawn_union.Rd @@ -21,7 +21,7 @@ A combined \link{data-Polygon} or \link{data-MultiPolygon} feature. } \description{ -Finds the interesection of two \link{data-Polygon}'s and returns the +Finds the intersection of two \link{data-Polygon}'s and returns the union of the two } \details{