Re: [R] my own function given to lapply

2004-02-26 Thread Marc Schwartz
in match.fun(FUN) : Object threshold not found thanks for help cheers chris Perhaps the missing first 'h' in the 'treshold' function definition would be the problem? Alternativey, you need to use: sapply(mylist[, , 3], treshold) HTH, Marc Schwartz

Re: [R] Is there a way to deactivate partial matching in R?

2004-02-27 Thread Marc Schwartz
... :-) Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] stripchart and axes

2004-02-29 Thread Marc Schwartz
settings par(old.par) See ?par for more information on the above graphic parameters. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org

RE: [R] Proportions again

2004-02-29 Thread Marc Schwartz
of a single vector with repeating values (such as Carlos' example) and will generate an error message if a single vector is passed. In that scenario, as many folks have already recommended, the combination of table() and prop.table() would be preferred. HTH, Marc Schwartz

RE: [R] Proportions again

2004-02-29 Thread Marc Schwartz
On Sun, 2004-02-29 at 18:27, Gabor Grothendieck wrote: That's true; however, CrossTable(x,x) does give the desired counts and proportions in the margin line at the bottom. See the row labelled Column Total in the following example based on Carlos' vector: sex-c(1,2,2,1,1,2,2,2)

RE: [R] Proportions again

2004-02-29 Thread Marc Schwartz
On Sun, 2004-02-29 at 19:26, Gabor Grothendieck wrote: I agree its overkill but prop.table generalizes to mulitple dimensions, in which case it becomes comparable to CrossTable, so I thought it was worth mentioning. By the way, as the author of CrossTable, perhaps you might might consider

Re: [R] row.names are dropped when extracting one column ?

2004-03-02 Thread Marc Schwartz
, Ryszard Please see R-FAQ 7.7: Why do my matrices lose dimensions? HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Publication quality graphs

2004-03-03 Thread Marc Schwartz
to define your page size. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] A file manipulation question

2004-03-03 Thread Marc Schwartz
3 03 2 See ?aggregate for more information. By default, aggregate() names the function derived column as 'x'. You can of course rename it as you need. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman

Re: [R] A file manipulation question

2004-03-04 Thread Marc Schwartz
--- Date: Wed, 03 Mar 2004 21:46:27 -0600 From: Marc Schwartz [EMAIL PROTECTED] To: Greg Blevins [EMAIL PROTECTED] Cc: R-Help [EMAIL PROTECTED] Subject: Re: [R] A file manipulation question [...] aggregate(df$Contract, list(ID = df$ID), max) ID x 1 01 1 2 02 3 3 03

Re: [R] pausing a script

2004-03-05 Thread Marc Schwartz
! Any help appreciated. Cheers, Sam. See ?par specifically for par(ask), which enables you to do exactly what you wish. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Center labels on a boxplot

2004-03-10 Thread Marc Schwartz
, SPP3,.) # Andy, Your boxplots are at (1:3 - 0.2) and (1:3 + 0.2). Thus, the centers of the pairs are at 1:3. You can use: mtext(side = 1, text = c(SPP1, SPP2, SPP3), at = 1:3, line = 2) To place the pair labels in the centers along the x axis. HTH, Marc

Re: [R] grep

2004-03-12 Thread Marc Schwartz
6 6 6 7 7 7 7 7 7 7 7 7 7 8 [81] 8 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 [97] 9 9 9 1 HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org

Re: [R] a replacement problem

2004-03-12 Thread Marc Schwartz
: help.search(replace) ;-) See ?replace for more info and there is also the grep family for complex search and replace operations based on regex. See ?grep. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman

Re: [R] creating a ps. file

2004-03-15 Thread Marc Schwartz
information. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] setting x-y axis at origin

2004-03-15 Thread Marc Schwartz
with the help for par. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Frequency table

2004-03-17 Thread Marc Schwartz
the intervals to the right side of the range. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] remove pairs of missing values

