Re: [R] Creating a factor from a combination of vectors

2004-12-01 Thread Yves Brostaux
Thank you Richard, but I dismissed the 'ifelse' solution because it needs explicit manual definition of the factor levels and corresponding vectors' combinations and does not define it automaticaly from the 'cas' data-frame (from which values, number of levels and rownames can vary). Eric

Re: [R] Relative subscripting

2004-12-01 Thread Ted Harding
On 01-Dec-04 Uwe Ligges wrote: (Ted Harding) wrote: [...] Let N-length(return) new.var - return[2:N]*marketcap[1:(N-1)] Ted, I aggree to all of your points, but we can simplify by negative indices (and hence circumvent your note 1): return[-1] * marketcap[-N] Uwe Ligges Neat

[R] spearman correction

2004-12-01 Thread Branimir K. Hackenberger
Dear All ! Who knows which correction (by tied numbers) is used by Spearman-test in function cor.test (e.g. cor.test(a,b,method=spearman))? a b 12 135 13 153 15 144 17 180 18 162 19 198 20 234 21 225 25 270 26 261

[R] [R-pkgs] New Hmisc Package Available

2004-12-01 Thread Frank E Harrell Jr
An updated version of Hmisc is now available from CRAN. The Web site for Hmisc is http://biostat.mc.vanderbilt.edu/s/Hmisc. The change log may be found at http://biostat.mc.vanderbilt.edu/changelog/Hmisc.html. Changes made after 2004-11-24 should be ignored; these will be in the next

Re: [R] spearman correction

2004-12-01 Thread Prof Brian Ripley
On Wed, 1 Dec 2004, Branimir K. Hackenberger wrote: Who knows which correction (by tied numbers) is used by Spearman-test in function cor.test (e.g. cor.test(a,b,method=spearman))? Anyone who reads the sources! The critical line in cor.test.default is r - cor(rank(x), rank(y)) so it

[R] Unable to understand strptime() behaviour

2004-12-01 Thread Tim Churches
R V2.0.1 on Windows XP. I have read the help pages on strptime() over and over, but can't understand why strptime() is producing the following results. v - format(2002-11-31, format=%Y-%m-%d) v [1] 2002-11-31 factor(v, levels=v) [1] 2002-11-31 Levels: 2002-11-31 x -

Re: [R] time data

2004-12-01 Thread Petr Pikal
__ [EMAIL PROTECTED] 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] Unable to understand strptime() behaviour

2004-12-01 Thread Prof Brian Ripley
The result of strptime is a 9-element list. From the help page Value: 'strptime' turns character representations into an object of class 'POSIXlt'. See Also: DateTimeClasses for details of the date-time classes; 'locales' to query or set a locale. Try ?DateTimeClasses. On Wed,

RE: [R] Unable to understand strptime() behaviour

2004-12-01 Thread BXC (Bendix Carstensen)
Try to say: class(x) unclass(x) and it will dawn on you what goes on. -- Bendix Carstensen Senior Statistician Steno Diabetes Center Niels Steensens Vej 2 DK-2820 Gentofte Denmark tel: +45 44 43 87 38 mob: +45 30 75 87 38 fax: +45 44 43 07 06 [EMAIL PROTECTED]

Re: [R] How to know if a bug was recognised

2004-12-01 Thread Heinz Tuechler
At 10:43 30.11.2004 -0500, you wrote: ... If you send a private email, please use a return address that works. I got messages that [EMAIL PROTECTED] has been disabled when I tried to respond there. Duncan Murdoch ... As I tried to tell you, there seems to be a problem on both sides of our

Re: [R] Unable to understand strptime() behaviour

