RE: [R] ts.intersect a multivariate and univariate ts

2005-06-05 Thread Prof Brian Ripley
some_df[1, ] is actually a data frame: see ?[.data.frame. It's hard to see what else it could be, as columns of a data frame are of arbitrary classes. When you apply matrix() to a data frame it gets dropped to a list. On Sat, 4 Jun 2005, Andy Bunn wrote: Adam: Providing a reproducible

Re: [R] glm with a distribution free family

2005-06-05 Thread Prof Brian Ripley
On Sat, 4 Jun 2005, Laetitia Mestdagh wrote: I am trying to fit a glm with a distribution free family, link = log and variance = constant*mu. I guess I have to use the quasi family but the choices of variance are restricted to constant or mu or mu^2..., I don't know the way to choose the

[R] A long digression on packages

2005-06-05 Thread Jim Lemon
Hello again, First, thanks for the help that got the latest plotrix package finished. I had been planning to write something about packages since Scott Waichler offered the gantt.chart function. Then Ben Bolker (who helped me to write the axis.break function) asked if I would be willing to

Re: [R] A long digression on packages

2005-06-05 Thread Gabor Grothendieck
On 6/5/05, Jim Lemon [EMAIL PROTECTED] wrote: There are now about 500 packages on CRAN. Some are focused, covering a particular area well, easy for the prospective user to discover their potential usefulness, while others are less so. CRAN Task Views

Re: [R] A long digression on packages

2005-06-05 Thread Duncan Murdoch
Thanks for posting this; I think you raise good points, but they're more appropriate for R-devel, so I've posted my reply there. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] Creating a large matrix

2005-06-05 Thread Des Callaghan
Dear all, I have a set of data that is 2 columns wide and 35,000 rows long (see extract below). The first column contains codes for tetrads (2km x 2km squares within NW England) and the second column has the names of moss species present within each tetrad. I wish to convert this into a matrix

Re: [R] Creating a large matrix

2005-06-05 Thread Vehbi Sinan Tunalioglu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You are able to store such a huge matrix in R, if you ask for it... Furthermore, table command might help you: Help page for table says: Cross Tabulation and Table Creation Description: 'table' uses the cross-classifying factors to build a

Re: [R] A long digression on packages

2005-06-05 Thread Jari Oksanen
On 5 Jun 2005, at 16:47, Duncan Murdoch wrote: Thanks for posting this; I think you raise good points, but they're more appropriate for R-devel, so I've posted my reply there. There are diverse opinions about netiquette. One of the most basic, in my opinion, is this: if someone posts starts

RE: [R] ts.intersect a multivariate and univariate ts

