Re: [R] Variation of bubble sort (based on divisors)

2017-04-03 Thread Hervé Pagès
SXAJJKaaPhzWA&m=AeHAcF7RnhWvQIqG5c2ucgFS0WIOmMFeRheLIeSwu0U&s=xJMmDOJLaQZ0QMmI7rkkNd2T5-zrh843rlJ-R1LQ9G8&e= PLEASE do read the posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html&d=DwICAg&c=eRAMFD45gAfqt84VtBcfhQ&r=BK7q3XeAvim

Re: [R] Interesting quirk with fractions and rounding

2017-04-20 Thread Hervé Pagès
WY_wJYbW0WYiZvSXAJJKaaPhzWA&m=h2uDuHofumYjJ48NvOaART10-esHowpTtp37cGtD3yQ&s=efyHNH41uiy_mo_2RYV1aQU3sMi2yKoAfK7LMdoK5eM&e= PLEASE do read the posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html&d=DwICAg&c=eRAMFD45gAfqt84VtBcfhQ&r

Re: [R] Interesting quirk with fractions and rounding

2017-04-21 Thread Hervé Pagès
jDHTSOjin674VRk&s=lhpXJFzjB4p_pEFeUijjWa8Xd7IQ9ZOIzh5grUd7DQg&e= PLEASE do read the posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html&d=DwIGaQ&c=eRAMFD45gAfqt84VtBcfhQ&r=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA&m=

Re: [R] Interesting quirk with fractions and rounding

2017-04-21 Thread Hervé Pagès
A-W4NkL_PpalU1VtS9iO60moznxYVBGfU5QbyNw&s=puQK7QZvG7lZuOYvo9D6UANEgWylkApF-xIvpLMGVhQ&e= PLEASE do read the posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html&d=DwICAg&c=eRAMFD45gAfqt84VtBcfhQ&r=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKa

Re: [R] matching element of a vector to i-2nd element

2017-07-23 Thread Hervé Pagès
mp;s=HGLgncA6cBilW_DkIzjBEizqo1AmvlshmOHQr4td1vc&e= and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, M1-B514 P.O. Box 19024 Seattle, WA

Re: [R] performance of do.call("rbind")

2016-06-27 Thread Hervé Pagès
omplete - run time is prohibitive (I killed the rsession after 5 minutes). I would think that merging data.frame's is a common operation. Is there a better function (more performant) that I could use? Thank you. Witold -- Hervé Pagès Program in Computational Biology Division of Public He

Re: [R] installing the lubricate package

2016-07-22 Thread Hervé Pagès
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Resea

Re: [R] how to create column names for the matrix

2016-07-27 Thread Hervé Pagès
g list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public

Re: [R] how to create column names for the matrix

2016-07-27 Thread Hervé Pagès
On 07/27/2016 11:40 AM, Hervé Pagès wrote: Hi, On 07/27/2016 11:17 AM, lily li wrote: Hi all, I want to ask that how to create column names for a matrix. For example, the matrix below, the column names should be: 1-A, 1-B, 1-C, 1-D, 2-A, 2-B, 2-C, 2-D, 3-A, etc. Thanks for your help. chars

Re: [R] how to create column names for the matrix

2016-07-27 Thread Hervé Pagès
ample, but use the original structure of the code. The original matrix has all characters instead of 1:5. On Wed, Jul 27, 2016 at 12:42 PM, Hervé Pagès mailto:hpa...@fredhutch.org>> wrote: On 07/27/2016 11:40 AM, Hervé Pagès wrote: Hi, On 07/27/2016 11:17 AM, li

Re: [R] how to create column names for the matrix

2016-07-27 Thread Hervé Pagès
iterally? You need to try things before you ask. That's the only way to learn! H. On Wed, Jul 27, 2016 at 12:40 PM, Hervé Pagès mailto:hpa...@fredhutch.org>> wrote: Hi, On 07/27/2016 11:17 AM, lily li wrote: Hi all, I want to ask that how to create column