2004-03-17 Thread Marc Schwartz
,] 4 4 [4,] 5 5 See ?complete.cases for more information. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Substitute for xlim and usr in boxplot(...) bxp(...)?

2004-03-17 Thread Marc Schwartz
. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] (no subject)

2004-03-17 Thread Marc Schwartz
the 'at' values to pair these up with the above boxplot(x[, c(2, 4, 6, 8, 10)], at = 1:5 + 0.2, boxwex = 0.2, add = TRUE, xaxt = n) Not sure if that is what you are looking for, but it might provide some food for thought. HTH, Marc Schwartz

Re: [R] asp=1 and aspect ratio

2004-03-19 Thread Marc Schwartz
region is square par(usr) [1] 0 21 0 21 Here is a PS plot generated with: postscript(width = 5, height = 5) plot(x, y, xlim = lims, ylim = lims, xaxs = i, yaxs = i) abline(0, 1) dev.off() http://www.MedAnalytics.com/Rplots.ps HTH, Marc Schwartz

Re: [R] asp=1 and aspect ratio

2004-03-19 Thread Marc Schwartz
On Fri, 2004-03-19 at 09:29, Marc Schwartz wrote: On Fri, 2004-03-19 at 09:06, Robin Hankin wrote: Hi everyone I want a square scatterplot with abline(0,1) going exactly through the SW and NE corners. By square I mean that the plotting region is exactly square, and that the axis

Re: [R] Reading Data

2004-03-19 Thread Marc Schwartz
, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] minimum values

2004-03-20 Thread Marc Schwartz
?apply for more information HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] timing a function

2004-03-20 Thread Marc Schwartz
of the debugging tools working with ESS. See section 6 (R and Emacs) in the main R FAQ: http://cran.r-project.org/doc/FAQ/R-FAQ.html#R%20and%20Emacs HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] Operating on windows of data

2004-03-20 Thread Marc Schwartz
truly need to resort to looping--I think so? Any other clever thoughts? Thanks, Sean See the running() function in the 'gregmisc' package on CRAN or the filter() function in package 'ts', which is part of the standard R installation. HTH, Marc Schwartz

Re: [R] Setting the 'fig' graphic parameter

2004-03-22 Thread Marc Schwartz
) par(new = TRUE) par(fig=c(0.7, 1, 0, 0.5)) plot(x,y) That should get you what you want. Also, take a look at the layout() function (?layout), which enables you to define sections within the overall plotting area as do par(mfcol) and par(mfrow). HTH, Marc Schwartz

Re: [R] comprehensive documentation list of R probability functions

2004-03-22 Thread Marc Schwartz
(Probability Distributions) in An Introduction to R. Also help.search(distribution) will provide a keyword listing for your installed packages (which of course would not include add-on packages from CRAN, BioC, etc.) HTH, Marc Schwartz __ [EMAIL PROTECTED

Re: [R] useR! 2004 program online

2004-03-23 Thread Marc Schwartz
regards, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] optimal hardware for computations in R?

2004-03-23 Thread Marc Schwartz
are likely to be situationally specific and not an all or nothing gain. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

Re: [R] useR! 2004 program online

2004-03-23 Thread Marc Schwartz
On Tue, 2004-03-23 at 08:09, David James wrote: Marc, I agree with you 100% -- they've done a superb job! Unfortunately you sent the email to the wrong David:-) David, My e-mail went openly to r-help, which is why you got it. It was a public congratulations. :-) Best regards, Marc

Re: [R] Chambers Reference

2004-03-23 Thread Marc Schwartz
Hall 1993 paperback edition, as opposed to the CRC Press hardcover edition. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

Re: [R] par() usage

2004-03-23 Thread Marc Schwartz
plot. You might want to look at ?par for examples of how to use the sequence of saving and restoring the non-readonly parameters. It is typically done when you will be modifying certain plot parameters and wish to restore them to a default state later when you are done. HTH, Marc Schwartz

