This is my second question here. This is related to my first question here: Should I use for loop? OR apply?
I'm analyzing NHL draft data. Looking at answers to the first question, I learned to use split:
canucks_year <- split(canucks, canucks$Year)
BUT I want to make new objects, such as canucks_2000, canucks_2001 that only contain data frame of the respective years. So, I coded:
canucks_2000 <- canucks_year[["2000"]]
canucks_2001 <- canucks_year[["2001"]]
canucks_2002 <- canucks_year[["2002"]]
canucks_2003 <- canucks_year[["2003"]]
Is there any magic way to use some function in R to automate this process?