When I run the sample code in ?setValues

rs <- raster(ncol=10, nrow=10)
vals <- 1:ncell(rs)
rs <- setValues(rs, vals)
rs <- clearValues(rs)
rowvals <- 1:ncol(rs)
rs <- setValues(rs, rowvals, 3)

rs object ends up empty when trying to apply rowvals. I would expect the rs
object to have line number three populated with as many values as there are
columns. Or am I missing something very obvious here? Same behavior on 2.10
and 2.11.

Cheers,
Roman


--
In God we trust, all others bring data.

	[[alternative HTML version deleted]]