Re: [R] Faster Subsetting

2016-09-28 Thread Hervé Pagès
l and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, M1-B514 P.O. Box 19024 Seattle, WA 98109-1024 E-mail: hpa...@fredhutch.org Pho

Re: [R] Converting unique strings to unique numbers

2015-05-29 Thread Hervé Pagès
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, M1-B5

Re: [R] Converting unique strings to unique numbers

2015-05-29 Thread Hervé Pagès
Hi Sarah, On 05/29/2015 12:04 PM, Sarah Goslee wrote: On Fri, May 29, 2015 at 2:16 PM, Hervé Pagès wrote: Hi Kate, I found that matching the character vector to itself is a very effective way to do this: x <- c("a", "bunch", "of", "strings",

Re: [R] Converting unique strings to unique numbers

2015-05-29 Thread Hervé Pagès
ng the ancestors of an individual. Hence the choice of numeric ID's may be important. Bill Dunlap TIBCO Software wdunlap tibco.com <http://tibco.com> On Fri, May 29, 2015 at 1:29 PM, Hervé Pagès mailto:hpa...@fredhutch.org>> wrote: Hi Sarah, On 05/29/2015 12:04 PM

Re: [R] indices of mismatch element in two vector with missing values

2015-07-28 Thread Hervé Pagès
__ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible c

Re: [R] indices of mismatch element in two vector with missing values

2015-07-28 Thread Hervé Pagès
help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Cen

Re: [R] Sum function and missing values --- need to mimic SAS sum function

2015-01-27 Thread Hervé Pagès
e > http://www.R-project.org/posting-guide.html and provide > commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-hel

Re: [R] Sum function and missing values --- need to mimic SAS sum function

2015-01-28 Thread Hervé Pagès
nd knowledge is certainly not wisdom." Clifford Stoll On Mon, Jan 26, 2015 at 2:22 PM, Hervé Pagès wrote: Hi Martin, On 01/26/2015 04:45 AM, Martin Maechler wrote: Jim Lemon on Mon, 26 Jan 2015 11:21:03 +1100 writes: > Hi Allen, How about this: > sum_w_N

Re: [R] %>%

2015-02-17 Thread Hervé Pagès
BE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred H

Re: [R] %>%

2015-02-17 Thread Hervé Pagès
On 02/17/2015 08:03 PM, Hadley Wickham wrote: On Tue, Feb 17, 2015 at 6:02 PM, Hervé Pagès wrote: On 02/17/2015 02:10 PM, Erich Neuwirth wrote: AFAIK dplyr imports magrtittr. So dplyr ses %>% from migrittr, it does not have its own version. But it has its own man page so who knows?

Re: [R] Substring replacement in string

2015-02-28 Thread Hervé Pagès
Candolle 2 CH-1211 Geneva +41 76 527 80 83 http://www.alrik-thiem.net http://www.compasss.org __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.

Re: [R] Substring replacement in string

2015-03-01 Thread Hervé Pagès
quot; It works even if a variable name starts with a "p": > funnyReplace("pmin(p)", c("pmin", "pmax")) [1] "pmin(1 - P)" and you can specify an arbitrary number of protected words. Cheers, H. Best wishes, Alrik -Ursprüngliche Nach

Re: [R] Fast multiple match function

2015-04-07 Thread Hervé Pagès
l and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, M1-B514 P.O. Box 19024 Seattle, WA 98109-1024 E-mail: hpa...@fredhutch.org Pho

Re: [R] how to break the loop using sapply?

2014-10-09 Thread Hervé Pagès
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, M1-B514 P

Re: [R] Efficient way to create new column based on comparison with another dataframe

2016-02-01 Thread Hervé Pagès
h/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center 1100 Fair

Re: [R] as(, "numeric") vs as.numeric()

2016-02-01 Thread Hervé Pagès
xs4all.nl > > > __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible

Re: [R] Extracting part of a factor

2016-03-03 Thread Hervé Pagès
) __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in

