year.fn | R Documentation |
Subset the data by year
year.fn(dat, colnm, yrs, nmcol = paste(colnm, "new", sep = ""), subset = F)
dat |
the dataframe of observations |
colnm |
unsure how this is different from colnms |
yrs |
the years as a vector (must have c(yr,yr,etc)). Can be any integer values (i.e., c(2001, 2003:2007,2009,1999)) |
nmcol |
name of additional column to add that indicates the values specified. An NA will be put for values that are not in z. |
subset |
whether or not to return a dataframe with only rows that meet criteria. Default value FALSE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.