Re: [R] Preformatted text in Rd files

2004-12-23 Thread Uwe Ligges
michael watson (IAH-C) wrote: A quickie - how do I include preformatted text within the details section of an .Rd file? Thanks Mick __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] How do you generate multiple sequences

2004-12-23 Thread Uwe Ligges
Mulholland, Tom wrote: I thought it would be quite simple to generate a number of sequences, but my only answer is to loop and this doesn't seem in keeping with R's capabilities. In short I have the start and finish positions of several (well thousands probably) sequences. So I am looking at how

Re: [R] Get rid of space padding

2004-12-23 Thread Ted Harding
On 23-Dec-04 Gene Cutler wrote: On Dec 22, 2004, at 5:00 PM, (Ted Harding) wrote: so, for me, the tabs are coming through as such. (R-1.8.0, RH9 Linux) What gives you the information that \t has expanded to spaces? Often, writing a file out to a display, or importing it into an editor

Re: [R] combination of scatterplot and image graph

2004-12-23 Thread Romain François
Hello, you can fit a density using MASS::kde2d and then do a contour plot (?contour) and scatterplot your data : x - rnorm(500) y - rnorm(500) require(MASS) d - kde2d(x,y,n=50) image(d) contour(d,add=T) points(x,y,pch=20) Romain. bogdan romocea a écrit : Dear R users, I'm interested in a

[R] Re: How to calculate Ln(x) value and Exp(Ln(x)) value in R?

2004-12-23 Thread liu qin
Hi, there: Does anybody know how to calculate Log value as Ln() and Exp( ) value in R please? Many thanks Qin __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] How to interpret and modify plot.svm?

2004-12-23 Thread David Meyer
I updated the e1071 package but still can't find the other three arguments for plot.svm. It's in e1071 since version 1.5-3. (current version: 1.5-4). In addition, I can plot a gray-colored contour region by adding the argument col = c(gray(0.2), gray(0.8)). But I failed to change those

[R] Rgui.exe - Error while tuning svm

2004-12-23 Thread David Meyer
If I try to tune my svm with the code: Tune - tune.svm(Data.Train, Class.Train, type=C-classification, kernel=radial, gamma = 2^(-1:1), cost = 2^(2:4)) i get a windows Messagebox with a error in the application Rgui.exe and the message: Die Anweisung in 0x6c48174d verweist auf Speicher

Re: [R] Re: How to calculate Ln(x) value and Exp(Ln(x)) value in R?

2004-12-23 Thread Uwe Ligges
liu qin wrote: Hi, there: Does anybody know how to calculate Log value as Ln() and Exp( ) value in R please? Do you know how to read the documentation and the posting guide? Please do so before posting! See ?log and ?exp Uwe Ligges Many thanks Qin

Re: [R] Re: How to calculate Ln(x) value and Exp(Ln(x)) value in R?

2004-12-23 Thread Petr Pikal
On 23 Dec 2004 at 1:05, liu qin wrote: Hi, there: Does anybody know how to calculate Log value as Ln() and Exp( ) value in R please? Is something wrong with log(x) log2(x) exp(x) Cheers Petr Many thanks Qin __

[R] subsetting a data.frame to the 'unique' of a column

2004-12-23 Thread Rudi Alberts
Hi, I often run into this problem: I have a data.frame with one column containing entries that are not unique. What I then want is a subset of the data.frame in which the entries in that column have become the 'unique' of the original column. Normally I program around it by taking the unique of

Re: [R] subsetting a data.frame to the 'unique' of a column

2004-12-23 Thread Peter Dalgaard
Rudi Alberts [EMAIL PROTECTED] writes: something like this, however, this gives me the complete df. df[df$colname %in% unique(df$colname),] or this, which doesnt work df[df$colname == unique(df$colname),] df[!duplicated(df$colname),] -- O__ Peter Dalgaard

Re: [R] subsetting a data.frame to the 'unique' of a column

2004-12-23 Thread Göran Broström
On Thu, Dec 23, 2004 at 11:28:31AM -0800, Rudi Alberts wrote: Hi, I often run into this problem: I have a data.frame with one column containing entries that are not unique. What I then want is a subset of the data.frame in which the entries in that column have become the 'unique' of the

[R] [R-pkgs] zoo 0.9-1

2004-12-23 Thread Achim Zeileis
Dear useRs, a new and much improved version of the zoo package for indexed totally ordered observations (such as irregular time series) is available from CRAN. It allows indexing observations with time/index vectors of arbitrary class and extends many of the standard generic functions also

Re: [R] Strange error from R CMD INSTALL

2004-12-23 Thread Kjetil Brinchmann Halvorsen
Brian D Ripley wrote: On Thu, 9 Dec 2004, Ray Brownrigg wrote: Date: Wed, 08 Dec 2004 09:33:22 -0400 From: Kjetil Brinchmann Halvorsen [EMAIL PROTECTED] I am trying to install a local package and get this unexpected error: -- Making package UMSA adding build stamp to

[R] searching Jonathan Baron's R Site

2004-12-23 Thread Jonathan Baron
First, my site will be down December 27-28 because of a network upgrade at Penn. It will also be down at least one day before that, while I upgrade the operating system. (And another day some time in January because of a planned power outage.) Second, I have replaced the search engine in my R

[R] tcltk problem

