GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
5h
revised Finding `n1` TRUEs wrapped in between two `n2` FALSEs, the whole thing wrapped in between `n3` TRUEs, etc
simplify
9h
revised Finding `n1` TRUEs wrapped in between two `n2` FALSEs, the whole thing wrapped in between `n3` TRUEs, etc
added library(rbenchmark)
9h
revised Finding `n1` TRUEs wrapped in between two `n2` FALSEs, the whole thing wrapped in between `n3` TRUEs, etc
abbreviate
10h
revised Finding `n1` TRUEs wrapped in between two `n2` FALSEs, the whole thing wrapped in between `n3` TRUEs, etc
wording
10h
comment Finding `n1` TRUEs wrapped in between two `n2` FALSEs, the whole thing wrapped in between `n3` TRUEs, etc
OK. Have fixed.
10h
revised Finding `n1` TRUEs wrapped in between two `n2` FALSEs, the whole thing wrapped in between `n3` TRUEs, etc
wording
12h
revised Finding `n1` TRUEs wrapped in between two `n2` FALSEs, the whole thing wrapped in between `n3` TRUEs, etc
clarify
12h
comment Finding `n1` TRUEs wrapped in between two `n2` FALSEs, the whole thing wrapped in between `n3` TRUEs, etc
added additional solution which is equally short but quite a bit faster
12h
revised Finding `n1` TRUEs wrapped in between two `n2` FALSEs, the whole thing wrapped in between `n3` TRUEs, etc
added new solution
12h
revised Finding `n1` TRUEs wrapped in between two `n2` FALSEs, the whole thing wrapped in between `n3` TRUEs, etc
added another example
12h
comment Filling higher resolution zoo obj with data from lower resolution zoo obj
This works witih the example you gave in which zY does have most of the dates missing. Please improve youir example if it does not reflect what you want and show what output you expect..
20h
revised Finding `n1` TRUEs wrapped in between two `n2` FALSEs, the whole thing wrapped in between `n3` TRUEs, etc
improve
20h
revised Finding `n1` TRUEs wrapped in between two `n2` FALSEs, the whole thing wrapped in between `n3` TRUEs, etc
improve
20h
revised Finding `n1` TRUEs wrapped in between two `n2` FALSEs, the whole thing wrapped in between `n3` TRUEs, etc
fix
20h
answered Finding `n1` TRUEs wrapped in between two `n2` FALSEs, the whole thing wrapped in between `n3` TRUEs, etc
1d
awarded Nice Answer
1d
revised Filling higher resolution zoo obj with data from lower resolution zoo obj
added output
1d
answered Filling higher resolution zoo obj with data from lower resolution zoo obj
2d
revised Calculating net present value of a series of columns in R data.table
spelling
2d
comment How to make a time series with calendar weeks dates in R
7 does not divide evenly into 365 or 366 so you have a fundamental problem that needs to be resolved first. Perhaps you could just use number of weeks since the beginning of the series as the index: zoo(df$number) or another possibility is to use dates, e.g. zoo(df$number, as.Date("2012-01-01") + 7*1:nrow(df) - 1)
1 2 3 4 5