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 solution

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

2022-12-03 Thread Hervé Pagès
imal, self-contained, reproducible code. [[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 provide comme

Re: [R] Problem with the str_replace function

2021-03-16 Thread Hervé Pagès
ce(x,   "Clothing accessories (belts and so on)",   "Clothing accessories") x3 x4 <- str_replace(x,   "Women's footwear (excluding athletic)",   "Women's footwear") x4 __ R-help@r-project.org mailing list -- To UNS

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

2021-02-21 Thread Hervé Pagès
mutability 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 guide http://www.R-project.org/posting-guide.html

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

2020-04-13 Thread Hervé Pagès
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_r-2Dhelp=DwIDaQ=eRAMFD45gAfqt84VtBcfhQ=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA=2kAPk_-c9XEQGS0BB1rf03oPxqQtflyqhqi-0BT8bW

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

2020-04-06 Thread Hervé Pagès
X-0ccnNHdReiprw=RzvpfqevFgNjYNRLX0nYF8un-5x7k-QG5h0465YA7mQ= PLEASE do read the posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html=DwIDaQ=eRAMFD45gAfqt84VtBcfhQ=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA=yZXfRqVdJeNf73bgLhzIctzOWowNX-0ccnNHdReiprw=kL6q9dyo4

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

2020-02-01 Thread Hervé Pagès
2Dguide.html=DwIFaQ=eRAMFD45gAfqt84VtBcfhQ=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA=2N70kU171QMzQHhg6A9N3op5jqv8uCm9-njqZfPW3Ok=GgmKzz9H7MAj3iy7Pu4U0q5v02Fumnl3hjxug2SY1zk= and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences F

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

2017-07-23 Thread Hervé Pagès
inimal, 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 Phone: (206) 667-5791 Fax:(20

Re: [R] Interesting quirk with fractions and rounding

2017-04-21 Thread Hervé Pagès
7QZvG7lZuOYvo9D6UANEgWylkApF-xIvpLMGVhQ= PLEASE do read the posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html=DwICAg=eRAMFD45gAfqt84VtBcfhQ=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA=ILkgA-W4NkL_PpalU1VtS9iO60moznxYVBGfU5QbyNw=zohn8q-ufE7UhlQDQGc3KP-lsbM4O62

Re: [R] Interesting quirk with fractions and rounding

2017-04-21 Thread Hervé Pagès
2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html=DwIGaQ=eRAMFD45gAfqt84VtBcfhQ=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA=1JaAU8JTsAs-1eiwcWXgFMF6An1cjDHTSOjin674VRk=Gg8ShT8jT0TS19y42_4tYW23RMUgqeewiCRAW-TbXT0= and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computat

Re: [R] Interesting quirk with fractions and rounding

2017-04-20 Thread Hervé Pagès
e.html=DwICAg=eRAMFD45gAfqt84VtBcfhQ=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA=h2uDuHofumYjJ48NvOaART10-esHowpTtp37cGtD3yQ=0CaeomvoF9oO4LmfDFSjbfMQn4TufgUA-mqqIP7VFno= and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division of Public

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

2017-04-03 Thread Hervé Pagès
-R1LQ9G8= PLEASE do read the posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html=DwICAg=eRAMFD45gAfqt84VtBcfhQ=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA=AeHAcF7RnhWvQIqG5c2ucgFS0WIOmMFeRheLIeSwu0U=c9IcZitWvur2grg8C54Jnt5LmajX0ODDANY-BGRz

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

2017-03-14 Thread Hervé Pagès
guide.html=DwIGaQ=eRAMFD45gAfqt84VtBcfhQ=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA=sLEnaUtX6fn9Y_qSSEHFl-W9OaFf4_3oSFFTpbvjAd4=PliR-mnRNhRqRnpIX6OFVtcpBlOR2rBkBKtemPQ-NMw= and provide commented, minimal, self-contained, reproducible code. -- Hervé Pagès Program in Computational Biology Division

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
'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 <hpa...@fredhutch.org> wrote: Hi, tapply() will work on any object 'X' that has a length and s

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
ds 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 County" comic stri

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
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 <hpa...@fredhutch.org> wrote: Hi,

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 provide commented, minim

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

2016-11-14 Thread Hervé Pagès
UE) 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 at 12:2

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

2016-11-14 Thread Hervé Pagès
00 0.104 ... 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 mai

Re: [R] Faster Subsetting

2016-09-28 Thread Hervé Pagès
ted, 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 Phone: (206) 667-5791

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

2016-07-27 Thread Hervé Pagès
sk. That's the only way to learn! H. On Wed, Jul 27, 2016 at 12:40 PM, Hervé Pagès <hpa...@fredhutch.org <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 names for a matri

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

2016-07-27 Thread Hervé Pagès
, 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 <hpa...@fredhutch.org <mailto:hpa...@fredhutch.org>> wrote: On 07/27/2016 11:40 AM, Hervé Pagès wrote: Hi, On 07/2

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
ttps://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 R

Re: [R] installing the lubricate package

2016-07-22 Thread Hervé Pagès
e, 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 Hutchinson

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 Health

Re: [R] break string at specified possitions

2016-05-13 Thread Hervé Pagès
cible code. __ 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,

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 Hutchinson Cancer

Re: [R] Extracting part of a factor

2016-03-03 Thread Hervé Pagès
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 <hpa...@fredhutch.org <mailto:hpa...@fredhutch.org>> wrote: Hi, On 03/03/2016 12:18 PM, KMNanus wrote: I have a factor variable that is 6 di

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

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

2016-02-01 Thread Hervé Pagès
E 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.O. Box 19024

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

2016-02-01 Thread Hervé Pagès
reproducible code. __ 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 c

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

2015-07-29 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

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

2015-07-28 Thread Hervé Pagès
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 Computational Biology Division of Public

Re: [R] Converting unique strings to unique numbers

2015-05-29 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

Re: [R] Converting unique strings to unique numbers

2015-05-29 Thread Hervé Pagès
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 hpa...@fredhutch.org mailto:hpa...@fredhutch.org wrote: Hi Sarah, On 05/29/2015 12:04 PM, Sarah Goslee wrote: On Fri, May 29, 2015

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 hpa...@fredhutch.org 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, whose, exact, content

Re: [R] Fast multiple match function

2015-04-07 Thread Hervé Pagès
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 Phone: (206) 667-5791

Re: [R] Substring replacement in string

2015-03-01 Thread Hervé Pagès
, H. Best wishes, Alrik -Ursprüngliche Nachricht- Von: Hervé Pagès [mailto:hpa...@fredhutch.org] Gesendet: Samstag, 28. Februar 2015 23:29 An: Alrik Thiem; r-help@r-project.org Betreff: Re: [R] Substring replacement in string Hi Alrik, With the Biostrings/IRanges infrastructure

Re: [R] Substring replacement in string

2015-02-28 Thread Hervé Pagès
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] %%

2015-02-17 Thread Hervé Pagès
-- 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 Health

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 hpa...@fredhutch.org 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

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

2015-01-28 Thread Hervé Pagès
, 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 Phone: (206) 667-5791 Fax:(206) 667

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

2015-01-27 Thread Hervé Pagès
-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 Computational Biology Division

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

2014-10-10 Thread Hervé Pagès
-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 19024 Seattle, WA 98109-1024 E-mail: hpa

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

2014-07-21 Thread Hervé Pagès
-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 19024 Seattle, WA 98109-1024 E-mail

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

2014-07-21 Thread Hervé Pagès
, 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 code. -- Hervé

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

2014-07-18 Thread Hervé Pagès
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 Sciences Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, M1-B514 P.O. Box 19024

Re: [R] Deleting subsequences from a string sequence

2014-01-23 Thread Hervé Pagès
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...@fhcrc.org Phone: (206) 667

Re: [R] counting matched elements in two vectors

2014-01-23 Thread Hervé Pagès
-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 19024 Seattle, WA 98109-1024 E-mail: hpa...@fhcrc.org Phone

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 to depend

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

2014-01-10 Thread Hervé Pagès
version deleted]] __ 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é

