Skip to content
Prev 26848 / 29559 Next

Subsetting dataframe by all factor levels

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()
}


Cheers,
Justin
On Fri, Sep 14, 2018 at 2:03 PM Justin H. <jstnhllrd at gmail.com> wrote: