Blog Archives

Compiling Source Packages on R 2.15.x / Mac OS 10.5.x

August 31, 2012
By

For some reason R is not happy with its 64-bit cousin when installing source packages: * installing *source* package ‘XMLSchema’ ... ** R ** inst ** preparing package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded *** arch - i386 *** arch - x86_64 /Library/Frameworks/R.framework/Resources/bin/R: line 259: /Library/Frameworks/R.framework/Resources/bin/exec/x86_64/R: Bad CPU type in executable /Library/Frameworks/R.framework/Resources/bin/R: line 259:...

Read more »

Compiling rgdal on Mac OS 10.5

August 31, 2012
By

Why do I always forget how to do this? R CMD INSTALL rgdal --configure-args="--with-gdal-config=/Library/Frameworks/GDAL.framework/Versions/Current/unix/bin/gdal-config --with-proj-include=/Library/Frameworks/PROJ.framework/Versions/4/Headers/ --with-proj-lib=/Library/Frameworks/PROJ.framework/Versions/Current/unix/lib/" You will need to adjust the paths based on your version of the GDAL and Proj4 frameworks. read more

Read more »

Basic documentation for soilDB package (R) now available

August 29, 2012
By

A proper introduction to the soilDB package is now available here. Installation and basic usage are covered. More detailed, task-specific documentation on aqp and soilDB will be available soon. read more

Read more »

Extracting an image chunk from a collection of Large MrSid Images

June 4, 2012
By

Recently needed to extract a small "chunk" from a collection of adjacent MrSid mosaics, each about 4Gb in size. Once again, GDAL came to the rescue, and saved much time and agony wile working with very large, compressed, and proprietary-format files. T...

Read more »

soilDB Demo: Processing SSURGO Attribute Data with SDA_query()

April 26, 2012
By
soilDB Demo: Processing SSURGO Attribute Data with SDA_query()

Mapping near Paloma, CA This image has nothing to do with the following content. A quick example of how to use the USDA-NRCS soil data access query facility (SDA), via the soilDB package for R. The following code describes how to get component-level so...

Read more »

R Quickie: Custom Panel Functions and Default Arguments

April 16, 2012
By

Sometimes the basic functionality in lattice graphics isn't enough. Custom "panel functions" are one approach to fully customizing the lattice graphics system. Two examples are given below illustrating how to define an (inline) custom panel function fo...

Read more »

AQP Kick-Start

March 27, 2012
By

A fun kick-starter for anyone interested in working with soil profile data in R, via AQP. See in-line comments for details. Up next, profile slicing and aggregation. read more

Read more »

Dissimilarity Between Soil Profiles: A Closer Look

March 23, 2012
By
Dissimilarity Between Soil Profiles: A Closer Look

Continuing the previous discussion of pair-wise dissimilarity between soil profiles, the following demonstration (code, comments, and figures) further elaborates on the method. A more in-depth discussion of this example will be included as a vignette w...

Read more »

A Graphical Explanation of how to Interpret a Dendrogram

March 15, 2012
By
A Graphical Explanation of how to Interpret a Dendrogram

Dendrograms are a convenient way of depicting pair-wise dissimilarity between objects, commonly associated with the topic of cluster analysis. This is a complex subject that is best left to experts and textbooks, so I won't even attempt to cover it her...

Read more »

AQP / soilDB Demo: Dueling Dendrograms

March 14, 2012
By
AQP / soilDB Demo: Dueling Dendrograms

Previously, soil profile comparison methods from the aqp package only took into account horizon-level attributes. As of last week the profile_compare() function can now accommodate horizon and site-level attributes. In other words, it is now possible t...

Read more »