Friday, May 4, 2018

R: min and max month and year



R: min and max month and year

  # get first and last month and year
  min_year = min(df$year)
  min_month= min(subset(df, year==min_year)$month)
  max_year = max(df$year)
  max_month= max(subset(df, year==max_year)$month)





No comments:

Post a Comment