Questions tagged [as.yearqtr]
5 questions
3
votes
2 answers
How can I create dates in Year/Semester format in R?
I want to aggregate zoo data in R by two, four or six months periods. There are only two avaliable options for this type of date processing, using:
a) as.yearmon => process daily data grouped by each month
b) as.yearqtr => process daily data…

Marcos Vinicius
- 151
- 1
- 10
3
votes
1 answer
R xts pkg and quarterly data
Probably a stupid question, but I can't find an answer. I'm using R with xts/zoo package and have some quarterly time series data. I'm reading in the data from Excel files (I know, not ideal, but not having any problems here) and storing it in an…

opt
- 45
- 1
- 4
1
vote
1 answer
Convert first date of the month to yearmon in R
I have been trying to get the year month as a new column to my following example data set.
time site
1 1/01/2000 A
2 1/02/2000 A
3 1/03/2000 A
4 1/04/2000 A
5 1/05/2000 A
6 1/06/2000 A
7 1/07/2000 A
8 1/08/2000 …

sriya
- 179
- 1
- 2
- 7
0
votes
1 answer
Turn character YYYY-Q1 into date
I would like to turn a character variable formatted as YYYY-QQ, so for example 2010-Q1, into something I can use as a date. I have played around with as.yearqtr, but haven't could only figure out the output format. I haven't been been able to define…

JotHa
- 55
- 7
0
votes
1 answer
creating quarterly `xts` time-series object for use with plot.xts
I'm working to transform some data to a quarterly time xts series object. First my data wasn't an appropriate time-based object and now as.yearqtr is behaving in I cannot make sense of.
I want the object df to be transformed so that I can plot it…

Eric Fail
- 8,191
- 8
- 72
- 128