Re: [R] Extracting part of a factor

2016-03-03 Thread Hervé Pagès
ed by as.factor() on it. H. Ken kmna...@gmail.com <mailto:kmna...@gmail.com> 914-450-0816 (tel) 347-730-4813 (fax) On Mar 3, 2016, at 4:52 PM, Hervé Pagès mailto:hpa...@fredhutch.org>> wrote: Hi, On 03/03/2016 12:18 PM, KMNanus wrote: I have a factor variable that is 6 digits an

Re: [R] grep command

2016-05-03 Thread Hervé Pagès
On 05/03/2016 06:05 AM, Jeff Newmiller wrote: Isn't that just an inefficient way to do "age" == x Yep, it's an inefficient way to do which(x == "age"). H. ? -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchins

Re: [R] break string at specified possitions

2016-05-13 Thread Hervé Pagès
CRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred

Re: [R] Frequency of a character in a string

2016-11-14 Thread Hervé Pagès
.. is 5 times faster with fixed=TRUE for this case. This result matchea Marc's count: sum(lengths(strsplit(paste0("X", Vec, "X"),"a",fixed=FALSE)) - 1) [1] 38664 Chuck __ R-help@r-project.org mailing list

Re: [R] Frequency of a character in a string

2016-11-14 Thread Hervé Pagès
ed=TRUE) solution uses less than 1Gb. Cheers, H. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Mon, Nov 14, 2016

Re: [R] Is a list an atomic object? (or is there an issue with the help page of ?tapply ?)

2017-02-14 Thread Hervé Pagès
[[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and prov

Re: [R] Is a list an atomic object? (or is there an issue with the help page of ?tapply ?)

2017-02-14 Thread Hervé Pagès
of argument Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Feb 14, 2017 at 5:10 PM, Hervé Pagès wrote: Hi, tapply() will

Re: [R] Is a list an atomic object? (or is there an issue with the help page of ?tapply ?)

2017-02-14 Thread Hervé Pagès
t I think a few extra words of explanation here would not go amiss. But, anyway, thanks for the clarification. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom

Re: [R] Is a list an atomic object? (or is there an issue with the help page of ?tapply ?)

2017-02-15 Thread Hervé Pagès
since that's what actually powers the behaviour. Reading the description for split leads to this rather interesting example: tapply(mtcars, 1:11, I) Hadley On Tue, Feb 14, 2017 at 7:10 PM, Hervé Pagès wrote: Hi, tapply() will work on any object 'X' that has a length and supports

Re: [R] Is ImageMagick package not compatible with R 3.3.2?

2017-03-14 Thread Hervé Pagès
posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html&d=DwIGaQ&c=eRAMFD45gAfqt84VtBcfhQ&r=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA&m=sLEnaUtX6fn9Y_qSSEHFl-W9OaFf4_3oSFFTpbvjAd4&s=PliR-mnRNhRqRnpIX6OFVtcpBlOR2rBkBKtemPQ-NMw&e=

Re: [R] [BioC] Empirical Pvalue

2010-02-22 Thread Hervé Pagès
(and able) to help you. Cheers, H. Mohamed Lajnef wrote: Dear R users, Can someone explain me the interpretation of empirical p-value ( max(t)) used to test the genetic association with PLINK? Any help will be appreciated Regards M -- Hervé Pagès Program in Computational Biology

Re: [R] Is it Possible to Create S4 Function Objects?

2021-02-21 Thread Hervé Pagès
bjects. This approach is dependent on immutability of the function's data, and I'm reluctant to create such constraints. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Problem with the str_replace function

2021-03-16 Thread Hervé Pagès
ot;Women's clothing goods" ) x2 x3 <- str_replace(x,   "Clothing accessories (belts and so on)",   "Clothing accessories") x3 x4 <- str_replace(x,   "Women's footwear (excluding athletic)",   "Women's footwear") x4

Re: [R] interval between specific characters in a string...

2022-12-03 Thread Hervé Pagès
stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] interval between specific characters in a string...

2022-12-04 Thread Hervé Pagès
On 04/12/2022 00:25, Hadley Wickham wrote: On Sun, Dec 4, 2022 at 12:50 PM Hervé Pagès wrote: On 03/12/2022 07:21, Bert Gunter wrote: Perhaps it is worth pointing out that looping constructs like lapply() can be avoided and the procedure vectorized by mimicking Martin Morgan's sol

Re: [R] How to parallelize a process called by a socket connection

2020-02-01 Thread Hervé Pagès
-2Dproject.org_posting-2Dguide.html&d=DwIFaQ&c=eRAMFD45gAfqt84VtBcfhQ&r=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA&m=2N70kU171QMzQHhg6A9N3op5jqv8uCm9-njqZfPW3Ok&s=GgmKzz9H7MAj3iy7Pu4U0q5v02Fumnl3hjxug2SY1zk&e= and provide commented, minimal, self-contained, reproducible code. -- Hervé Pa

Re: [R] ncol() vs. length() on data.frames

2020-04-06 Thread Hervé Pagès
eiprw&s=RzvpfqevFgNjYNRLX0nYF8un-5x7k-QG5h0465YA7mQ&e= PLEASE do read the posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html&d=DwIDaQ&c=eRAMFD45gAfqt84VtBcfhQ&r=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA&m=yZ

Re: [R] A stopifnot() nastiness, even if not a bug

2020-04-13 Thread Hervé Pagès
usiness School > Solbjerg Plads 3, 2000 Frederiksberg, Denmark > Phone: (+45)38153501 > Office: A 4.23 > Email: pd@cbs.dk Priv: pda...@gmail.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https:

Re: [R] Check the class of an object

2013-07-23 Thread Hervé Pagès
ternative HTML version deleted]] Plain-text format is the recommended format for Rhelp -- David Winsemius Alameda, CA, USA __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html an

