In this section, you are going to learn about two very useful functions to apply an operation on the subsets of data. The two functions, tapply
and apply
, along with a few others, form a collection of functions called apply
functions. The functions in the collection are used to apply (hence the name) a function we choose over subsets of an object, and then join the results to form a single object once again. The apply
functions are a defining feature of R; they replace the necessity to write explicit loops in many common situations in data analysis, which makes the code shorter and more elegant.
Learning R for Geospatial Analysis
By :
Learning R for Geospatial Analysis
By:
Overview of this book
Table of Contents (18 chapters)
Learning R for Geospatial Analysis
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
The R Environment
Working with Vectors and Time Series
Working with Tables
Working with Rasters
Working with Points, Lines, and Polygons
Modifying Rasters and Analyzing Raster Time Series
Combining Vector and Raster Datasets
Spatial Interpolation of Point Data
Advanced Visualization of Spatial Data
External Datasets Used in Examples
Cited References
Index
Customer Reviews