skip to main
|
skip to sidebar
The Legacy Learner
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
►
2019
(6)
►
June
(1)
►
May
(1)
►
February
(1)
►
January
(3)
▼
2018
(12)
►
August
(1)
►
June
(2)
▼
May
(5)
SAS: My first SAS program using regular expressions
R: Scope of variables within user defined functions
PowerShell: Enable execution of PS scripts of loca...
R: ts function gotchas...
R: min and max month and year
►
April
(1)
►
February
(2)
►
January
(1)
►
2017
(11)
►
November
(1)
►
September
(3)
►
August
(1)
►
June
(1)
►
May
(3)
►
April
(1)
►
March
(1)
►
2016
(14)
►
November
(2)
►
October
(3)
►
July
(3)
►
June
(3)
►
April
(1)
►
January
(2)
►
2015
(19)
►
December
(1)
►
November
(2)
►
October
(5)
►
September
(2)
►
July
(1)
►
June
(2)
►
April
(1)
►
March
(4)
►
February
(1)
►
2014
(14)
►
December
(1)
►
November
(3)
►
September
(3)
►
August
(2)
►
May
(1)
►
February
(3)
►
January
(1)
►
2013
(38)
►
December
(4)
►
November
(2)
►
July
(1)
►
June
(2)
►
May
(1)
►
April
(2)
►
March
(4)
►
February
(7)
►
January
(15)
►
2012
(9)
►
December
(9)
About Me
bq688
View my complete profile
No comments:
Post a Comment