Re: [R] Understanding S4 method dispatch

2013-08-13 Thread Hervé Pagès
etMethod("f", signature("A", "A"), function(x, y) "A-A") setMethod("f", signature("B", "B"), function(x, y) "B-B") # These work as I expect f(a, a) f(b, b) setClass("AB", contains = c("A", "

Re: [R] Understanding S4 method dispatch

2013-08-14 Thread Hervé Pagès
), function(x, y) "C-C") And then construct a multiple inheritance structure within a class BC: setClass("BC", contains = c("B", "C")) bc <- new("BC") we see, that indeed the first lexicographical signature is chosen: showMethods("f")

Re: [R] Understanding S4 method dispatch

2013-08-14 Thread Hervé Pagès
:36 AM, Simon Zehnder wrote: Because the signature is always (A,A) or (B,B). Then, as in AB we have A and B and no relationship between A and B, R chooses the method lexicographically. The result is as expected: f for A is chosen. It's not as expected, because it doesn't give a mess

Re: [R] why Vectorize conjures a list, not a vector?

2013-08-14 Thread Hervé Pagès
mes=TRUE), list.files)) [1] "list" __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained,

[R] G-test function in the stats package or on CRAN?

2012-10-26 Thread Hervé Pagès
find it. Thanks, H. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, M1-B514 P.O. Box 19024 Seattle, WA 98109-1024 E-mail: hpa...@fhcrc.org Phone: (206) 667-5791 Fa

Re: [R] Updating R 2.15.0 to 2.15.2

2012-10-26 Thread Hervé Pagès
cible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, M1-B514 P.O. Box 19024 Seattle, WA 98109-1024 E-mail: hpa...@fhcrc.org Phone: (206) 667-5791 Fax:(206

Re: [R] Updating R 2.15.0 to 2.15.2

2012-10-26 Thread Hervé Pagès
s you have fast access to a CRAN mirror) because installing binary packages is fast. Cheers, H. On 10/26/2012 12:35 PM, Paul Bernal wrote: Hello Hervé, Im using Windows, Best regards, Paul El 26/10/2012 14:17, "Hervé Pagès" mailto:hpa...@fhcrc.org>> escribió: Hi Paul,