Re: [R] Error in 'legend' help?

2004-03-25 Thread Marc Schwartz
'.) HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Error in 'legend' help?

2004-03-25 Thread Marc Schwartz
On Thu, 2004-03-25 at 09:59, Prof Brian Ripley wrote: On Thu, 25 Mar 2004, Marc Schwartz wrote: So the help _should_ read: bg: the background color for the legend box. (Note that this is only used if 'bty != n'.) and does so read in 1.9.0 beta: I fixed this on Jan 2

Re: [R] How to add a top X-axis with a different logarithmic scale?

2004-03-25 Thread Marc Schwartz
be: x - c(1.1 * 1:4, 25 * 1:5) / 50e+03 y - c(0.15 * 1:4, 0.6 + 0.05 * 1:5) old.par - par(no.readonly=TRUE) xlim - range(x) ylim - c(0, 1) plot(x, y, type = l, log = x, xlim = xlim, ylim = ylim) axis(3, labels = axTicks(3) * 4e06) par(old.par) Does that get you what you want? HTH, Marc Schwartz

Re: [R] How to add a top X-axis with a different logarithmic scale?

2004-03-26 Thread Marc Schwartz
On Thu, 2004-03-25 at 17:42, Itay Furman wrote: Thanks, Marc, for your reply. Happy to help. I didn't explain myself well, but thanks to you I think I could phrase my question better. I want to be able to compute new tick-positions for the top X-axis. Why new ticks positions? See in

Re: [R] (marginal) dot diagram

2004-03-26 Thread Marc Schwartz
. In that case, it is creating a scatterplot with marginal histograms. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] With which version of XFree86 can R compile?

2004-03-26 Thread Marc Schwartz
, that premise would need to be validated. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Where: package licenses

2004-03-30 Thread Marc Schwartz
) ... Some of the packages are released under other licenses or have restrictions on commercial use or distribution. Read each one carefully. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] Removing leading and trailing spaces (string manipulation)

2004-03-31 Thread Marc Schwartz
information. HTH, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] how to import such data to R?

2005-10-15 Thread Marc Schwartz
arizona state NA 0 NA HTH, Marc Schwartz __ 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] how to import such data to R?

2005-10-15 Thread Marc Schwartz
On Sat, 2005-10-15 at 11:43 -0500, Marc Schwartz wrote: There may be an easier way, but here is one possible approach: First, use scan to read in the data. Set the 'what' argument to a list of atomic data types, based upon your specs above. Also, set the 'na.names' argument to '.'. Ack

Re: [R] generating response curves

2005-10-15 Thread Marc Schwartz
, Marc Schwartz __ 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] The behavior of match function

2005-10-20 Thread Marc Schwartz
result. Thus the use of isTRUE() helps here: isTRUE(all.equal(x, y)) [1] FALSE You should also read R FAQ 7.31 Why doesn't R think these numbers are equal?. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] Generalised rbind/cbind

2005-10-21 Thread Marc Schwartz
Plate and Richard Heiberger. HTH, Marc Schwartz __ 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] Basic: setting resolution and size of an R graphic

2005-10-25 Thread Marc Schwartz
program to do so for other graphics: convert test.pdf -resize 300x300 out.pdf then out.pdf looks rather poor (pixelly). The original image is too big. ANy ideas? Thanks a lot,Peter Am Mo, 24.10.2005, 22:53, schrieb Marc Schwartz (via MN): On Mon, 2005-10-24 at 22:32 +0200, Dr. med. Peter

Re: [R] Can anyone please tell me how to strip the white spaces from a character vector?

2005-10-25 Thread Marc Schwartz
(ABM , AFCE , AG , ATG ) a [1] ABM AFCE AGATG a.new - sub(' +$', '', a) a.new [1] ABM AFCE AG ATG Also, if this data was generated using read.table() or one of it's variants, note the use of the 'strip.white' argument in ?read.table. HTH, Marc Schwartz

Re: [R] 3d bar plot

