Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

24 results for “from:Leon Yee”

re-order the rows of a data frame accroding to a specified order of some column
Leon Yee · Aug 15, 2010 · r-help

An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100816/6dbb9d89/attachment.pl>

re-order the rows of a data frame accroding to a specified order of some column
Leon Yee · Aug 15, 2010 · r-help

An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100816/10282fb7/attachment.pl>

How to disable character escaping ?
Leon Yee · Sep 1, 2008 · r-help

Dear all, I have a string (a file path in windows system) contains several "\"s. When I copy and paste it into R for assignment to an variable, the "\"s are always interpreted as escaping characters. How can I keep...

How to get the duplicated elements from a vector?
Leon Yee · Oct 29, 2008 · r-help

Dear all, How can I get the duplicated elements from a vector? For example, x <- c("yes", "no", "yes", "yes", "no", "not sure"), how can I filter out all the elements which occured >=2 times? Thanks for any help! Regards...

How to disable character escaping ?
Leon Yee · Sep 3, 2008 · r-help

Thank you, Professor Ripley. It is exactly what I need. Best wishes! Leon Prof Brian Ripley wrote: > By reading from a file or connection, as in > > foo <- scan("", "", n=1) > c:\tmp\foo > > The parser always interprets \ in strings, so...

Compare objects
Leon Yee · Nov 9, 2008 · r-help

Hi, friends Is there any functions for object comparing? For example, I have two list objects, and I want to know whether they are the same. Since the the components of list are not necessary atomic, this kind of comparison...

Which data structure in R can mimic hash in PERL best?
Leon Yee · Nov 15, 2008 · r-help

Dear all, Which data structure in R can mimic hash in PERL? I'd like to set up a lookup table, which could be accomplished by HASH if using PERL. Which of the data structures in R is the most...

p-value calculation on a joint distribution
Leon Yee · Nov 10, 2009 · r-help

Dear R users, For a uni-variable distribution represented in a numerical vector, we can obtain a distribution function using 'ecdf', and then calculate corresponding p-values. But if I have a 2-column dataframe representing a bi-variable joint...

How to get the duplicated elements from a vector?
Leon Yee · Oct 29, 2008 · r-help

Gustaf Rydevik wrote: > Hi Leon, > > unique(x) > > or > > duplicated(x) > > should work, depending on what you want. > > Best, > > Gustaf > Hi, Thank you all. Actually, I have a data frame or matrix, whose first column is numerical values, and whose 2nd...

The setting of .Library.site in Rprofile.site doesn't take effect
Leon Yee · May 24, 2009 · r-help

Dear R users, I am trying to customize the .Library.site in the file etc/Rprofile.site under Windows XP, but it seems that the setting doesn't take effect. My setting is: .Library.site <- "d:/site-library" But after...

A question about "union"
Leon Yee · Oct 17, 2008 · r-help

Dear all, I have a question about "union". "union" handles two vectors' elements to get their union, but I have many vectors and I want to get the union of all of them. So I wrote a loop: all <-c...

pretty display or print for data frames ?
Leon Yee · Aug 11, 2009 · r-help

Hi, all I have a question of adjusting the output of a data frame with many columns. By default, print() will print out several columns according to the window size, and then it scrolls down and print out left columns...

Compare objects
Leon Yee · Nov 9, 2008 · r-help

Peter Dalgaard wrote: > Heinz Tuechler wrote: >> At 13:26 09.11.2008, Leon Yee wrote: >>> Hi, friends >>> >>> Is there any functions for object comparing? For example, I have two >>> list objects, and I want to know whether they are the...

The setting of .Library.site in Rprofile.site doesn't take effect
Leon Yee · May 24, 2009 · r-help

Oh, sorry, my own fault. I had set a HOME evironmental variable, and there was a .Rprofile in it, and the setting of .Library.site was overriden there. Regards, Leon Leon Yee wrote: > Dear R users, > > I am trying to...

How to get the duplicated elements from a vector?
Leon Yee · Oct 29, 2008 · r-help

Erik Iverson wrote: > ## BEGIN R CODE > ## guarantees there is at least one level with exactly three elements, > ## which your problem seems to require > t1 <- data.frame(a = rnorm(10), b = c("D", "D", "D", > sample(LETTERS[1:3], 7, replace...

ubuntu system refuses to update packages
Leon Yee · Nov 11, 2008 · r-help

Vincent Goulet wrote: >> >> It seems that R2.8.0 for gutsy is built on a system with tcl8.5 and >> tk8.5, which is not available in gutsy? > > From the CRAN Ubuntu README: > > >>> > Installation and compilation of R or some...

Problem with modifying a data frame
Leon Yee · Aug 11, 2009 · r-help

Hi, > this could be a simple question but I am looking into modifying a data frame > using a "condition" without the need to loop over that data, would that be > possible? > > I have tried the following > >> x<-c(4,5...

Upgrade 'R'
Leon Yee · Sep 1, 2008 · r-help

Hello, Kevin You can get some hints by browsing in this mailist with the subject of " Upgrading R means I lose my packages", which were posted several days ago. HTH Leon rkevinburton at charter.net wrote: > More and more I...

Which data structure in R can mimic hash in PERL best?
Leon Yee · Nov 18, 2008 · r-help

Hi, Hans W. Borchers wrote: >> Dear all, >> >> Which data structure in R can mimic hash in PERL? I'd like to set >> up a lookup table, which could be accomplished by HASH if using PERL. >> Which of the data structures...

A question about "union"
Leon Yee · Oct 17, 2008 · r-help

Cool! It works! Thank you very much! Leon Yihui Xie wrote: > You need to get() their elements instead of merely using variable names. > > Regards, > Yihui > -- > Yihui Xie <xieyihui at gmail.com> > Phone: +86-(0)10-82509086 Fax: +86-(0)10...

Can't find what you're looking for? Try searching with Google .