Roy Lowrance's utilities for R