Collection of utility and convenience functions, and some interesting spatial functions


[Up] [Top]

Documentation for package ‘taRifx’ version 1.0

Help Pages

taRifx-package Random collection of functions, particularly those for working with SpatialPolygons, SpatialPoints, etc. objects
as.matrix.by Produces a nice summary table by groupings
between Classify values into groups based on which numbers they're between
bin Classify values into groups based on which numbers they're between
bytable Produces a nice summary table by groupings
categorize Categorize a vector based on a data.frame with two columns, the low and high end points of each category
cleanLatLon Standardize latitude/longitude coordinates
closestPoint Cartesian distance between points
compareplot Bar plot divided by three groupings
countPointsInPolys Count points within a polygon
cumDist Calculate cumulative distance along a matrix of x,y coordinates
daysofweek Return a vector of the days of the week, in order
distinct Returns number of distinct observations in each column of a data frame or in a vector
evens Shortcut functions to return the odd and even values from a vector
expandDF Functions to manipulate data frames
first Convenience functions to return the last/first element of a vector
fpart Obtain the fractional part of a numeric
hist_horiz Kludgy horizontal histogram function (really should just fix the lattice equivalent)
homogenous Returns whether a vector is homogenous or not
interpolatePathpoints Interpolate points along a path
last Convenience functions to return the last/first element of a vector
latex.table.by Exports a latex table with the first N columns being multirow grouping variables.
lineDist Line distance in SpatialLinesDataFrame
middle.group Return a vector containing the locations of the middle of every group in a vector.
odds Shortcut functions to return the odd and even values from a vector
panel.densityplot.enhanced Various panel functions
panel.ecdf Various panel functions
panel.xyplot_rug Various panel functions
pointDistPairwise Create all pairwise distances of points from a SpatialPointsDataFrame
pointgrid2SpatialPolygons Take a grid of regularly spaced points (such as those output by the centroids of Arc's fishnet function) and convert it to various grid data types
quantile_cutpoints Classify values into groups based on which numbers they're between
remove.factors Converts all factors in a data.frame to character.
reshapeSLDF Reshape a spatialLinesDataFrame into a series of points with associated information
roundnear Rounds a numeric vector to arbitrary values (not just decimal values as with round) or to a specified number of significant digits.
round_sigfig Rounds a numeric vector to arbitrary values (not just decimal values as with round) or to a specified number of significant digits.
searchPattern Create a vector that starts with a given number and widens out
shift Shifts a vector's elements left or right by N elements.
simpledist Cartesian distance between points
SLDFtoLine Convert a SpatialLinesDataFrame to a single line matrix with associated segment information
smoothLines Smooth the line segments in a SpatialLinesDataFrame
sort.data.frame Sort a data.frame
SPDFareas Return areas of polygons in a SpatialPolygonsDataFrame
SPDFtoPointsDF Convert SpatialPointsDataFrame to a regular data.frame with the coordinates as "x" and "y"
splitc Split data over columns
splitDF Functions to manipulate data frames
subsetSPDF Subset SpatialPolygonsDataFrame or SpatialPointsDataFrame
taRifx Random collection of functions, particularly those for working with SpatialPolygons, SpatialPoints, etc. objects
title.page.new Plot a title page containing the given text. Good for breaking up sections of plot PDFs.
trues Return vector of equal length containing all TRUEs
unsplitDF Functions to manipulate data frames
xtable.lme Add in methods to handle LME objects in xtable
xtable.summary.lme Add in methods to handle LME objects in xtable
xtablelm Produces the output of an lm object as it appears in the R console when you type summary(lmobject)