2005-10-28 Thread Marc Schwartz
. In general, 3d barplots are a bad way to present data (almost as bad as 3d exploding pie charts...) More information on 'rgl' is here: http://rgl.neoscientists.org and is available via CRAN. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list

Re: [R] axis scaling problem

2005-10-28 Thread Marc Schwartz
for the rotated labels. 4. See R FAQ 7.27 How can I create rotated axis labels? which is a method to enable axis labels rotated to something between horizontal and vertical (ie. 45 degrees). HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list

Re: [R] multiple graphs in the same ps file ?

2005-10-28 Thread Marc Schwartz
?postscript the 'append' argument is _disregarded_. Please review the help page more carefully. If you want more than one plot per PS file, do not use dev.off() between plots: postscript(file=test_graph.eps, onefile = TRUE) plot(1:5) barplot(1:5) dev.off() HTH, Marc Schwartz

Re: [R] multiple graphs in the same ps file ? -- with ref.

2005-10-28 Thread Marc Schwartz
On Fri, 2005-10-28 at 14:52 +0200, Florence Combes wrote: Sorry I put there the ref. : I am using R Version 2.0.1 on a Debian. Florence. Definitely time to upgrade, as you are several versions behind. The current version is 2.2.0. Marc __

Re: [R] multiple graphs in the same ps file ?

2005-10-28 Thread Marc Schwartz
On Fri, 2005-10-28 at 08:01 -0500, Marc Schwartz wrote: On Fri, 2005-10-28 at 14:48 +0200, Florence Combes wrote: Dear all, I would like to be able to store multiple graphs in one ps or pdf file, but I cannot achieve this only if I don't shut the postscript device between the graphs

Re: [R] Downloading zip files

2005-10-30 Thread Marc Schwartz
takes about 650 Mb. HTH, Marc Schwartz __ 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] Greek letters in plots

2005-11-01 Thread Marc Schwartz
this: cor2 - 0.74 plot(1:5) title(bquote(rho == .(cor2))) See ?plotmath and ?bquote for more information, noting the use of the .(Variable) syntax for variable substitution. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Adding Two Vectors (was: no subject)

2005-11-05 Thread Marc Schwartz
it today] Please use an informative subject. What's wrong with just adding the two vectors, if the rules are as simple as you indicate? A [1] 0 1 0 0 1 1 0 0 B [1] 0 0 0 1 0 1 1 1 C - A + B C [1] 0 1 0 1 1 2 1 1 HTH, Marc Schwartz __ R-help

Re: [R] Hypatia?? [Was: Adding Two Vectors (was: no subject)]

2005-11-05 Thread Marc Schwartz
On Sat, 2005-11-05 at 15:15 +, Ted Harding wrote: On 05-Nov-05 Marc Schwartz wrote: On Tue, 2005-11-01 at 12:39 +0200, Erez wrote: Hi I need an advise if any one can help me. i have mass of data in 2 array A and B: A = 0 1 0 0 1 1 0 0 B = 0 0 0 1 0 1 1 1 and i have 3 rules

Re: [R] Hypatia?? [Was: Adding Two Vectors (was: no subject)]

2005-11-05 Thread Marc Schwartz
On Sat, 2005-11-05 at 17:52 +0100, Martin Maechler wrote: Marc == Marc Schwartz [EMAIL PROTECTED] on Sat, 05 Nov 2005 09:20:40 -0600 writes: Marc On Sat, 2005-11-05 at 15:15 +, Ted Harding wrote: On 05-Nov-05 Marc Schwartz wrote: On Tue, 2005-11-01 at 12:39 +0200

Re: [R] sort table

2005-11-05 Thread Marc Schwartz
(colSums(failcondtab)))] 31 12 41 17 14 13 11 30 6 39 26 15 gave up 8 1 2 0 1 1 1 0 0 0 0 0 wrong4 7 2 4 3 3 3 3 3 1 1 1 See ?order, ?rev and ?colSums. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https

