GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
9h
comment selective removal of characters following a pattern using R
gsub("[0-9.]{8}", "", x) where x is the input string.
9h
comment Running strapply in the absence of tcltk in R
Read gsubfn FAQs #1 and #2: code.google.com/p/gsubfn/#FAQs
Jul
30
revised R: how do you merge/combine two environments?
improve comment
Jul
30
revised R: how do you merge/combine two environments?
added 117 characters in body
Jul
28
comment time series in R, unwanted variable class changes
Using attach is a bad idea and if z is a zoo object with multiple columns and x is one of those columns then z$x does work. Please make your code reproducible.
Jul
28
comment How to partition when ranking on a particular column?
I have added some explanation and output.
Jul
28
revised How to partition when ranking on a particular column?
added explanation and output
Jul
27
revised Fill 'NA's in data frame with information contained in one of the rows with a patient's ID using R
add note at end
Jul
27
comment Fill 'NA's in data frame with information contained in one of the rows with a patient's ID using R
OK. In that case I have changed the answer.
Jul
27
revised Fill 'NA's in data frame with information contained in one of the rows with a patient's ID using R
show output
Jul
26
comment Aggregating hourly data into daily aggregates
It produces a data.frame whose first column is ag$Date. and whose second column is the matrix ag$DBT` whose columns are "min", "max" and "mean". It readily converts to a zoo series using read.zoo(ag).
Jul
26
revised Aggregating hourly data into daily aggregates
assign redsult to variable so we can refer to it in comments
Jul
25
answered Fill 'NA's in data frame with information contained in one of the rows with a patient's ID using R
Jul
25
comment SQL Aggregating over groups within colum
Note that COUNT(case...end): could alternately be written as, e.g. SUM(OrderType = 'A')
Jul
23
answered Convert quarterly time series (class ts) to data.frame
Jul
20
comment Read special CSV-Data with a loop
dir takes a regular expression as the pattern, not a glob.
Jul
19
comment Derivative of f, such that f<-function(x){x^2} (or simular) in R/rsrtduio without yacas
Right. { is not supported.
Jul
19
answered Derivative of f, such that f<-function(x){x^2} (or simular) in R/rsrtduio without yacas
Jul
18
comment Split xts object by specified irregular intervals in R
Seems there is a bug in .indexmday. .indexmday(January_series) gives me 31, 1, 2, .... with xts 0.9.7 on R 3.2.1.
Jul
18
comment How do I create daily time series starting from a specific date
ts is not normally used for dates. Use zoo or xts instead.
1 2 3 4 5