Re: [R] Subsetting vector with preserved order

2014-01-02 Thread Hervé Pagès
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...@fhcrc.org Phone: (206) 667-5791 Fax

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

2013-12-14 Thread Hervé Pagès
, 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) 667-1319

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

2013-10-31 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 Research

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

2013-10-29 Thread Hervé Pagès
/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

Re: [R] strsplit with a vector split argument

2013-09-18 Thread Hervé Pagès
--- strsplit(c(a,b;c,d;e,f),[,;]) [[1]] [1] a b c [[2]] [1] d e f --8---cut here---end---8--- Is this a bug or did I misunderstand the docs? Thanks! -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research

Re: [R] Understanding S4 method dispatch

2013-08-14 Thread Hervé Pagès
:11 AM, Hervé Pagès hpa...@fhcrc.org wrote: Hi Hadley, I suspect that the dispatch algorithm doesn't realize that selection is ambiguous in your example. For 2 reasons: (1) When it does realize it, it notifies the user: setClass(A, NULL) setGeneric(f, function(x, y

Re: [R] Understanding S4 method dispatch

2013-08-14 Thread Hervé Pagès
lexicographically in the ordering) and what other methods could have been selected. Hadley -- 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

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

2013-08-14 Thread Hervé Pagès
://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 19024 Seattle, WA 98109-1024 E

Re: [R] Understanding S4 method dispatch

2013-08-13 Thread Hervé Pagès
extends(AB, A, fullInfo=TRUE)@distance extends(AB, B, fullInfo=TRUE)@distance # So why is signature(B, B) closer than signature(A, A) -- 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

Re: [R] Check the class of an object

2013-07-23 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

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

2012-10-26 Thread Hervé Pagès
. -- 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) 667-1319

Re: [R] Updating R 2.15.0 to 2.15.2

2012-10-26 Thread Hervé Pagès
. -- 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) 667-1319

Re: [R] Updating R 2.15.0 to 2.15.2

2012-10-26 Thread Hervé Pagès
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 hpa...@fhcrc.org mailto:hpa...@fhcrc.org escribió: Hi Paul, If your question

Re: [R] making a second version of R

2012-03-08 Thread Hervé Pagès
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 -- Hervé Pagès Program in Computational Biology Division

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] [BioC] BioC 2.3 standard installation

2008-12-01 Thread Hervé Pagès
: In install.packages(XML) : installation of package 'XML' had non-zero exit status On Mon, Dec 1, 2008 at 1:42 PM, Hervé Pagès [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Tiandao, What OS do you have? How did you install R? It looks like

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

2008-12-01 Thread Hervé Pagès
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 for now. Tiandao Li wrote: [...] library() [...] KernSmooth Functions for kernel smoothing for Wand Jones