Displaying 11 results from an estimated 11 matches for "yearmonth".
Did you mean:
year_month
2010 Nov 17
3
stacking consecutive columns
...0.255 2.830 4.425 1.645
12 2.335 0.840 0.795 1.890 0.145 1.700 0.260 2.160 2.300 2.220
What I want to do is to stack 2008 data underneath 2009 data, 2007 under 2008, 2006 under 2007, etc. I have so far figured out that I can do this with the following clumsy approach:
a=stack(yearmonth,select=c(X2009,X2008))
b=stack(yearmonth,select=c(X2008,X2007))
x=as.data.frame(c(a,b))
write.table(x,"clipboard",sep=" ",col.names=NA) #then paste this back into Excel to get this
values ind values.1 ind.1
1 0.275 X2009 1.285 X2008
2 0.41 X2009 3.85 X2008
3 1.915 X2009 3.99...
2008 Jul 08
1
making zoo objects with zoo without format argument?
#this is a subset of a larger data frame and I am okay with subsetting it as
there are redundant time stamps, but I would like to create a zoo object out
of this and I am having a hard #time figuring out how to do this the date
structure is year and then month
x <- structure(list(Yearmonth = structure(c(12L, 24L, 1L, 13L, 14L,
3L, 15L, 4L, 16L, 5L, 17L, 6L, 18L, 7L, 19L, 8L, 20L, 9L, 21L,
10L, 22L, 11L, 23L), .Label = c("2006-02", "2006-03", "2006-04",
"2006-05", "2006-06", "2006-07", "2006-08", "2006-09"...
2009 Oct 19
2
how to get rid of 2 for-loops and optimize runtime
Short: get rid of the loops I use and optimize runtime
Dear all,
I want to calculate for each row the amount of the month ago. I use a matrix with 2100 rows and 22 colums (which is still a very small matrix. nrows of other matrixes can easily be more then 100000)
Table before
Year month quarter yearmonth Service ... Amount
2009 9 Q3 092009 A ... 120
2009 9 Q3 092009 B ... 80
2009 8 Q3 082009 A ... 40
2009 7 Q3 072009 A...
2018 Mar 05
4
raster time series statistics
...>rs
for(i in 1:23){
rs[]<-r[]*i
addLayer(s,rs)->s
print(nlayers(s))
}
timelst<-paste0(unlist(dt['year']),'-',unlist(dt['month']))
rts(s,time=as.yearmon(timelst))->rsts
str(rsts at time)
apply.monthly(rsts,mean)
I was expecting that the statistics accept the yearmonth format of the timeslot, as it allows subsetting.
Any suggestions?
Thanks
Herry
[[alternative HTML version deleted]]
2006 Apr 05
1
Comparing against values (e.g. date ranges)
Hi all,
I'm once again looking for search with date ranges. e.g. All entries
before a certain date.
I understand that Omega does this by adding keywords for each year,
month and day number separately and construcing a big OR query
year = 1980 or year = 1981 or year = 1982 .... or (year = 1983 and
(month =1 or month = 2 ...))
I think Olly said he was considering adding something to Xapian,
2018 Mar 06
0
raster time series statistics
...addLayer(s,rs)->s
> print(nlayers(s))
> }
> timelst<-paste0(unlist(dt['year']),'-',unlist(dt['month']))
> rts(s,time=as.yearmon(timelst))->rsts
> str(rsts at time)
> apply.monthly(rsts,mean)
>
> I was expecting that the statistics accept the yearmonth format of the timeslot, as it allows subsetting.
> Any suggestions?
> Thanks
> Herry
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.c...
2018 Mar 06
0
raster time series statistics
...addLayer(s,rs)->s
> print(nlayers(s))
> }
> timelst<-paste0(unlist(dt['year']),'-',unlist(dt['month']))
> rts(s,time=as.yearmon(timelst))->rsts
> str(rsts at time)
> apply.monthly(rsts,mean)
>
> I was expecting that the statistics accept the yearmonth format of the timeslot, as it allows subsetting.
> Any suggestions?
> Thanks
> Herry
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.e...
2018 Mar 06
2
raster time series statistics
...addLayer(s,rs)->s
> print(nlayers(s))
> }
> timelst<-paste0(unlist(dt['year']),'-',unlist(dt['month']))
> rts(s,time=as.yearmon(timelst))->rsts
> str(rsts at time)
> apply.monthly(rsts,mean)
>
> I was expecting that the statistics accept the yearmonth format of the timeslot, as it allows subsetting.
> Any suggestions?
> Thanks
> Herry
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz....
2023 Jan 05
1
R 'arima' discrepancies
...ustriais", id.num == 27864 ~
"alimentos", TRUE ~ series.name)) ipca <- ipca %>% select(data =
ref.date, valor = value, series.name) %>% pivot_wider(names_from =
"series.name", values_from = "valor") ipca_tsb <- ipca %>%
mutate(data = yearmonth(data)) %>% arrange(data) %>% as_tsibble()
ipca_ts <- ipca_tsb %>% ts_ts() ##Eviews and Gretl can easily import
'dta' files ---- ipca %>% foreign::write.dta("ipca.dta")
#============================================================#
#Model ----
#==...
2010 Jan 10
1
scatterplot matrix with ggplot2
...,
"sally", "sally", "sally", "sally", "sally", "sally", "sally",
"sally", "sally", "sally", "sally", "sally", "sally", "sally",
"sally"), yearmonth = structure(c(2004.75, 2005, 2005.33333333333,
2005.66666666667, 2006, 2006.33333333333, 2006.66666666667,
2007, 2007.33333333333, 2007.66666666667, 2008, 2008.33333333333,
2008.66666666667, 2004.75, 2005, 2005.33333333333, 2005.66666666667,
2006, 2006.33333333333, 2006.66666666667,...
2018 Mar 06
0
raster time series statistics
...rint(nlayers(s))
>> }
>> timelst<-paste0(unlist(dt['year']),'-',unlist(dt['month']))
>> rts(s,time=as.yearmon(timelst))->rsts
>> str(rsts at time)
>> apply.monthly(rsts,mean)
>>
>> I was expecting that the statistics accept the yearmonth format of the timeslot, as it allows subsetting.
>> Any suggestions?
>> Thanks
>> Herry
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and...