similar to: How to comment out multiple lines in R source code?

Displaying 20 results from an estimated 6000 matches similar to: "How to comment out multiple lines in R source code?"

2002 Nov 29
1
KS for goodness of fit
Dear All, I have two distributions which I don't their nature. I want to check whether they come from the same distribution. I know that I can use KS test however the standart function ks.test applies only the ks test for testing the difference of two samples (non-parametric). By the way the distribution are of Euclidean distances. One of observed and the other of shuffled data. Thanks, Ron
2003 Apr 07
3
New window for plot()
Hi, Can anybody tell me how to open new a new window for plot()? Thanks. Minghua
2001 Sep 13
2
image plot legends
Hi, is there anybody knowing a possibility to produce a legend (describing the color scheme) in an image plot in R. In S-Plus this works using image.legend. Thank's in advance. INGO -- ----------------------------------------------------------------- Ingo Roeder Institute for Medical Informatics, Statistics and
2002 Dec 19
2
More on scan()
Hi, If I have a CSV file which has several comments at the top, and the data start immediately after the line: @DATA Is it possible to use the scan() command to get the CSV data into R, by only reading the lines after @DATA? If so, how can I do it? Cheers, Kevin ------------------------------------------------------------------------------ /* Time is the greatest teacher, unfortunately it
2001 Sep 07
2
adding logical vector to data frame
Hello. I'm afraid that I'm missing something very obvious this afternoon... When I add a column to a data.frame (by assigning to a "new" column name a logical vector), I thought that I had (at least) 3 options to do so: R> j <- data.frame (x=1:2) R> j$y <- c(TRUE,FALSE) #assignment 1 R> str(j) `data.frame': 2 obs. of 2 variables: $ x: int 1 2 $ y: logi
2002 Jul 09
1
RE: mvtnorm package installation failure
Hi, Thank you for the tip. I tried to re-intall R from Debian "stable", in which R's version is 1.4.0. And the installation of "mvtnorm" works. I then re-installed R yet again from Debian "unstable" (woody), in which R's version is 1.5.1. The installation of "mvtnorm" fails again with the same error message. Another package that failed with the
2001 Feb 28
2
(off topic) Re: Notepad
At 21:57 28/02/01 +0100, Peter Dalgaard BSA wrote: >Jim Lemon <bitwrit at ozemail.com.au> writes: > >> 3) The usual number of responses spent a lot of time dissing NotePad and >> advertising their favorite editor. As various contributors noted, >> NotePad actually does most of the things that some people said it >> doesn't. Positive advice (like the fact
2000 Sep 19
4
methods for interval-censored data
Dear all, Are there functions or packages in R that can handle interval-censored data? I have looked in various packages (such as survival5 or event), but it seems that only right-censored data can be analysed. More generally, are there methods to analyse both interval-censored observations and right-censored observations in the same data set? Thanks in advance. Emmanuel Paradis
2001 Sep 13
3
OT: ps -> eps -> MS Word
I've created a bunch of postscript trees (post.rpart), which I subsequently edit in Adobe Acrobat 4.05 (I need additional labelling that isn't easy to add with R). After editing the labels and annotations using Acrobat, I then export the file to Adobe's .eps format so I can insert the picture into a Microsoft Word 2000 document. The .pdf file distilled from the .ps file is
2001 Sep 10
5
?? hmm ??
Hello again! thanks to all who helped with overlay plots - v. easy in the end. Anyway, another new(ba)bee type question - the gurus will cringe I'm sure! Q. simple R function mm <- function (u) { x <- u$GDP x m <- mean(x) m } When the function is called the vector "x" does not get printed from within the function, but the mean value "m" does, why? I
2001 Nov 15
2
help.start() works with Mozilla, but not with ESS
In a recent post, I reported that help.start worked with Mozilla, although it had not worked before. I now have discovered the difference. I'm using RH Linux 7.1 and Mozilla 0.9.5 and R 1.3.1. When I tried it before, I had use ESS to start R. If I run R without ESS, help.start() will start the browser (Mozilla), but help(apply), for example, will produce help in ESS but not in the browser.
2002 Aug 30
5
density() returns a density function that does not add up to 1
Dear R users, I ran into this curious problem: > d <- rnorm(100) > d.density <- density(d) > sum( d.density$x * d.density$y) [1] 2.517502 Admittedly the method of computing the mass under the density curve at line 3 is crude. But 2.5 is pretty far from 1, the value it should be. I tried a few other dataset and got similar result. Am I missing something obvious? Or is the return
2001 Apr 28
1
modulus operator gets syntax error (PR#925)
Full_Name: M. Edward Borasky Version: 1.2.2 OS: both Windows 2000 and Red Hat Linux 7.1 Submission from: (NULL) (208.130.245.188) According to the R language manual, "%" is the modulus operator. However, on both Windows and Linux, I get a syntax error when I type records <- 100000 records % 1000 I tried wrapping the operands with "as.integer ()" but that didn't help
2003 Apr 28
4
how to present a table in powerpoint?
Hi, I have a nicely printed table of results generated by R's > print(myresult) where myresult is a "data frame". I am trying to put this table into a powerpoint slide for presentation without re-typing and re-formating, i.e., present it as it is in the R window. This saves time when there are a lot of tables to be presented. I tried > sink("myresult.txt") >
2003 Dec 03
5
add a point to regression line and cook's distance
Hi, This is more a statistics question rather than R question. But I thought people on this list may have some pointers. MY question is like the following: I would like to have a robust regression line. The data I have are mostly clustered around a small range. So the regression line tend to be influenced strongly by outlier points (with large cook's distance). From the application 's
2001 Oct 16
4
two way ANOVA with unequal sample sizes
Hi, I am trying a two way anova with unequal sample sizes but results are not as expected: I take the example from Applied Linear Statistical Models (Neter et al. pp889-897, 1996) growth rate gender bone development 1.4 1 1 2.4 1 1 2.2 1 1 2.4 1 2 2.1 2 1 1.7 2 1 2.5 2 2 1.8 2 2 2 2 2 0.7 3 1 1.1 3 1 0.5 3 2 0.9 3 2 1.3 3 2 expected results are
2002 Mar 11
2
gif, jpeg and png image files reader
Hi all, Although R seems to have jpeg() and png() functions that converts data into jpeg and png formated files, it doesn't have functions the other way around. Does one of R contributed packages have gif, jpeg and png image readers? I did help.search() but no luck Regards, Jonathan -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
2004 Sep 22
3
RMySQL and Blob
Dear R experts, Does RMySQL package handle Blob datatype in a MySQL database? Blob can represent an image, a sound or some other large and complex binary objects. In an article published by R-database special interest group, named "A common database interface (DBI)" (updated June 2003), it's mentioned in "open issues and limitations" that "We need to carefully plan
2002 Jul 02
4
XEmacs vs. GNU Emacs?
As a user of only R, I don't use much of the potential of ESS and Emacs. Without entering a religious feud, is there any reason I should use XEmacs rather than my current GNU Emacs? (I looked on the XEmacs site, but I didn't understand the programming issues they were talking about (over my head).) Martin Henry H. Stevens, Assistant Professor 338 Pearson Hall Botany Department Miami
2000 May 18
1
tutorial "R pour les débutants" is available on CRAN
Dear R-users, Thanks to Friedrich Leisch, my document "R pour les d?butants" is available on CRAN in the contributed documentation section: http://cran.r-project.org/doc/contrib/Rdebuts.pdf. It is written in French. "R pour les d?butants" ("R for beginners") gives a starting point for people with no experience with R (or S). I tried to explain the basics in the