2004-12-23 Thread Liviu M Vladutu
Hi all, I have R Version 2.1.0 installed on a box running Redhat Fedora Core 2. When I try: library() it shows the package tcltk. But if I try: library(tcltk) I get the same error message like in this thread: http://tolstoy.newcastle.edu.au/R/help/01c/3418.html The same, tcl and tk are

Re: [R] subsetting a data.frame to the 'unique' of a column

2004-12-23 Thread Spencer Graves
What about aggregate? DF - data.frame(a=c(1,1,2), b=1:3, c=letters[1:3]) aggregate(DF[2:3], DF[1], function(x)x[1]) a b c 1 1 1 1 2 2 3 3 hope this helps. spencer graves Göran Broström wrote: On Thu, Dec 23, 2004 at 11:28:31AM -0800, Rudi Alberts wrote: Hi, I often run into this

Re: [R] tcltk problem

2004-12-23 Thread Marc Schwartz
On Thu, 2004-12-23 at 11:32 -0500, Liviu M Vladutu wrote: Hi all, I have R Version 2.1.0 installed on a box running Redhat Fedora Core 2. Are you really running 2.1.0 (which is an unreleased development version) or are you running 2.0.1, which is the present released version? What does the

[R] Question about creating error bars

2004-12-23 Thread Dan Bolser
I have data that looks (very roughly) like this... Declarative: Several 'groups', each group with a very variable number of data points associated. Procedural: v.1 - c(rep(50,1), rep(5,5), rep(2,10)) # Set up v.2 - c('a','b','c','d','e','f','g','h', # the

Re: [R] Creating a vector of colours that are as different from

2004-12-23 Thread Deborah Swayne
Spencer Graves writes: There should be a caveat with psycho-visual experimentation: Tufte (1983, p. 183) says that 5-10 percent of viewers are color deficient or color blind. The vischeck.com web site provides examples that show color-normal people what the world looks like to

RE: [R] subsetting a data.frame to the 'unique' of a column

2004-12-23 Thread Berton Gunter
Spencer's solution is considerably more inefficient then using duplicated() and subscripting: in a small example with 3 columns and 1 rows, it took 5 times as long on my Windows setup. The reason is that aggregate() is basically a wrapper for tapply and tapply basically loops in R.

Re: [R] subsetting a data.frame to the 'unique' of a column

2004-12-23 Thread Spencer Graves
Thanks, Bert, for the correction. Moreover, I see now that mine didn't even give an acceptable answer, converting levels a and c of the factor DF$c to 1 and 3. I confess I didn't read the documentation before replying. Here is duplicate with my example case: DF[!duplicated(DF$a), ]

Re: [R] Get rid of space padding

2004-12-23 Thread Gene Cutler
On Dec 23, 2004, at 12:46 AM, (Ted Harding) wrote: However, when (as I suggested last time) I modify your function 'write.matrix' so as to remove occurrences of format(...) (leaving only the ... ) then it seems to be OK. Thanks, Ted. 'format' was the problem. I didn't write the write.matrix

[R] R Reference Card (especially useful for Newbies)

2004-12-23 Thread Berton Gunter
[NOTE: This is a periodically posted (~ once/month) message for new R users. Please let me know by private email if you object to this as a waste of space] Newbies (and others!) may find the R Reference Card made available by Tom Short and Rpad at http://www.rpad.org/Rpad/Rpad-refcard.pdf

Re: [R] Creating packages in windoze: *** [indices] Error 1

2004-12-23 Thread Prof Brian Ripley
My guess is that the syntax error is in a data file. Please read http://developer.r-project.org/200update.txt and check that you can actually load all your data files (something that was unchecked before). On Wed, 22 Dec 2004, Niels Waller wrote: I am running R 2.0.1 on a Windoze XP OS. I

Re: [R] R Reference Card (especially useful for Newbies)

2004-12-23 Thread Jonathan Baron
On 12/23/04 10:20, Berton Gunter wrote: Newbies (and others!) may find the R Reference Card made available by Tom Short and Rpad at http://www.rpad.org/Rpad/Rpad-refcard.pdf useful. There are two other reference cards, and all three are linked from my R site (below). [You might add these to

Re: [R] Creating a vector of colours that are as different from

2004-12-23 Thread Thomas Lumley
On Thu, 23 Dec 2004, Deborah Swayne wrote: Spencer Graves writes: There should be a caveat with psycho-visual experimentation: Tufte (1983, p. 183) says that 5-10 percent of viewers are color deficient or color blind. The vischeck.com web site provides examples that show color-normal

Re: [R] tcltk problem

2004-12-23 Thread Marc Schwartz
On Thu, 2004-12-23 at 11:32 -0600, Marc Schwartz wrote: On Thu, 2004-12-23 at 11:32 -0500, Liviu M Vladutu wrote: Hi all, I have R Version 2.1.0 installed on a box running Redhat Fedora Core 2. Are you really running 2.1.0 (which is an unreleased development version) or are you running

[R] how to ignore t.test error message

2004-12-23 Thread burak kutlu
Hello, I was wondering if there is a way to ignore the error message you get when some of the data means you compare are constant in some lines of your data frame. I'd like to go ahead with t.test and get the calculated p-values anyway in such a case. Thanks -burak

Re: [R] combination of scatterplot and image graph

2004-12-23 Thread Jim Lemon
bogdan romocea wrote: Dear R users, I'm interested in a combination of a scatterplot and an image graph. I have two large vectors. Because in the scatterplot some areas are sparsely and others densely populated, I want to see the points, and I also want their color to be changed based on