Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
updated most man files to give more informative one line for pkg leve…
Browse files Browse the repository at this point in the history
…l index help
  • Loading branch information
sckott committed May 16, 2015
1 parent 23d680f commit 85a56c6
Show file tree
Hide file tree
Showing 76 changed files with 95 additions and 85 deletions.
2 changes: 1 addition & 1 deletion R/aggregate.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Aggregate
#' Calculate a series of aggregations for a set of points within polygons
#'
#' Calculates a series of aggregations for a set of points within a set of
#' polygons. Sum, average, count, min, max, deviation supported
Expand Down
2 changes: 1 addition & 1 deletion R/along.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Along
#' Get a point at a distance along a line
#'
#' Takes a \code{\link{data-LineString}} and returns a \code{\link{data-Point}}
#' at a specified distance along the line.
Expand Down
2 changes: 1 addition & 1 deletion R/average.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Average
#' Average of a field among points within polygons
#'
#' Calculate the average value of a field for a set of \code{\link{data-Point}}'s
#' within a set of \code{\link{data-Polygon}}'s
Expand Down
2 changes: 1 addition & 1 deletion R/bbox_polygon.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Bbox polygon
#' Make a polygon from a bounding box
#'
#' Takes a bbox and returns an equivalent polygon \code{\link{data-Polygon}}
#'
Expand Down
2 changes: 1 addition & 1 deletion R/bearing.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Bearing
#' Get geographic bearing between two points
#'
#' Takes two \code{\link{data-Point}}'s and finds the geographic bearing
#' between them
Expand Down
2 changes: 1 addition & 1 deletion R/bezier.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Bezier
#' Curve a linestring
#'
#' Takes a \code{\link{data-LineString}} and returns a curved version
#' by applying a \href{http://en.wikipedia.org/wiki/Bezier_spline}{Bezier}
Expand Down
2 changes: 1 addition & 1 deletion R/center.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Center
#' Get center point
#'
#' Takes a \code{\link{data-FeatureCollection}} and returns the
#' absolute center point of all features
Expand Down
2 changes: 1 addition & 1 deletion R/combine.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Combine
#' Combine singular features into plural versions
#'
#' Combines a FeatureCollection of Point, LineString, or Polygon features into
#' MultiPoint, MultiLineString, or MultiPolygon features.
Expand Down
2 changes: 1 addition & 1 deletion R/concave.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Concave
#' Concave hull polygon
#'
#' Takes a set of \code{\link{data-Point}}'s and returns a concave hull polygon.
#' Internally, this implements a Monotone chain algorithm
Expand Down
2 changes: 1 addition & 1 deletion R/convex.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Convex
#' Convex hull polygon
#'
#' Takes a set of \code{\link{data-Point}}'s and returns a convex
#' hull polygon. Internally, this uses the
Expand Down
2 changes: 1 addition & 1 deletion R/count.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Count points within polygons
#' Count number of points within polygons
#'
#' Calculates the number of \code{\link{data-Point}}'s that fall within the set
#' of \code{\link{data-Polygon}}'s
Expand Down
2 changes: 1 addition & 1 deletion R/destination.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Destination
#' Calculate destination point
#'
#' Takes a \code{\link{data-Point}} and calculates the location of a
#' destination point given a distance in degrees, radians, miles, or kilometers; and
Expand Down
2 changes: 1 addition & 1 deletion R/deviation.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Deviation
#' Standard deviation of a field among points within polygons
#'
#' Calculates the population standard deviation (i.e. denominator = n, not n-1) of
#' values from \code{\link{data-Point}}'s within a set of \code{\link{data-Polygon}}'s
Expand Down
2 changes: 1 addition & 1 deletion R/distance.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Distance
#' Distance between two points
#'
#' Calculates the distance between two \code{\link{data-Point}}'s in degress,
#' radians, miles, or kilometers. Uses the
Expand Down
2 changes: 1 addition & 1 deletion R/envelope.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Envelope
#' Calculate envelope around features
#'
#' Takes any number of features and returns a rectangular
#' \code{\link{data-Polygon}} that encompasses all vertices.
Expand Down
2 changes: 1 addition & 1 deletion R/erase.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Erase
#' Erase one polygon from another
#'
#' Finds the difference between two \code{\link{data-Polygon}}'s by clipping
#' the second polygon from the first.
Expand Down
2 changes: 1 addition & 1 deletion R/explode.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Explode
#' Explode vertices to points
#'
#' Takes a feature or set of features and returns all positions as points
#'
Expand Down
2 changes: 1 addition & 1 deletion R/jenks.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Jenks
#' Get Jenks breaks
#'
#' Takes a set of \code{\link{data-Feature}}'s and returns an array of the Jenks
#' Natural breaks for a given property
Expand Down
4 changes: 1 addition & 3 deletions R/kinks.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#' Kinks
#'
#' Takes a polygon and returns points at all self-intersections
#' Get points at all self-intersections of a polygon
#'
#' @export
#' @param input Feature of features
Expand Down
2 changes: 1 addition & 1 deletion R/line_distance.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Line distance
#' Measure a linestring
#'
#' Takes a \code{\link{data-LineString}} and measures its length in
#' the specified units.
Expand Down
2 changes: 1 addition & 1 deletion R/line_slice.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Line slice
#' Slice a line given two points
#'
#' Takes a line, a start Point, and a stop point and returns the line in
#' between those points
Expand Down
2 changes: 1 addition & 1 deletion R/max.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Maximum
#' Maximum value of a field among points within polygons
#'
#' Calculates the maximum value of a field for a set of \code{\link{data-Point}}'s
#' within a set of \code{\link{data-Polygon}}'s
Expand Down
2 changes: 1 addition & 1 deletion R/median.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Median
#' Median value of a field among points within polygons
#'
#' Calculates the variance value of a field for a set of \code{\link{data-Point}}'s
#' within a set of \code{\link{data-Polygon}}'s
Expand Down
3 changes: 2 additions & 1 deletion R/merge.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Merge
#' Merge polygons
#'
#' Takes a set of \code{\link{data-Polygon}}'s and returns a single
#' merged polygon feature. If the input polygon features are not contiguous,
Expand All @@ -8,6 +8,7 @@
#' @param fc input polygons, as \code{\link{data-FeatureCollection}}
#' @template lint
#' @family transformations
#' @seealso \code{\link{lawn_union}}
#' @return merged \code{\link{data-Polygon}} or multipolygon
#' \code{\link{data-MultiPolygon}}
#' @examples
Expand Down
2 changes: 1 addition & 1 deletion R/midpoint.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Midpoint
#' Get a point midway between two points
#'
#' Takes two \code{\link{data-Point}}'s and returns a point midway
#' between them
Expand Down
2 changes: 1 addition & 1 deletion R/min.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Minimum
#' Minimum value of a field among points within polygons
#'
#' Calculates the minimum value of a field for a set of \code{\link{data-Point}}'s
#' within a set of \code{\link{data-Polygon}}'s
Expand Down
2 changes: 1 addition & 1 deletion R/nearest.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Nearest
#' Get nearest point
#'
#' Takes a reference \code{\link{data-Point}} and a set of points and returns the point from
#' the set closest to the reference
Expand Down
7 changes: 4 additions & 3 deletions R/point_on_line.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#' Line slice
#' Get closest point on linestring to reference point
#'
#' Takes a line, a start Point, and a stop point and returns the line in
#' between those points
#' Takes a line, a start \code{\link{data-Point}}, and a stop point and returns
#' the line in between those points
#'
#' @export
#' @param line line to snap to
#' @param point point to snap from
#' @template lint
#' @return A \code{\link{data-Point}}
#' @examples
#' line <- '{
#' "type": "Feature",
Expand Down
2 changes: 1 addition & 1 deletion R/point_on_surface.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Point on surface
#' Get a point on the surface of a feature
#'
#' Finds a \code{\link{data-Point}} guaranteed to be on the surface of
#' \code{\link{data-GeoJSON}} object.
Expand Down
2 changes: 1 addition & 1 deletion R/quantile.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Quantile
#' Calculate quantiles
#'
#' Takes a \code{\link{data-FeatureCollection}}, a property name, set of percentiles
#' and returns a quantile array
Expand Down
2 changes: 1 addition & 1 deletion R/reclass.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Reclass
#' Reclassify properties data
#'
#' Takes a \code{\link{data-FeatureCollection}}, an input field, an output field,
#' and an array of translations and outputs an identical FeatureCollection with
Expand Down
2 changes: 1 addition & 1 deletion R/simplify.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Simplify
#' Simplify GeoJSON data
#'
#' Takes a \code{\link{data-LineString}} or \code{\link{data-Polygon}}
#' and returns a simplified version
Expand Down
2 changes: 1 addition & 1 deletion R/size.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Size
#' Expand a bounding box
#'
#' Takes a bounding box and returns a new bounding box with a size
#' expanded or contracted by a factor of X.
Expand Down
2 changes: 1 addition & 1 deletion R/square.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Square
#' Calculate a square bounding box
#'
#' Takes a bounding box and calculates the minimum square bounding
#' box that would contain the input.
Expand Down
2 changes: 1 addition & 1 deletion R/sum.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Sum
#' Sum of a field among points within polygons
#'
#' Calculates the sum of a field for a set of \code{\link{data-Point}}'s
#' within a set of \code{\link{data-Polygon}}'s
Expand Down
2 changes: 1 addition & 1 deletion R/tag.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Spatial join
#' Spatial join of points and polygons
#'
#' Takes a set of \code{\link{data-Point}}'s and a set of
#' \code{\link{data-Polygon}}'s and performs a spatial join
Expand Down
6 changes: 4 additions & 2 deletions R/union.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#' Union
#' Merge polygons
#'
#' Finds the interesection of two polygons and returns the union of the two
#' Finds the interesection of two \code{\link{data-Polygon}}'s and returns the
#' union of the two
#'
#' @export
#' @param poly1 A polygon
Expand All @@ -12,6 +13,7 @@
#'
#' @details Contiguous polygons are combined, non-contiguous polygons are returned
#' as MultiPolygon
#' @seealso \code{\link{lawn_merge}}
#' @author Jeff Hollister \email{hollister.jeff@@epa.gov}
#' @examples
#' poly1 <- '{
Expand Down
2 changes: 1 addition & 1 deletion R/variance.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Variance
#' Variance of a field among points within polygons
#'
#' Calculates the variance value of a field for a set of \code{\link{data-Point}}'s
#' within a set of \code{\link{data-Polygon}}'s
Expand Down
2 changes: 1 addition & 1 deletion man/lawn_aggregate.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% Please edit documentation in R/aggregate.R
\name{lawn_aggregate}
\alias{lawn_aggregate}
\title{Aggregate}
\title{Calculate a series of aggregations for a set of points within polygons}
\usage{
lawn_aggregate(polys, pts, agg = list(c("count", "", "num_of_pts")),
lint = FALSE)
Expand Down
2 changes: 1 addition & 1 deletion man/lawn_along.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% Please edit documentation in R/along.R
\name{lawn_along}
\alias{lawn_along}
\title{Along}
\title{Get a point at a distance along a line}
\usage{
lawn_along(line, distance, units, lint = FALSE)
}
Expand Down
2 changes: 1 addition & 1 deletion man/lawn_average.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% Please edit documentation in R/average.R
\name{lawn_average}
\alias{lawn_average}
\title{Average}
\title{Average of a field among points within polygons}
\usage{
lawn_average(polygons, points, field, outputField = "average", lint = FALSE)
}
Expand Down
2 changes: 1 addition & 1 deletion man/lawn_bbox_polygon.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% Please edit documentation in R/bbox_polygon.R
\name{lawn_bbox_polygon}
\alias{lawn_bbox_polygon}
\title{Bbox polygon}
\title{Make a polygon from a bounding box}
\usage{
lawn_bbox_polygon(bbox)
}
Expand Down
2 changes: 1 addition & 1 deletion man/lawn_bearing.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% Please edit documentation in R/bearing.R
\name{lawn_bearing}
\alias{lawn_bearing}
\title{Bearing}
\title{Get geographic bearing between two points}
\usage{
lawn_bearing(start, end, lint = FALSE)
}
Expand Down
2 changes: 1 addition & 1 deletion man/lawn_bezier.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% Please edit documentation in R/bezier.R
\name{lawn_bezier}
\alias{lawn_bezier}
\title{Bezier}
\title{Curve a linestring}
\usage{
lawn_bezier(line, resolution = 10000L, sharpness = 0.85, lint = FALSE)
}
Expand Down
2 changes: 1 addition & 1 deletion man/lawn_center.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% Please edit documentation in R/center.R
\name{lawn_center}
\alias{lawn_center}
\title{Center}
\title{Get center point}
\usage{
lawn_center(features, lint = FALSE)
}
Expand Down
2 changes: 1 addition & 1 deletion man/lawn_combine.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% Please edit documentation in R/combine.R
\name{lawn_combine}
\alias{lawn_combine}
\title{Combine}
\title{Combine singular features into plural versions}
\usage{
lawn_combine(fc, lint = FALSE)
}
Expand Down
2 changes: 1 addition & 1 deletion man/lawn_concave.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% Please edit documentation in R/concave.R
\name{lawn_concave}
\alias{lawn_concave}
\title{Concave}
\title{Concave hull polygon}
\usage{
lawn_concave(points, maxEdge = 1, units = "miles", lint = FALSE)
}
Expand Down
2 changes: 1 addition & 1 deletion man/lawn_convex.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% Please edit documentation in R/convex.R
\name{lawn_convex}
\alias{lawn_convex}
\title{Convex}
\title{Convex hull polygon}
\usage{
lawn_convex(input, lint = FALSE)
}
Expand Down
2 changes: 1 addition & 1 deletion man/lawn_count.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% Please edit documentation in R/count.R
\name{lawn_count}
\alias{lawn_count}
\title{Count points within polygons}
\title{Count number of points within polygons}
\usage{
lawn_count(polygons, points, countField = "pt_count", lint = FALSE)
}
Expand Down
2 changes: 1 addition & 1 deletion man/lawn_destination.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% Please edit documentation in R/destination.R
\name{lawn_destination}
\alias{lawn_destination}
\title{Destination}
\title{Calculate destination point}
\usage{
lawn_destination(start, distance, bearing, units, lint = FALSE)
}
Expand Down
2 changes: 1 addition & 1 deletion man/lawn_deviation.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% Please edit documentation in R/deviation.R
\name{lawn_deviation}
\alias{lawn_deviation}
\title{Deviation}
\title{Standard deviation of a field among points within polygons}
\usage{
lawn_deviation(polys, pts, inField, outField, lint = FALSE)
}
Expand Down
2 changes: 1 addition & 1 deletion man/lawn_distance.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% Please edit documentation in R/distance.R
\name{lawn_distance}
\alias{lawn_distance}
\title{Distance}
\title{Distance between two points}
\usage{
lawn_distance(from, to, units = "kilometers", lint = FALSE)
}
Expand Down
2 changes: 1 addition & 1 deletion man/lawn_envelope.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% Please edit documentation in R/envelope.R
\name{lawn_envelope}
\alias{lawn_envelope}
\title{Envelope}
\title{Calculate envelope around features}
\usage{
lawn_envelope(fc, lint = FALSE)
}
Expand Down
Loading

0 comments on commit 85a56c6

Please sign in to comment.