2004-12-01 Thread Andrew Robinson
Tim, which aspect of the results? November has 30 days :) What is your goal? (I'm guessing) try: x - as.POSIXct(strptime(2002-11-31, format=%Y-%m-%d)) see e.g. https://stat.ethz.ch/pipermail/r-help/2003-May/032823.html I hope that this helps, Andrew. On Wed, Dec 01, 2004 at 09:36:37AM

Re: [R] Unable to understand strptime() behaviour

2004-12-01 Thread Petr Pikal
Hi Tim On 1 Dec 2004 at 9:36, Tim Churches wrote: R V2.0.1 on Windows XP. I have read the help pages on strptime() over and over, but can't understand why strptime() is producing the following results. v - format(2002-11-31, format=%Y-%m-%d) v [1] 2002-11-31 factor(v,

[R] barplot() using beside=TRUE and the density argument

2004-12-01 Thread michael watson \(IAH-C\)
Hi I am using barplot() to draw some barplots, with a matrix as the data so that multiple bars are drawn for each data point. I want to use the argument beside=TRUE to juxtapose the bars instead of stacking them. If I execute: barplot(data,names.arg=names,density=c(20,10),beside=FALSE) I get

[R] split() and paste() a vector to get a multi line string

2004-12-01 Thread Wolfram Fischer
How can I get a multi line string from a vector of string tokens in an easy manner (e.g. for the use as xlab of a plot)? I have e.g.: tokens - letters[1:5] [1] a b c d e I search: [1] a, b, c\nd, e I tried: nlines - 2 ntokens.line - ceiling(length(tokens) / nlines)

Re: [R] core dump during make check when building 64-bit R on Solaris8/9

2004-12-01 Thread Peter Dalgaard
Prof Brian Ripley [EMAIL PROTECTED] writes: We know of at least two builds which successfully used libsunperf, one (mine) with Studio ONE 7 and one with 9. So this may well be a problem with your particular compiler suite. Or maybe libsunperf version issues. The one that caused me trouble

Re: [R] core dump during make check when building 64-bit R on Solaris8/9

2004-12-01 Thread Prof Brian Ripley
On Wed, 1 Dec 2004, Peter Dalgaard wrote: Prof Brian Ripley [EMAIL PROTECTED] writes: We know of at least two builds which successfully used libsunperf, one (mine) with Studio ONE 7 and one with 9. So this may well be a problem with your particular compiler suite. Or maybe libsunperf version

Re: [R] split() and paste() a vector to get a multi line string

2004-12-01 Thread Eric Lecoutre
Hi: here is something that works on your token.list object: paste(lapply(token.list,paste,collapse=, ),collapse=\n) [1] a, b, c\nd, e You can't use data.frames, as your vectors dont have the same number of elements. But you still have all the information, in a list. So you can use lapply to

Re: [R] spearman correction

2004-12-01 Thread Peter Dalgaard
Prof Brian Ripley [EMAIL PROTECTED] writes: On Wed, 1 Dec 2004, Branimir K. Hackenberger wrote: Who knows which correction (by tied numbers) is used by Spearman-test in function cor.test (e.g. cor.test(a,b,method=spearman))? Anyone who reads the sources! The critical line in

[R] Data Frame Manipulations

2004-12-01 Thread michael watson \(IAH-C\)
Hi I have used merge() to merge two data frames, very much like performing a SQL join. Now I want to do a few different SQL-style things and I wondered if there were functions to do it... Is there a group by style function? For example if I merge() two data frames and end up with multiple

[R] request for help on statistical applications in pharma

2004-12-01 Thread neela v
Hi all there Can some one who have experience and knowledge in the pharma industry give me broad details on the subject Statistical applications for pharma industry. I am new to the subject i.e. what kind of statistical tools used being unique /or atleast specific for pharma industry. It

Re: [R] Data Frame Manipulations

2004-12-01 Thread Petr Pikal
Hi Michael On 1 Dec 2004 at 11:50, michael watson (IAH-C) wrote: Hi I have used merge() to merge two data frames, very much like performing a SQL join. Now I want to do a few different SQL-style things and I wondered if there were functions to do it... Is there a group by style

Re: [R] barplot() using beside=TRUE and the density argument

2004-12-01 Thread Petr Pikal
__ [EMAIL PROTECTED] 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] Data Frame Manipulations

