Re: [R] Error in colMeans ... what's wrong with my data?

2005-04-02 Thread Peter Dalgaard
Prof Brian Ripley [EMAIL PROTECTED] writes: On Fri, 1 Apr 2005, Hartmut Weinrebe wrote: [snip] struktur - read.delim(struktur.csv, header=TRUE, sep = ;) colMeans(struktur) And the resulting error: Error in colMeans(x, n, prod(dn), na.rm) : `x' must be numeric Can

[R] is a very big graphics-device

2005-04-02 Thread Markus Hummel (WEB.DE)
Hello, i am searching now the R-Documentation many hours, but i cannot find a solution to my problem. I hope, i can solve my issue with R. i have data-tables, 15*40 data-tables i want to visualise this. this example-code i copied makes a 3x3-grid: x - 0:12 y - sin(pi/5 * x) op - par(mfrow =

[R] factor to numeric in data.frame

2005-04-02 Thread Heinz Tuechler
Dear All, Assume I have a data.frame that contains also factors and I would like to get another data.frame containing the factors as numeric vectors, to apply functions like sapply(..., median) on them. I read the warning concerning as.numeric or unclass, but in my case this makes sense, because

RE: [R] is a very big graphics-device

2005-04-02 Thread Ted Harding
On 02-Apr-05 Markus Hummel (WEB.DE) wrote: Hello, i am searching now the R-Documentation many hours, but i cannot find a solution to my problem. I hope, i can solve my issue with R. i have data-tables, 15*40 data-tables i want to visualise this. [...] i want it for 15x40 grid in a

Re: [R] factor to numeric in data.frame

2005-04-02 Thread Gabor Grothendieck
Try this: data.matrix(df.f12) On Apr 2, 2005 6:01 AM, Heinz Tuechler [EMAIL PROTECTED] wrote: Dear All, Assume I have a data.frame that contains also factors and I would like to get another data.frame containing the factors as numeric vectors, to apply functions like sapply(..., median) on

Re: [R] is a very big graphics-device

2005-04-02 Thread Sean Davis
I typically do this with a large PDF [pdf(width=33, height=24), for example]. Most of the PDF viewers allow zooming in and out as well as grabbing the page to move it around. Sean - Original Message - From: Ted Harding [EMAIL PROTECTED] To: Markus Hummel (WEB.DE) [EMAIL PROTECTED] Cc:

RE: [R] using GAM to assess the linearity in logistic regression

2005-04-02 Thread John Fox
Dear ronggui, There are several approaches you can take, one of which is to fit a GAM and simply look to see whether the relationships appear linear on the logit scale. As well, you could compare the fit of the GAM with semiparametric models in which each smooth term in turn is replaced by a

Re: [R] factor to numeric in data.frame

2005-04-02 Thread Prof Brian Ripley
On Sat, 2 Apr 2005, Heinz Tuechler wrote: Dear All, Assume I have a data.frame that contains also factors and I would like to get another data.frame containing the factors as numeric vectors, to apply functions like sapply(..., median) on them. I read the warning concerning as.numeric or unclass,

Re: [R] factor to numeric in data.frame

2005-04-02 Thread Heinz Tuechler
At 07:15 02.04.2005 -0500, Gabor Grothendieck wrote: Try this: data.matrix(df.f12) Perfect! This is exactly what I needed. Many thanks, Heinz Tüchler On Apr 2, 2005 6:01 AM, Heinz Tuechler [EMAIL PROTECTED] wrote: Dear All, Assume I have a data.frame that contains also factors and I would

RE: [R] is a very big graphics-device

2005-04-02 Thread Ted Harding
On 02-Apr-05 Martin Maechler wrote: Hi Ted, in my Redhat / GNOME setup, I can grab windows using Alt + left mouse button anywhere, not just at the top bar to drag them around. I'm not entirely sure if this Alt-key + Mouse is standard, but I'm quite sure it's the default in other (Unixy)

Re: [R] factor to numeric in data.frame

2005-04-02 Thread Heinz Tuechler
At 14:26 02.04.2005 +0100, Prof Brian Ripley wrote: On Sat, 2 Apr 2005, Heinz Tuechler wrote: Dear All, Assume I have a data.frame that contains also factors and I would like to get another data.frame containing the factors as numeric vectors, to apply functions like sapply(..., median) on

[R] Help with brain surgery

2005-04-02 Thread Phillip Good
Need help with brain surgery? I should begin by reading the second edition of my new Wiley text, Common Errors in Brain Surgery (and How to Avoid Them). P.S. Don't worry too much about preventive measures or even planning the details of the surgery. Any competent surgeon can help you

[R] Amount of memory under different OS

2005-04-02 Thread marvena
Hi, I have a problem: I need to perform a very tough analysis, so I would like to buy a new computer with about 16 GB of RAM. Is it possible to use all this memory under Windows or have I to install other OS? Thanks, Marco

RE: [R] Amount of memory under different OS

2005-04-02 Thread Liaw, Andy
Your best bet currently is probably some flavor of Linux for x86-64 (assuming you are buying a box with AMD64 or EM64T chip). Personally I've had good experience with SUSE SLES8/9 and Fedora FC3. Even though 64-bit Windows might be out `soon' (http://www.theinquirer.net/?article=22246), I

