[R-sig-Geo] Subsetting dataframe by all factor levels

Rich Shepard r@hep@rd @ending from @ppl-eco@y@@com
Fri Sep 14 20:17:50 CEST 2018


On Fri, 14 Sep 2018, Justin H. wrote:

> One more thing. Let's still assume you want to interpolate it yearly. The
> below code will assign names to the output during the loop.
>
> for (i in levels(rainfall.year[,#year])) {
> assign ( paste (i,"interpolation output",sep = "_")
> , interpolation_function()
> }

Justin,

   Thanks again.

Regards,

Rich



More information about the R-sig-Geo mailing list