2004-12-01 Thread Dimitris Rizopoulos
Hi Michael, regarding your second question you could use the `reshape()' function, i.e., dat - data.frame(ID=rep(1:2, each=2), Val=seq(5,20,5)) ## dat$time - unlist(lapply(split(dat$ID, dat$ID), function(x) 1:length(x)), use.names=FALSE) reshape(dat, direction=wide, idvar=ID, v.names=Val)

[R] how to add a legend in a barchart

2004-12-01 Thread ronggui
i use #pic 1 library(lattice) barchart(V1~V2,data,panel=function(x,y,...){ panel.barchart(x,y,...) panel.abline(v=6.76,col=red)}, ) to draw a picture.and i want to add a legend to telling others the line vertical is x=6.76.so how should i do? legend does not works. thank you . i have use

[R] can't install r package on debian due to linker problem

2004-12-01 Thread Robert Sams
hi, my attempt to install the package Hmisc v3.0-1 fails with the message: /usr/bin/ld: cannot find -lfrtbegin collect2: ld returned 1 exit status make: *** [Hmisc.so] Error 1 ERROR: compilation failed for package 'Hmisc' i'm at a loss here. any hints will be very much appreciated. i'm

[R] tuning SVM's

2004-12-01 Thread David Meyer
Stephen: Your calls to best.svm() do not tune anything unless you specify the parameter ranges (see the examples on the help page). Your calls are just using the defaults which are very unlikely to yield models with good performance. [I think some day, I will have to remove the defaults in

Re: [R] can't install r package on debian due to linker problem

2004-12-01 Thread Prof Brian Ripley
On Wed, 1 Dec 2004, Robert Sams wrote: hi, my attempt to install the package Hmisc v3.0-1 fails with the message: /usr/bin/ld: cannot find -lfrtbegin collect2: ld returned 1 exit status make: *** [Hmisc.so] Error 1 ERROR: compilation failed for package 'Hmisc' i'm at a loss here. any hints will be

Re: [R] can't install r package on debian due to linker problem

2004-12-01 Thread Jari Oksanen
On Wed, 2004-12-01 at 14:38, Robert Sams wrote: hi, my attempt to install the package Hmisc v3.0-1 fails with the message: /usr/bin/ld: cannot find -lfrtbegin collect2: ld returned 1 exit status make: *** [Hmisc.so] Error 1 ERROR: compilation failed for package 'Hmisc' It is funny to

RE: [R] can't install r package on debian due to linker problem

2004-12-01 Thread Robert Sams
thank you both. i edited the Makeconf file per brian ripley's instruction and all works well. cheers, robert -Original Message- From: Jari Oksanen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 12:59 PM To: Robert Sams Cc: R-News Subject: Re: [R] can't install r package

[R] Re: request for help on statistical applications in pharma

2004-12-01 Thread Vito Ricci
Hi Krishna, I don't have direct exeperience in using statistics in pharma industry, but I know that some notes (in Italian) of prof. Soliani are used in courses taken for Italian Pharma Industries. You can find that at this address: http://www.dsa.unipr.it/soliani/soliani.html I try to

RE: [R] request for help on statistical applications in pharma

2004-12-01 Thread Liaw, Andy
This is off-topic for the list! Anyway, you may find the following useful: http://www.elmo.ch/doc/statistics-in-pharma/ Andy From: neela v Hi all there Can some one who have experience and knowledge in the pharma industry give me broad details on the subject Statistical applications

Re: [R] barplot() using beside=TRUE and the density argument

2004-12-01 Thread Marc Schwartz
On Wed, 2004-12-01 at 10:46 +, michael watson (IAH-C) wrote: Hi I am using barplot() to draw some barplots, with a matrix as the data so that multiple bars are drawn for each data point. I want to use the argument beside=TRUE to juxtapose the bars instead of stacking them. If I

Re: [R] Relative subscripting

2004-12-01 Thread Gabor Grothendieck
And, in general, using the right classes or data structures makes modelling your problem in R much easier. It is surprising that there was an entire discussion on this before Brian brought up the right approach. Prof Brian Ripley ripley at stats.ox.ac.uk writes: : : I've not seen anyone

[R] Manipulating contour plots

2004-12-01 Thread Caroline Houldcroft
Dear R users, I would like to create a filled.contour plot with colour bar and overlay a map. I need to create several of these representing variables with different spatial extents for comparison. When I try to fix the plot area size and axes limits as follows: par(fig=c(0,1.0,0.3125,1.0)

Re: [R] step.gam

2004-12-01 Thread Jari Oksanen
On Wed, 2004-12-01 at 17:09, David Nogués wrote: Dear R-users: Im trying (using gam package) to develop a stepwise analysis. My gam object contains five pedictor variables (a,b,c,d,e,f). I define the step.gam: step.gam(gamobject, scope=list(a= ~s(a,4), b= ~s(b,4), c= ~s(c,4), d=

Re: [R] how to add a legend in a barchart

2004-12-01 Thread Deepayan Sarkar
On Wednesday 01 December 2004 05:43, ronggui wrote: i use #pic 1 library(lattice) barchart(V1~V2,data,panel=function(x,y,...){ panel.barchart(x,y,...) panel.abline(v=6.76,col=red)}, ) to draw a picture.and i want to add a legend to telling others the line vertical is x=6.76.so how should

[R] 2.0.1 compilation problem on Fedora Core 2

2004-12-01 Thread John Logsdon
I have a compilation problem on FC2, 2xXeon box. The following dialogue output from the end of the compilation illustrates: [very large snipping sound ...] * DONE (cluster) begin installing recommended package foreign make[2]: *** [foreign.ts] Error 1 make[2]: Leaving directory

[R] prediction

2004-12-01 Thread Rohan Shah
Hi! I have a dataset of the lifespans (birth/death date) of about 100,000 people. I also have the birth dates of about 1,000,000 people who are still alive. I also have other information for each of these people including faculty,state,year graduated etc. I would like to do some statistical

Re: [R] can't install r package on debian due to linker problem

2004-12-01 Thread Dirk Eddelbuettel
On Wed, Dec 01, 2004 at 01:34:14PM -, Robert Sams wrote: thank you both. i edited the Makeconf file per brian ripley's instruction and all works well. Good to know. Generally speaking, you could also make the leap from Debian stable to testing which does have R 2.0.1 as well as several

Re: [R] 2.0.1 compilation problem on Fedora Core 2

2004-12-01 Thread Prof Brian Ripley
On Wed, 1 Dec 2004, John Logsdon wrote: I have a compilation problem on FC2, 2xXeon box. The following dialogue output from the end of the compilation illustrates: [very large snipping sound ...] * DONE (cluster) begin installing recommended package foreign make[2]: *** [foreign.ts] Error 1

Re: [R] Combined variable names

2004-12-01 Thread Douglas Bates
Richard A. O'Keefe wrote: Tobias Muhlhofer [EMAIL PROTECTED] wrote: I am trying to define a large number of variables through a loop construct. He wants to do for (i in 1:100) { assign(paste(v, i, sep=), something or other...) } This is, of

[R] RE: prediction

2004-12-01 Thread Vito Ricci
Try to use neural network for prediction: see package nnet. Regards Vito you wrote: Hi! I have a dataset of the lifespans (birth/death date) of about 100,000 people. I also have the birth dates of about 1,000,000 people who are still alive. I also have other information for each of these

[R] SVM distance

2004-12-01 Thread Rajdeep Das
Hi, I am using SVM from e1071 package. I am using RBF kernel. I would like to know how I can get d, the perpendicular distance from a datapoint to the hyperplane, that SVM calculates in higher dimensional space to classify it. Although, this is not something that people usually use, but for my

[R] depth constrained cluster

2004-12-01 Thread Emmanuel GANDOUIN
Please could you help me to find a package to apply a depth-constrained cluster analysis on palaeoecological data (in order to zone subfossil diagram)? Thanks, Dr. Emmanuel GANDOUIN Université d'Aix-Marseille 3 Institut Méditerranéen d'Ecologie et de Paléoécologie UMR CNRS 6116 Europôle

[R] Protocol for answering basic questions

2004-12-01 Thread Robert Brown FM CEFAS
I have been following the discussions on 'Reasons not to answer very basic questions in a straightforward way' with interest as someone who is also new to R and has had similar experiences. As such it with sadness that I note that most seem to agree with the present approach to the responses

(Re: [R] lme in R-2.0.0: Problem with lmeControl) and parameter specification

2004-12-01 Thread Pavel Khomski
Hello! Thanks a lot to Douglas Bates for your advice. concerning the lme(...) function i wanted to put four other questions. 1.in the specification of initial values in the pdMat-constructor i probably define a standard deviation (sigma_b) and not a variance (sigma_b^2). For instance

Re: [R] Protocol for answering basic questions

2004-12-01 Thread James Foadi
On Wednesday 01 Dec 2004 4:46 pm, Robert Brown FM CEFAS wrote: Understandable but not a recipe to encourage the use of R by other than experts. The R community needs to decide of they really only want expert statisticians users and make this clear if it is the case. Alternatively if they are

Re: [R] step.gam

2004-12-01 Thread Simon Wood
Dave Roberts discusses R/S-plus (or mgcv/gam package level) gam fitting in ecological context at http://labdsv.nr.usu.edu/splus_R/lab5/lab5.html. You may find some useful hints here, as Dave is partial to the traditional S-plus gam as well. This looks good to me, too. One or two things have

Re: [R] Protocol for answering basic questions

2004-12-01 Thread roger koenker
Maybe it would be helpful to think of R-help as something more than the Oracle of Delphi. Questions, ideally, should be framed in such a way that they might lead to improvements in R: extensions of the code or, more frequently clarifications or extensions of the documentation. Indeed the

RE: [R] Protocol for answering basic questions

2004-12-01 Thread Fowler, Mark
Although I agree that sometimes a response to a question seems rude, and some degree of arrogance asserts itself from time to time (actually appears to cycle), I don't see what in the nature of the commercial S environment rectifies this problem. I've been using S since the late 80's, R for less

[R] how to use print() without column names?

2004-12-01 Thread Hu Chen
Hi all, any guy who knows how to print a data frame without column names printed? I didn't find a parameter in print() function to turn off this. Neither in options(). Thanks in advance. __ [EMAIL PROTECTED] mailing list

RE: [R] Protocol for answering basic questions

2004-12-01 Thread DupliseaD
I have been a member for only a few days but I find the tone of some responses are inappropriate for a list dubbing itself a help list. I also completely understand that traffic needs to be kept at a modest level to keep advanced users interested; therefore, I suggest that a second help list be

Re: [R] Protocol for answering basic questions

2004-12-01 Thread Thomas Lumley
On Wed, 1 Dec 2004, Robert Brown FM CEFAS wrote: I have been following the discussions on 'Reasons not to answer very basic questions in a straightforward way' with interest as someone who is also new to R and has had similar experiences. As such it with sadness that I note that most seem to

Re: [R] how to use print() without column names?

2004-12-01 Thread Thomas Lumley
On Thu, 2 Dec 2004, Hu Chen wrote: Hi all, any guy who knows how to print a data frame without column names printed? I didn't find a parameter in print() function to turn off this. Neither in options(). One option is to use write.table() instead of print(). -thomas

[R] Re: Protocol for answering basic questions

2004-12-01 Thread Rolf Turner
I think that enough bandwidth has been expended on this topic. Many people have attempted, patiently, to explain why the protocol to which the r-help list currently adhers is necessary and close to optimal. The thin-skinned whiners who wish to be told ``Yes, dear, that was an ***excellent***

Re: [R] 2.0.1 compilation problem on Fedora Core 2

2004-12-01 Thread John Logsdon
A useful clue, Brian. Maybe this is the reason as foreign.ts.out contains: * Installing *source* package 'foreign' ... /usr/src/redhat/SOURCES/R-2.0.1/bin/INSTALL: ./configure: /bin/sh: bad interpreter: Permission denied ERROR: configuration failed for package 'foreign' Does this try and

Re: [R] Combined variable names (two concrete suggestions)

2004-12-01 Thread Tiago R Magalhaes
Very interesting topic. What I want to know is *WHY* people are doing this? Here goes my view - I've used many for loops, and each time I realize how stupid that is... AFTER I learned how to avoid it. But it's difficult to avoid them without knowing how to do it. (Monsieur de LaPalice wouldn't

RE: [R] Re: Protocol for answering basic questions

2004-12-01 Thread michael watson \(IAH-C\)
Here here! Getting flamed for asking dumb questions on a public mailing list is all part of growing up and being a man/woman. We've all been there, and quite frankly, even the most basic questions on R-Help get a decent answer from someone, and all for free, so who cares if you get a bit of

Re: [R] Protocol for answering basic questions

2004-12-01 Thread Jari Oksanen
On 1 Dec 2004, at 19:46, [EMAIL PROTECTED] wrote: I have been a member for only a few days but I find the tone of some responses are inappropriate for a list dubbing itself a help list. I also completely understand that traffic needs to be kept at a modest level to keep advanced users

Re: [R] Protocol for answering basic questions

2004-12-01 Thread Duncan Murdoch
On Wed, 1 Dec 2004 16:46:07 -, Robert Brown FM CEFAS [EMAIL PROTECTED] wrote : In the end my experience of r help is that you get what you pay for. I think this statement is very true, but not necessarily in the way you meant it. R and R-help are free in the open source sense, and free in

Re: [R] Re: Protocol for answering basic questions

2004-12-01 Thread Spencer Graves
Our great-great grandchilren as yet unborn may read some of the stupid questions and / or answers that I and perhaps others give from time to time. I'd rather get flamed for saying something stupid in public on this list than to continue to provide substandard service to the people with

RE: [R] [BASIC] Solution of creating a sequence of object names

2004-12-01 Thread John
Thanks a lot, Adai. I am sure that your tip is very useful for those who are not familiar with 'list'. What is good for using this kind of help list is that you can learn 'additional' info and tips from 'kind' users, which you don't usually expect by reading basic documentations. They are by no

[R] chisq.test probabilities method unclear

2004-12-01 Thread Alexander Keller
Hi list, i've got a question about the chisq.test function. in the use of the given probabilities method (p= ...), normally there should be typed in probabilities in the range of 0 to 1 with the absolute sum of 1.0 (r-help) But it is possible to use probabilities than 1. or the sum 1.!

RE: [R] Protocol for answering basic questions

2004-12-01 Thread Baskin, Robert
number.of.years.using.R * runif(1) [1] 1.064863 I waited this many hours before responding:) First, let me say thank you very much to the R team for ...the software ...the help-list ...other intangibles. I am a relatively new R user and I am struggling in my own way to learn R. I follow the

Re: [R] Protocol for answering basic questions

2004-12-01 Thread Spencer Graves
Baskin, Robert wrote: number.of.years.using.R * runif(1) [1] 1.064863 snip After a lot of rambling, my main concerns are: * learning good R programming techniques Apart from the free documentation at www.r-project.org and this list, the following books have been very helpful for

RE: [R] Protocol for answering basic questions

2004-12-01 Thread Henrik Bengtsson
PROBLEM: To many beginners questions are send to the r-help list cluttering up the mailbox making it hard to see real questions. OBJECTIVE: To get fewer beginners questions. CURRENT SOLUTION: Being rude. I don't like the word rude here, but that's the word used in this thread. Will we get less

Re: [R] Manipulating contour plots

2004-12-01 Thread Ray Brownrigg
From: Caroline Houldcroft [EMAIL PROTECTED] Date: 01 Dec 2004 15:16:55 + I would like to create a filled.contour plot with colour bar and overlay a map. I need to create several of these representing variables with different spatial extents for comparison. When I try to fix the plot

Re: [R] chisq.test probabilities method unclear

2004-12-01 Thread Rolf Turner
Alexander Keller wrote: i've got a question about the chisq.test function. in the use of the given probabilities method (p= ...), normally there should be typed in probabilities in the range of 0 to 1 with the absolute sum of 1.0 (r-help) But it is possible to use probabilities than 1. or

RE: [R] Protocol for answering basic questions

2004-12-01 Thread Robert Sams
Experienced R users don't seem to understand how difficult the program can be to new users. Responding that the questioner should read the 'Introduction to R' or a similar document is like answering a question for directions to one's house with 'Buy a map'. from the posting guide: Good

[R] gnls(0 error: invalid variable type

2004-12-01 Thread Yang, Richard
Dear R-helpers; While using gnls() to fit a function Gbht0t.gnls - gnls(h2 ~ Rht(b0, b1, b2, h1,t1, t2), data=gbht10, + params=list(b0 + b1 + b2 ~ Sisp -1), start=c(strssb0,strssb1,strssb2)) I encountered an error: Error in model.frame(formula, rownames, variables,

[R] unbalanced design

2004-12-01 Thread Damián Cirelli
Hi all, I'm new to R and have the following problem: I have a 2 factor design (a has 2 levels, b has 3 levels). I have an object kidney.aov which is an aov(y ~ a*b), and when I ask for model.tables(kidney.avo, se=T) I get the following message along with the table of effects: Design is

RE: [R] Protocol for answering basic questions

2004-12-01 Thread bogdan romocea
I'm also an R beginner. I have asked stupid questions, and received RTFM replies. I believe such replies are _GREAT_, as long as they include a brief reference to what to read, and where. (In some cases searches don't work unless you happen to use the 'right' keywords, and in other cases it may be

Re: [R] unbalanced design

2004-12-01 Thread Peter Alspach
Damián I asked a similar question a few months ago (3 August 2004): temp.aov - aov(S~rep+trt1*trt2*trt3, data=dummy.data) model.tables(temp.aov, type='mean', se=T) Returns the means, but states Design is unbalanced - use se.contrasts for se's which is a little surprising since the design

Re: [R] Combined variable names

2004-12-01 Thread Kjetil Brinchmann Halvorsen
Richard A. O'Keefe wrote: Tobias Muhlhofer [EMAIL PROTECTED] wrote: I am trying to define a large number of variables through a loop construct. He wants to do for (i in 1:100) { assign(paste(v, i, sep=), something or other...) } This is, of

[R] R on Irix 6.5 fails when trying to load external data?

2004-12-01 Thread William Faulk
I've previously installed R on Solaris and everything went fine there. I'm now trying to install on Irix 6.5 (about which, unfortunately, I have less than thorough knowledge) and it is failing. R itself seems to be working okay. Initially, Irix's dumb make program didn't understand some

Re: [R] unbalanced design

2004-12-01 Thread Damián Cirelli
Thanks Peter, I still wonder why it thinks it's unbalanced... The se's of the contrasts are different than the se's of the means, which is the point of se=T in model.tables (type means) I would have thought. No big deal though, the following code makes a nice table with the se's of the means

RE: [R] unbalanced design

2004-12-01 Thread Berton Gunter
This is a standard gotcha in linear models. Gets me, too. Try ?C and ?contr.sum to help you understand. Also Venables's and Ripley's MASS 4 , section 6.2 gives a short not too technical summary; any linear models text will provide a more complete (and more technical) discussion. -- Bert Gunter

[R] rank in descending order?

2004-12-01 Thread Jose Quesada
Hi, Is there any simple solution to get ranks in descending order? Example, a - c(10, 98, 98, 98, 99, 100) r - rank(a, ties.method=average) produces 1 3 3 3 5 6 I would want this instead: 6 5 3 3 3 1 Note that reversing r doesn't work but in small examples. Thanks, -Jose -- [EMAIL

[R] SJava

2004-12-01 Thread Yasser El-Zein
Is theer an SJava mailing list? I have the following SJava related question: I am calling a Java methos in this mannor: a - .Java(className, methodName) print(done) As defined, the mother returns an Object in some case this Object points to an array of 100,000 Strings. The method prints a

Re: [R] rank in descending order?

2004-12-01 Thread Damián Cirelli
Try this: r - sort(rank(a, ties.method=average), decreasing=T) Jose Quesada wrote: Hi, Is there any simple solution to get ranks in descending order? Example, a - c(10, 98, 98, 98, 99, 100) r - rank(a, ties.method=average) produces 1 3 3 3 5 6 I would want this instead: 6 5 3 3 3 1 Note that

[R] points plotting

2004-12-01 Thread m p
Hello, I use points(a,b,pch=20,col=black) or pch=19 but in both cases bullets are too large. Is the a way to decrease the size of the bullet - but be larger than a period. Thanks, Mark __ [EMAIL PROTECTED] mailing list

Re: [R] Combined variable names

2004-12-01 Thread Peter Dalgaard
Kjetil Brinchmann Halvorsen [EMAIL PROTECTED] writes: This is, of course, a FAQ. It's such a FAQ that I must have seen it once a day for the last several days. What I want to know is *WHY* people are doing this? Bad habits from less expressive languages? Actually, from less _regular_

RE: [R] chisq.test probabilities method unclear

2004-12-01 Thread Ted Harding
On 01-Dec-04 Alexander Keller wrote: Hi list, i've got a question about the chisq.test function. in the use of the given probabilities method (p= ...), normally there should be typed in probabilities in the range of 0 to 1 with the absolute sum of 1.0 (r-help) But it is possible to use

Re: [R] points plotting

2004-12-01 Thread Marc Schwartz
On Wed, 2004-12-01 at 14:39 -0800, m p wrote: Hello, I use points(a,b,pch=20,col=black) or pch=19 but in both cases bullets are too large. Is the a way to decrease the size of the bullet - but be larger than a period. Thanks, Mark Try using the 'cex' argument, which is described in the

Re: [R] points plotting

2004-12-01 Thread Olaf Mersmann
Hi m p, m p wrote: Hello, I use points(a,b,pch=20,col=black) or pch=19 but in both cases bullets are too large. Is the a way to decrease the size of the bullet - but be larger than a period. Try ?plot.default and read the entry for 'cex' HTH Olaf __

Re: [R] R on Irix 6.5 fails when trying to load external data?

2004-12-01 Thread Peter Dalgaard
William Faulk [EMAIL PROTECTED] writes: I've previously installed R on Solaris and everything went fine there. I'm now trying to install on Irix 6.5 (about which, unfortunately, I have less than thorough knowledge) and it is failing. R itself seems to be working okay. Initially, Irix's

Re: [R] how to use print() without column names?

2004-12-01 Thread Kjetil Brinchmann Halvorsen
Hu Chen wrote: Hi all, any guy who knows how to print a data frame without column names printed? I didn't find a parameter in print() function to turn off this. Neither in options(). Thanks in advance. __ [EMAIL PROTECTED] mailing list

Re: [R] Combined variable names (two concrete suggestions)

2004-12-01 Thread Douglas Bates
Tiago R Magalhaes wrote: For loops are conceptually very easy to understand. Lists are not easy to understand (why list[[1]] instead of list[1]? it's not completely intuitive) . I try to explain it as comparable to the difference between a subset that consists of one element (the [ function

Re: [R] Protocol for answering basic questions

2004-12-01 Thread Carlos Javier Gil Bellosta
Here we are facing two problems: 1) Traffic at the r-help list should be kept at a reasonable level lest it becomes completely unmanageable and un-r-helpful. 2) People will continue to misread, overlook or disregard the manuals and come up with questions that many others will consider silly.

Re: [R] A possible way to reduce basic questions

2004-12-01 Thread Jonathan Baron
On 12/03/04 20:48, Jim Lemon wrote: I think this program or something similar could produce a regularly updated list of functions available on CRAN, and that list would be easy enough to search to encourage anyone who was looking for a function to try it. My search site (below) also allows

[R] dropping rows

2004-12-01 Thread Tobias Muhlhofer
Hi! Sorry for asking a trivial questions, but I can't seem to figure this out. I have a dataframe called master containing 30-odd variables. In this dataframe, I have observations across these 30 variables from 1930 to 2003 (I've made a year variable). How can I drop all rows for which the year

Re: [R] A possible way to reduce basic questions

2004-12-01 Thread Peter Dalgaard
Jim Lemon [EMAIL PROTECTED] writes: One theme of such questions is I want to do this, is there a function to do it? These usually receive the: ?something reply if the respondent is in a good mood. Notice however, that any respondent worth his salt usually checks whether the relevant

RE: [R] dropping rows

2004-12-01 Thread Liaw, Andy
See ?subset, especially the example there. (I'm surprised this function isn't in R-intro...) Andy From: Tobias Muhlhofer Hi! Sorry for asking a trivial questions, but I can't seem to figure this out. I have a dataframe called master containing 30-odd variables. In this dataframe,

Re: [R] R on Irix 6.5 fails when trying to load external data?

2004-12-01 Thread William Faulk
Peter Dalgaard wrote: You did clean up and start from scratch after building gmake, right? Yup. The best idea I can come up with is that you might have a dud install command sitting somewhere and getting in the way. I believe this has tripped IRIX users before, but I could be wrong. You seem to

Re: [R] dropping rows

2004-12-01 Thread Douglas Bates
Tobias Muhlhofer wrote: Hi! Sorry for asking a trivial questions, but I can't seem to figure this out. I have a dataframe called master containing 30-odd variables. In this dataframe, I have observations across these 30 variables from 1930 to 2003 (I've made a year variable). How can I drop all

Re: [R] dropping rows

2004-12-01 Thread Peter Dalgaard
Tobias Muhlhofer [EMAIL PROTECTED] writes: Hi! Sorry for asking a trivial questions, but I can't seem to figure this out. I have a dataframe called master containing 30-odd variables. In this dataframe, I have observations across these 30 variables from 1930 to 2003 (I've made a year

Re: [R] dropping rows

2004-12-01 Thread Tobias Muhlhofer
Thanks. The problem is that there is extremely little on dataframes or matrices in An Intro to R, which I did read and I frankly don't know where else to go. Once I know a function like subset() exists, I can then read the help files on it and that's fine, but I would never dream this function

Re: [R] dropping rows

2004-12-01 Thread Douglas Bates
Tobias Muhlhofer wrote: Thanks. The problem is that there is extremely little on dataframes or matrices in An Intro to R, which I did read and I frankly don't know where else to go. Once I know a function like subset() exists, I can then read the help files on it and that's fine, but I would

RE: [R] A possible way to reduce basic questions

2004-12-01 Thread Gabor Grothendieck
Jim Lemon bitwrit at ozemail.com.au writes: I have been thinking about how to reduce the number of basic questions that elicit the ...ahem... robust debate that has occurred about how to answer The traffic on r-help could be reduced by creating a second list where more elementary questions

RE: [R] dropping rows

2004-12-01 Thread Thomas Lumley
On Wed, 1 Dec 2004, Liaw, Andy wrote: See ?subset, especially the example there. (I'm surprised this function isn't in R-intro...) Much of R-intro was written as an introduction to S before R existed and later translated, so there are quite a few things that aren't in it but would be in a guide

  1   2   >