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