Re: [R] String comparison, trailing blanks make a difference.

2014-07-18 Thread Hervé Pagès
a vendor DB. And I don't know an ANSI SQL standard way to remove trailing blanks in the SELECT command. PostgreSQL has a "trim(trailing ' ' from column)', but MS-SQL upchucks on that syntax. -- Hervé Pagès Program in Computational Biology Division of Public Health Scienc

Re: [R] odd, even indices of a vector

2014-07-21 Thread Hervé Pagès
thz.ch/pipermail/r-help/2010-July/244299.html should a loop be used? for (i in 1: length(x)) if (is.odd(i)) print (i) Carol [[alternative HTML version deleted]] ______ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] 1st el of a list of vectors

2014-07-21 Thread Hervé Pagès
tained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible cod

Re: [R] Subsetting vector with preserved order

2014-01-02 Thread Hervé Pagès
ob" "Joe" But I'd like them to show in the order in d, as "Joe" "Bob" "Dick". What is the easy way to do this? Thanks. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEA

Re: [R] Find the package of a class given classname

2014-01-10 Thread Hervé Pagès
ttp://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, M1-B514 P

Re: [R] Deleting subsequences from a string sequence

2014-01-23 Thread Hervé Pagès
would like to repeat this procedure for all position pairs. So for the next pair, I would like a # right before 151795 and a # right after 151844. Thank you. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] counting matched elements in two vectors

2014-01-23 Thread Hervé Pagès
e posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, M1-B514 P.O. Box 1

Re: [R] counting matched elements in two vectors

2014-01-23 Thread Hervé Pagès
On 01/23/2014 04:49 PM, Hervé Pagès wrote: Hi Mintewab, With the IRanges packages (from Bioconductor): > library(IRanges) > countMatches(z, w) [1] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 1 0 3 1 1 0 1 0 0 0 0 0 0 1 3 2 0 0 1 0 0 [39] 0 0 0 0 0 0 0 0 And if you don't want t

Re: [R] strsplit with a vector split argument

2013-09-18 Thread Hervé Pagès
c" [[2]] [1] "d" "e,f" --8<---cut here---end--->8--- I thought that it should be identical to this: --8<---cut here---start->8--- strsplit(c("a,b;c","d;e,f"),"[,;]") [[1

Re: [R] How to save very large matrix?

2013-10-29 Thread Hervé Pagès
eted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Pr

Re: [R] Count number of consecutive zeros by group

2013-10-31 Thread Hervé Pagès
R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division

Re: [R] How to use variables whose names are with number at end in R loop

2013-12-14 Thread Hervé Pagès
-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, M1-B514 P.O. Box 19024 Seattle, WA 98109-1024 E-mail: hpa...@fhcrc.org Phone: (206) 667-5791 Fax:(206

Re: [R] String processing - is there a better way

2010-07-22 Thread Hervé Pagès
ng guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, M2-B876 P.O. Box 19024 Seattle, WA 981

Re: [R] making a second version of R

2012-03-08 Thread Hervé Pagès
nstall! I must have done this 100 times since I started to work with R, I always have 3 or more independent instances of R at the same time on my laptop. They never "interfere" (when you install packages, everything goes under R-2.14.2-instanceX/library/). Cheers, H. Thanks, Erin

Re: [R] [BioC] BioC 2.3 standard installation

2008-12-01 Thread Hervé Pagès
nstall.packages("XML") Warning in install.packages("XML") : argument 'lib' is missing: using '/usr/local/lib/R/site-library' --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done tryin

Re: [R] [BioC] BioC 2.3 standard installation

2008-12-01 Thread Hervé Pagès
oaded_packages Warning message: In install.packages("KernSmooth") : installation of package 'KernSmooth' had non-zero exit status On Mon, Dec 1, 2008 at 4:05 PM, Hervé Pagès <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: I'm taking this off-list f