GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
13h
comment R - Fast way to calculate rolling mean with varying width
OK. Have revised.
13h
revised R - Fast way to calculate rolling mean with varying width
revised as per edits in question
14h
answered R - Fast way to calculate rolling mean with varying width
1d
revised Add id by group which resets to 1 in R
clarify
1d
answered How to lag one column in a merged zoo object
1d
comment Add id by group which resets to 1 in R
Not on the data provided in the question. Maybe your data frame has a factor as gr2 rather than numeric. If so, convert it to numeric first so that it corresponds to what was posted.
1d
revised Add id by group which resets to 1 in R
added str(df) outpout
1d
answered Add id by group which resets to 1 in R
1d
revised R regex semicolon
improve wording
1d
answered R regex semicolon
2d
comment Retain zoo class after lapply
It is also possible to overwrite lag in dplyr: dplyr <- as.environment("package:dplyr"); unlockBinding("lag", dplyr); dplyr$lag <- stats::lag
2d
comment Split the data for a time series regressions
R questions to SO should be reproducible. See [mcve] for more info on how to ask a question.
2d
answered how do you create regex to subset data frame based on some search strings?
2d
revised Using approx in dplyr
indentation
2d
comment group_by with which in R
The above solutions give the same answer if there is a single maximum change_date row in each Document.
2d
comment Meaning of regular expressions like - \\d , \\D, ^ , $ etc
From within R enter this ?regex to get information on regular expressions. There are also links to tutorials and other information near the bottom of this page: code.google.com/archive/p/gsubfn
May
2
comment how to create a distance matrix from a graph or adjacency matrix in r?
See get.adjacency in the igraph package and DistGraph in the Bioconductor SANTA package.
May
1
comment How to pick hourly values from dataset?
This picks out every other row: DF[c(TRUE, FALSE), ] starting with first row.
May
1
comment Remove duplicate rows of a matrix or dataframe
The question specifies "one of the rows", not the first row.
May
1
comment Combining a Vector
Use read.csv(..., as.is = TRUE) to avoid automatic conversion to factor (or use the somewhat longer stringsAsFactors argument).
1 2 3 4 5