2005-06-05 Thread Andy Bunn
some_df[1, ] is actually a data frame: see ?[.data.frame. It's hard to see what else it could be, as columns of a data frame are of arbitrary classes. I see, I was confusing class and mode. However, since a list can be a ts object as in this example: R w - list(rnorm(10), rnorm(10)) R x -

Re: [R] ts.intersect a multivariate and univariate ts

2005-06-05 Thread Gabor Grothendieck
On 6/5/05, Andy Bunn [EMAIL PROTECTED] wrote: some_df[1, ] is actually a data frame: see ?[.data.frame. It's hard to see what else it could be, as columns of a data frame are of arbitrary classes. I see, I was confusing class and mode. However, since a list can be a ts object as in this

Re: [R] locator() via tcltk

2005-06-05 Thread Sebastian Luque
Dear List members, Thank you so much for your insights. On Sat, 4 Jun 2005 09:39:33 +0100 (BST), Prof Brian Ripley [EMAIL PROTECTED] wrote: [...] I think it is more likely you want to wait for the Tk interaction and then return the results, that is use a `modal' widget. If so, take a look

[R] function and apply

2005-06-05 Thread jose silva
Dear all    I think my problem is not complicated but I'm having difficulties to solve it. v is a vector: v=c(p1 , p2 , p3 , p4), and f  is a function: f : v - w , where w=c(p1 , p2*(1-p1) , p3*(1-p2)*(1-p1) , p4*(1-p3)*(1-p2)*(1-p1))   I write the function f as:

Re: [R] function and apply

2005-06-05 Thread Kjetil Brinchmann Halvorsen
jose silva wrote: Dear all Its very difficult to read your post due to all the blank lines, so I cannot really read it very well, but what about writing your function as (not tried) fun - function(x) c(x[1], or if that doesn't work look into ?mapply But you should really look into

Re: [R] function and apply

2005-06-05 Thread Gabor Grothendieck
On 6/5/05, jose silva [EMAIL PROTECTED] wrote: Dear all I think my problem is not complicated but I'm having difficulties to solve it. v is a vector: v=c(p1 , p2 , p3 , p4), and f is a function: f : v - w , where w=c(p1 , p2*(1-p1) , p3*(1-p2)*(1-p1) ,

Re: Re: [R] function and apply

2005-06-05 Thread jose silva
Kjetil and Gabor: thank you both so much for for yor help silva [EMAIL PROTECTED] wrote: Dear all I think my problem is not complicated but I'm having difficulties to solve it. v is a vector: v=c(p1 , p2 , p3 , p4), and f is a function: f : v - w , where w=c(p1 , p2*(1-p1) ,

[R] Superscript text in axis labels

2005-06-05 Thread Jim BRINDLE
Hello, I am guessing this is not a difficult question. But at the same time, I haven't had much luck figuring this issue out from the R documentation and help pages. How can I create superscript text in the labels of a plot? The parameter along my y-axis is volume and my desire is for the

Re: [R] Superscript text in axis labels

2005-06-05 Thread Gabor Grothendieck
On 6/5/05, Jim BRINDLE [EMAIL PROTECTED] wrote: Hello, I am guessing this is not a difficult question. But at the same time, I haven't had much luck figuring this issue out from the R documentation and help pages. How can I create superscript text in the labels of a plot? The parameter

[R] need an R-squared from a nls logistic sigmoid fit

2005-06-05 Thread James Salsman
Why doesn't nls() produce any kind of R-squared value? In the absence of such information, how are we supposed to compare one fit to another when the y-axis scale changes? sm - nls(y ~ SSfpl(x, miny, maxy, midx, grad)) summary(sm) Formula: y ~ SSfpl(x, miny, maxy, midx, grad) Parameters:

Re: [R] need an R-squared from a nls logistic sigmoid fit

2005-06-05 Thread Gabor Grothendieck
On 6/5/05, James Salsman [EMAIL PROTECTED] wrote: Why doesn't nls() produce any kind of R-squared value? In the absence of such information, how are we supposed to compare one fit to another when the y-axis scale changes? sm - nls(y ~ SSfpl(x, miny, maxy, midx, grad)) summary(sm)

[R] greater-than-or-equal-to symbol in a legend

2005-06-05 Thread Krista Chin
Hello, I am unable to get the greater-than-or-equal-to symbol (?) in a legend. I am able to get pi, squares, sqrt, but not this particular symbol. Can anyone tell me what I am doing wrong? legend(locator(n=1), legend = c(Observed, expression(Area 5* m^2), expression(Area = 5*m^2)),

Re: [R] greater-than-or-equal-to symbol in a legend

2005-06-05 Thread Gabor Grothendieck
On 6/5/05, Krista Chin [EMAIL PROTECTED] wrote: Hello, I am unable to get the greater-than-or-equal-to symbol (?) in a legend. I am able to get pi, squares, sqrt, but not this particular symbol. Can anyone tell me what I am doing wrong? legend(locator(n=1), legend = c(Observed,

[R] fail in adding library in new version.

2005-06-05 Thread Ivy_Li
Hello everybody, Could I consult you a question? I always use R old version 1.9.1 . Because I can not add my library into the new version 2.0.0 by the same method as old version. * I have read the webpage http://www.stats.ox.ac.uk/pub/Rtools * Download the tools.zip

Re: [R] need an R-squared from a nls logistic sigmoid fit

2005-06-05 Thread Spencer Graves
Gabor explained, how are we supposed to compare one fit to another but not Why doesn't nls() produce any kind of R-squared value. For that, I requested 'RSiteSearch(R-squared from nls)'. The seventh hit was a summary of an earlier discussion on this issue

[R] simplified Chinese and traditional Chinese translation for R manuals

2005-06-05 Thread Guohui Ding
Hi, every one, I have translated An Introduction to R into simplified Chinese and traditional Chinese. You can browse them from these two URL: simplified Chinese: http://www.biosino.org/pages/newhtm/r/schtml/index.html#Top traditional Chinese: http://www.biosino.org/pages/newhtm/r/tchtml/ I

Re: [R] fail in adding library in new version.

2005-06-05 Thread Gabor Grothendieck
On 6/5/05, Ivy_Li [EMAIL PROTECTED] wrote: Hello everybody, Could I consult you a question? I always use R old version 1.9.1 . Because I can not add my library into the new version 2.0.0 by the same method as old version. Getting the latest version of R is strongly recommended.

[R] stats and generating a figure for a simple sign test with high inter-experiment variance

2005-06-05 Thread Robin Colgrove
Hello all, Sorry if this is an FAQ. I have been trying to search the archives without success. I have a dataset (ChiPs microarray) where the experiment to experiment variability is very high but where within an experiment, the data nearly always goes in the right (hypothesis confirming)

Re: [R] fail in adding library in new version.

2005-06-05 Thread Spencer Graves
Hi, Ivy_Li: I also had trouble adding libraries under recent versions of R. The new versions of R ask you to select a local CRAN mirror. Unfortunately, I was using XEmacs, which failed to pass on the request to select a local CRAN mirror and instead locked up. I started using RGui

[R] how to change the current directory to my folder.

2005-06-05 Thread luan_sheng
I want to th current folder is the specific folder when R start.It is very boring to modify the current directory manually. How can I do it? __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] how to change the current directory to my folder.

2005-06-05 Thread Dirk Eddelbuettel
On 6 June 2005 at 10:58, luan_sheng wrote: | I want to th current folder is the specific folder when R start.It is | very boring to modify the current directory manually. How can I do it? The first answer to RSiteSearch(change directory) tells you about setwd() and getwd(). There

Re: [R] simplified Chinese and traditional Chinese translation for R manuals

2005-06-05 Thread Yuandan Zhang
Guohui, Great effort for translating this document into Chinese. I will certainly read through and send some feedback to you. Best Yuandan Guohui Ding wrote: Hi, every one, I have translated An Introduction to R into simplified Chinese and traditional Chinese. You can browse them from

[R] segmentation fault - debugging

2005-06-05 Thread Joel Bremson
Hi all, I'm trying to debug some fortran 95 code that I'm bringing in with a dyn.load(). I'm compiling a number of files using g95 on intel linux w/ R 2.1.0. The .so file loads without complaint, but when I try to call it I get a seg fault. I was hoping I could get a core dump in order to get