We can try subset
subset(dati, format(as.Date(Date),"%Y")==2005)
If we are trying to subset the data for each year, try split
split(dati, format(as.Date(dati$Date), "%Y"))
solved R get subset from data frame filtering by year Date value
We can try subset
subset(dati, format(as.Date(Date),"%Y")==2005)
If we are trying to subset the data for each year, try split
split(dati, format(as.Date(dati$Date), "%Y"))
solved R get subset from data frame filtering by year Date value