s of the non-masked cells.
>
> Something like this:
>
> cellInd <- which(getValues(r1) != mask.value)
> valueVector <- cellValues(r2, cells = cellInd)
>
> Jacob.
>
> --- On *Fri, 9/7/10, Jonathan Greenberg * wrote:
>
>
> From: Jonathan Greenberg
> Subjec
nathan Greenberg
Subject: [R-sig-Geo] getValues() question
To: "Robert J. Hijmans" , "r-sig-geo"
Date: Friday, 9 July, 2010, 20:23
r-sig-geo'ers and Robert:
If I want to pull out the values of a raster into a dataframe,
ignoring "masked" values, what is the quicke
r-sig-geo'ers and Robert:
If I want to pull out the values of a raster into a dataframe,
ignoring "masked" values, what is the quickest way to do this? I can
use getValues() and "post-process" the output, but is there a way to
skip every loading these masked values into a memory in the first
plac