Re: [R] sort table

2005-11-05 Thread Marc Schwartz
On Sat, 2005-11-05 at 11:44 -0600, Marc Schwartz wrote: On Sat, 2005-11-05 at 18:04 +0100, Claus Atzenbeck wrote: Hi, I have a data frame named questions that I use to get a subset and then a table: failcondonly - subset(questions, errorreason==condition) failcondtab - table

Re: [R] Problem with installing home-made package under Windoze.

2005-11-05 Thread Marc Schwartz
to remove any .RData files that are getting loaded on startup and recreate your package(s) in a clean R session before further attempts at installation. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] dataTable manipulation in R

2005-11-06 Thread Marc Schwartz
and/or where I only want a subset of the columns. HTH, Marc Schwartz On Sun, 2005-11-06 at 17:44 +, Adaikalavan Ramasamy wrote: Check out the R Data Import/Export manual, especially http://cran.r-project.org/doc/manuals/R-data.html#DBI-_002f-RMySQL and the RMySQL package. On Sun, 2005-11-06

Re: [R] How can I assign an argument to transfer whether by ref or by value?

2005-11-06 Thread Marc Schwartz
, which I just noted that Gabor has pointed out in his reply. HTH, Marc Schwartz On Sun, 2005-11-06 at 17:48 +, Adaikalavan Ramasamy wrote: I do not understand what your question is. Can you clarify with an example or analogies to other programming language. my.fun - function(x, y=1){ x

Re: [R] question about R graphics-example plot attached

2005-11-08 Thread Marc Schwartz
axis at data values axis(1, at = data$pos) Does that get you closer to what you intended? HTH, Marc Schwartz __ 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

Re: [R] Title and axis

2005-11-09 Thread Marc Schwartz
() call to resolve that issue, as the defaults for your system are not large enough. BTW, no need to post twice. :-) HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] matrix subset

2005-11-12 Thread Marc Schwartz
wish to place more than one R statement on a single line. HTH, Marc Schwartz __ 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] discontinuous y-axis (ordinate with a -/ /-)

2005-11-17 Thread Marc Schwartz
HTH, Marc Schwartz __ 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] [package concord] seeking maintainer

