59m
comment R: OR regular express max length is 2555? it is error when the length of OR(|) 2556
That is not its purpose but you could try: which(nchar(strapplyc(dat, pat, simplify = c)) > 0) .
2h
answered R: OR regular express max length is 2555? it is error when the length of OR(|) 2556
5h
comment Get most recent index value, which is available in both ZOO objects
That seems like a good solution. Here is another one index(na.omit(merge(x, y)))[1] . Note that it differs in the case that there are leading NAs in x and y so which one to use would depend on what you want.
5h
comment How to efficiently set data frame column equal to sum of next 48 rows of another column in R
This would work too and does not require that a dummy dat$x48 be created beforehand: dat$x48 <- rollsum(dat$x1, 48, fill = NA, align = "left")
23h
revised Merging two dataframes on a date range in R
minor changes in wording
1d
comment get values from string using strsplit and/or substring in R
OK. Added some additional explanation.
1d
revised get values from string using strsplit and/or substring in R
added 479 characters in body
1d
answered Setting working directory through a function
1d
comment Merging two dataframes on a date range in R
I have modified it using a left join in order to output every ID in df1a even if there are no matches in df2a. (Note that your sample output does not correspond to the sample inputs.)
1d
revised Merging two dataframes on a date range in R
added 14 characters in body
1d
answered Merging two dataframes on a date range in R
1d
comment R: extract part content from text file (e.g. sdf) according to certain pattern?
Have added a variation for using $$$$
1d
revised R: extract part content from text file (e.g. sdf) according to certain pattern?
added 134 characters in body
1d
awarded Nice Answer
1d
comment Time series in R is throwing up error message
df has not been defined but if the time index is character you will get an error when plotting it.
1d
comment Time series in R is throwing up error message
@David, That would not give a meaningful index. They would be character strings so you would not, for example, be able to subtract them, plot them on a continuous scale and do other desirable manipulations.
1d
answered Time series in R is throwing up error message
1d
comment R merge two dataframes based on reciprocal matches (reciprocal blasts)
How can you expect help if you don't provide a reproducible example?
1d
comment R script email library
Try the sendmailR package.
1d
revised Environments in R, mapply and get
added 269 characters in body
1 2 3 4 5