Re: [R] Diff'ing 2 strings

2019-01-09 Thread Martin Møller Skarbiniks Pedersen
On Sat, Jan 5, 2019, 14:58 Sebastien Bihorel < sebastien.biho...@cognigencorp.com wrote: > Hi, > > Does R include an equivalent of the linux diff command? > yes. ?rdiff /martin [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] Resampling 1 time series at another set of (known) irregularly spaced times

2019-01-09 Thread Bert Gunter
John: Clarification: Do you mean you just want an "irregular" subset of your *given* data values/times, or do you want times randomly over the series duration for which you will construct values, which is what Jeff described. The former is trivial: see ?sample with the "replace" argument = FALSE

Re: [R] Resampling 1 time series at another set of (known) irregularly spaced times

2019-01-09 Thread Jeff Newmiller
The key to accomplishing this is to clarify how you want to address selecting values between the existing points, but there are many base R functions and packages that address this problem. In general the methods fall into two categories: interpolation and smoothing. Interpolation includes

[R] Resampling 1 time series at another set of (known) irregularly spaced times

2019-01-09 Thread John Hillier
Dear All, I would appreciate a quick pointer in the right direction (e.g. www page I could look at, or indicator of which function within a package). The problem: I have a regular time series of values x at times t (i.e. t, x). I would like to sample them at irregular, known times - this is

Re: [R] Diff'ing 2 strings

2019-01-09 Thread Sebastien Bihorel
Thanks Sorry my mention of "fairly complex strings" was indeed a bit vague, indeed. My code is building strings that contain \n characters so something that could be thought about as multiline strings. For comparing these strings, I was hoping to use something like the linux diff command

Re: [R] Warning message: NAs introduced by coercion

2019-01-09 Thread David L Carlson
Now you have pushed a numeric matrix to the function with a column of missing values. No wonder you do not get any results. David C -Original Message- From: N Meriam [mailto:meriam@gmail.com] Sent: Tuesday, January 8, 2019 3:44 PM To: David L Carlson Cc: Michael Dewey ;

Re: [R] External validation for a hurdle model (pscl)

2019-01-09 Thread Maria Eugenia Utgés
Hi Jeff, Yes, my question is more general perhaps Not about R programming, data exploration, or statistical theory. Just that in modelling texts external validation is set as "panacea" but "unreacheable", so they explain other methods as cross validation, bootstrapping, etc. Here I have new data

Re: [R] Why does R do this? (Duncan Murdoch)

2019-01-09 Thread Hamed Ha
Well, your question looks quite interesting to me. *which *function normally returns a non-negative *integer *and if fails to find the case, then returns integer(0) that is an integer with the zero length. Logically it returns the right answer. Then, doing an operation on nothing is pointless,

Re: [R] Warning message: NAs introduced by coercion

2019-01-09 Thread PIKAL Petr
And as you use bioconductor related package you probably could get better answers in specialised biconductor help https://www.bioconductor.org/help/ Cheers Petr From: N Meriam Sent: Tuesday, January 8, 2019 4:36 PM To: PIKAL Petr Cc: r-help@r-project.org Subject: Re: [R] Warning message: NAs

Re: [R] Warning message: NAs introduced by coercion

2019-01-09 Thread PIKAL Petr
Hm, you should use dput for sharing data but my suggestion was correct. You converted genod to genod2 by as.matrix what changed it to „character“ matrix as matrix is able to hold only one type of data. By trying to change it to numeric, all numbers are changed to numeric and what cannot be

Re: [R] Mailinglist

2019-01-09 Thread PIKAL Petr
Hm If I understand from your description correctly, probably aggregate could do it. with(gmoji_passivedata, aggregate(value, list(probetype, participants), length) However posting part of your dataset, as Richard suggested, would clear the matter. Devil is in details, you probably intend to