2005-11-18 Thread Marc Schwartz
] said: 550 5.1.6 | recipient no longer on server: [EMAIL PROTECTED] (in reply to RCPT TO | command) ` TIA Regards Patrick A quick search of this month's r-help archive reveals: [EMAIL PROTECTED] HTH, Marc Schwartz __ R

Re: [R] Crop white border for PDF output

2005-11-22 Thread Marc Schwartz
) barplot(1:5) barplot(1:5) dev.off() HTH, Marc Schwartz __ 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] Chi-squared test

2005-11-24 Thread Marc Schwartz
. HTH, Marc Schwartz snip __ 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] adding variables to a data set/combining two data sets

2005-11-24 Thread Marc Schwartz
?merge which performs a SQL join type operation. HTH, Marc Schwartz P.S. To R Core: help.search(join) does not seem to return merge(), which would likely be helpful here. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Chi-squared test

2005-11-24 Thread Marc Schwartz
On Thu, 2005-11-24 at 18:50 -0700, P Ehlers wrote: Marc Schwartz wrote: On Thu, 2005-11-24 at 21:55 +, Ted Harding wrote: On 24-Nov-05 P Ehlers wrote: Bianca Vieru- Dimulescu wrote: Hello, I'm trying to calculate a chi-squared test to see if my data are different from

Re: [R] merging with aggregating

2005-12-06 Thread Marc Schwartz
9 18 0 10 10 5 1 11 11 7 1 12 12 0 1 13 13 2 0 See ?merge and ?rowSums for more information. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http

Re: [R] Plot

2005-12-07 Thread Marc Schwartz
to i will provide exact axis ranges. Note the difference between: plot(0:5, 0:5) and plot(0:5, 0:5, xaxs = i, yaxs = i) See ?par for more information. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] retrieving p-values in lm

2005-12-09 Thread Marc Schwartz
$fstatistic[1], x$fstatistic[2], x$fstatistic[3], lower.tail = FALSE) value 0.01368545 x - lm.res.2 pf(x$fstatistic[1], x$fstatistic[2], x$fstatistic[3], lower.tail = FALSE) value 0.0461472 HTH, Marc Schwartz __ R-help

Re: [R] odd error

2005-12-10 Thread Marc Schwartz
and forth. I am guessing that your initial error problem is perhaps related to something in the line wrapping of the code, where the call to quartz() on Linux is not being properly commented out and thus is actually called by the R interpreter. HTH, Marc Schwartz

Re: [R] Merging lists on common key (was no subject)

2005-12-14 Thread Marc Schwartz
information. HTH, Marc Schwartz __ 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] X11 png jpeg cledit false when running from script

2005-12-14 Thread Marc Schwartz
R FAQ 7.19 How do I produce PNG graphics in batch mode?, which covers the above. HTH, Marc Schwartz __ 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

Re: [R] Delete missing values

2005-12-14 Thread Marc Schwartz
: GC2 - GC[complete.cases(GC), ] An alternative is to use na.omit() as follows: GC2 - na.omit(GC) See ?complete.cases and ?na.omit for more information. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] Hmisc latex function

2005-12-16 Thread Marc Schwartz
on the 'download' link for version 1.14 at the top of the page. You can save the updated code to a text file and then source() it into a R session for the time being. HTH, Marc Schwartz On Thu, 2005-12-15 at 15:53 -0600, Paul Johnson wrote: Does anybody suggest a work-around this problem? pj

Re: [R] How to reverse the sequence of axis Y ??

2005-12-17 Thread Marc Schwartz
, Marc Schwartz On Sat, 2005-12-17 at 18:04 +0100, Kristel Joossens wrote: Hello Klebyn, It might be that a better solution exists, but here is something that might help you. (I used that all y's are positive!) R maxy=ceiling(max(y)) R plot(x,maxy-y,axes=FALSE) R axis(1) R axis(2,0:maxy

Re: [R] help on barplots

2005-12-19 Thread Marc Schwartz
= TRUE) Note also some efficiencies in the specification of the colors (which will be recycled), names.arg (presuming that the '2' should be there twice) and density in the second call using rep(). HTH, Marc Schwartz __ R-help@stat.math.ethz.ch

Re: [R] x axis

2005-12-20 Thread Marc Schwartz
axis(1, at = seq(0, 172, 6), cex.axis = 0.5) HTH, Marc Schwartz __ 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] Split graph labels in 2 levels

2005-12-29 Thread Marc Schwartz
, at = seq(0, 1000, 100), labels = NA) # Now do the labels mtext(1, at = seq(0, 1000, 100), text = x.lab, line = 2) See ?axis, ?paste and ?mtext for more information. You might also want to look at R FAQ 7.27 on rotating axis labels, depending upon your requirements. HTH, Marc Schwartz

Re: [R] Importing Genstat files into R

2005-12-29 Thread Marc Schwartz
into R. HTH, Marc Schwartz On Thu, 2005-12-29 at 15:15 +0100, justin bem wrote: I dont know Genstat, but I if possible to export you file to text or other readable format in foriegn why not do it ? --- Graham Smith [EMAIL PROTECTED] a écrit : Does anyone know if there is a package

Re: [R] Count or summary data

2005-12-30 Thread Marc Schwartz
1 2 2 1 -- INDICES: 0.1 -1 0 1 2 2 1 tapply(te.Ce[, 1], te.Ce[, 2], table) $0 -1 1 2 3 $0.05 -1 0 1 2 2 1 $0.1 -1 0 1 2 2 1 See ?table, ?by and ?tapply for more information. HTH, Marc Schwartz

Re: [R] Error in X11(paste(png::, filename, sep = ), width, height, pointsize unable to start device PNG

2005-12-30 Thread Marc Schwartz
to Fedora in the near future (if you want to stay with RH), since the FL folks can drop support for RH9 at any time, leaving you vulnerable. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] A difficulty with boot package

2005-12-30 Thread Marc Schwartz
. There are important considerations if your replicates are sized less than the original sample size, so I would not do this lightly and would recommend securing a copy of DH to cover some of this area. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch

Re: [R] Error in X11(paste(png::, filename, sep = ), width, height, pointsize unable to start device PNG

2005-12-30 Thread Marc Schwartz
On Sat, 2005-12-31 at 12:30 +1100, paul sorenson wrote: Marc Schwartz wrote: ... On a side note, RH9 is a fairly dated and EOL'd distribution, with security updates and bug patches only provided by the Fedora Legacy folks (http://fedoralegacy.org). You should consider upgrading to Fedora

Re: [R] S3 vs. S4

2006-01-01 Thread Marc Schwartz
. ISBN 0-387-98503-4. AKA The Green Book 2. William N. Venables and Brian D. Ripley. S Programming. Springer, 2000. ISBN 0-387-98966-8. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] all possible combinations of list elements

2006-01-03 Thread Marc Schwartz
. See ?expand.grid expand.grid(P) A B Y 1 CS 1 4 2 CX 1 4 3 CS 2 4 4 CX 2 4 5 CS 3 4 6 CX 3 4 7 CS 4 4 8 CX 4 4 9 CS 1 9 10 CX 1 9 11 CS 2 9 12 CX 2 9 13 CS 3 9 14 CX 3 9 15 CS 4 9 16 CX 4 9 HTH, Marc Schwartz __ R-help@stat.math.ethz.ch

Re: [R] newbie where to look question

2006-01-03 Thread Marc Schwartz
on the differences between R and S-PLUS. Finally, thanks to Andy Liaw and Jon Baron, there is there RSiteSearch() function, which will enable you to search the e-mail list archives and documentation online from within an R session. See ?RSiteSearch. HTH, Marc Schwartz

Re: [R] Questions about cbind

2006-01-03 Thread Marc Schwartz
can have more than one. Matrix V1 V2 1 A 1 2 B 2 3 C 3 merge(Frame, Matrix, by = V1) V1 V2.x V2.y 1 A 101 2 B 402 3 C 203 HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] ylim problem in barplot

2006-01-05 Thread Marc Schwartz
, Marc Schwartz __ 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] Ordering boxplot factors

2006-01-05 Thread Marc Schwartz
: boxplot(count ~ factor(spray, levels = names(med)), data = InsectSprays, col = lightgray) So...technically two lines of code. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] some EPS rotated in journal preview

2006-01-18 Thread Marc Schwartz
). If the above does not help, please provide a reproducible example of the plot code and what you are using for the manuscript. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Coercing a list to integer?

2006-01-18 Thread Marc Schwartz
additional details on what it is you are trying to do here and we can attempt to offer more specific guidance. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http

Re: [R] command in survival package

2006-01-20 Thread Marc Schwartz
appears as Linda posted. However, there is an errata document here: http://www.crcpress.com/e_products/downloads/download.asp?cat_no=C4088 which shows the corrected text as: aml1 - aml[aml$group==1,] # Maintained group only esf.fit - survfit(Surv(aml1$weeks,status) ~ 1) HTH, Marc Schwartz

Re: [R] command in survival package

2006-01-23 Thread Marc Schwartz
corrections above are not required. Hope those clarifications help. Marc Schwartz __ 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] Distance between axis and x.lab

2006-01-24 Thread Marc Schwartz
by the 'ann', 'axes', 'xaxt' and 'yaxt' arguments to skip other components of the plot such as titles and axes. See ?plot.default, ?title, ?axis, ?mtext and ?text for more information. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https

<    3   4   5   6   7   8   9   10   11   12   >