[R] RMySQL question

2005-04-02 Thread simone gabbriellini
Dear List, I have this little problem: I work with adiacency matrix like: datame you me 0 1 you 1 0 I store those matrix in a mysql database actually I use RMySQL with: res-dbSendQuery(connection, SELECT * FROM table) myDataFrame-fetch(res) to retrive the table, and I have

[R] need hints on basic character string functions

2005-04-02 Thread Terry Mu
Hello, for now, I need to transform A to a, and need to know length of ABC, etc. Please show me a starting point for character string functions. Thank you. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

RE: [R] need hints on basic character string functions

2005-04-02 Thread Liaw, Andy
See ?tolower and ?nchar. Andy From: Terry Mu Hello, for now, I need to transform A to a, and need to know length of ABC, etc. Please show me a starting point for character string functions. Thank you. __ R-help@stat.math.ethz.ch

Re: [R] need hints on basic character string functions

2005-04-02 Thread Peter Dalgaard
Liaw, Andy [EMAIL PROTECTED] writes: See ?tolower and ?nchar. and help.search(keyword=character) for more stuff. -p Andy From: Terry Mu Hello, for now, I need to transform A to a, and need to know length of ABC, etc. Please show me a starting point for

[R] wrong signs using MNP.

2005-04-02 Thread Bill West
Hi, I recently found the MNP package. Out of curiosity, I tried to reproduce results from Greene (Econometric Analysis, fourth edition) on page 874. The signs of the estimates are all opposite those of Greene's table. Might anyone be able to tell me what I am doing wrong? I have attached the

[R] is there a function like %in% for characters?

2005-04-02 Thread Terry Mu
like: a %in% abcd TRUE Thanks. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

RE: [R] is there a function like %in% for characters?

2005-04-02 Thread Liaw, Andy
I suppose here's one way: hasChar - function(x, y) { length(grep(x, y)) 0 } hasChar(a, abcd) [1] TRUE hasChar(e, abcd) [1] FALSE Andy From: Terry Mu like: a %in% abcd TRUE Thanks. __ R-help@stat.math.ethz.ch mailing list

Re: [R] is there a function like %in% for characters?

2005-04-02 Thread Terry Mu
thx, that's perfect. I thought of grep(), it also can do this. I wonder if there is a document or book that explains things categorically so it's easy to look up a function. On Apr 2, 2005 10:54 PM, Liaw, Andy [EMAIL PROTECTED] wrote: I suppose here's one way: hasChar - function(x, y) {

[R] Re: is there a function like %in% for characters?

2005-04-02 Thread Rich FitzJohn
Or, using the %foo%-style functions: %charin% - function(x, y) regexpr(x, y) != -1 a %charin% asdf [1] TRUE a %charin% bsdf [1] FALSE Cheers, Rich On Sat, 2 Apr 2005 22:54:35 -0500, Liaw, Andy [EMAIL PROTECTED] wrote: I suppose here's one way: hasChar - function(x, y) { length(grep(x,

[R] how to draw a 45 degree line on qqnorm() plot?

2005-04-02 Thread Terry Mu
# I can not draw a 45 degree line on a qqnorm() plot, jj - sample(c(1:100), 10) qqnorm(jj) abline() don't work. Thank you. __ 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 draw a 45 degree line on qqnorm() plot?

2005-04-02 Thread Bill.Venables
You didn't try very hard. Try this, look at it and think about it: jj - scale(sample(1:100, 10)) qqnorm(jj) abline(0, 1) Rather than abline, however, most people, however, would use qqline(jj) in which case you don't need the scaling. V. -Original Message- From: [EMAIL