[R] Latex editor recommendations

2006-10-18 Thread Tom Backer Johnsen
This question is not oriented towards R, but is posted here because I have the impression that there are at least some Latex users among the contributors. The question is: What editors for Latex are to be recommended? I have located one: http://www.latexeditor.org/ What other alternatives

Re: [R] Review process for new packages

2006-10-18 Thread Hans-Peter
2006/10/18, Anupam Tyagi [EMAIL PROTECTED]: Although, this is a sensitive issue, it is unfortunate that such review (or comment, if that is a more suitable word) process is not available at R. Matlab has a nice system with reviews and metrics. See e.g.

[R] Redhat compilers and lme4 with R-2.4.0

2006-10-18 Thread Patrick Connolly
I've tried unsuccessfully to install lme4 on two different Redhat systems but I've not noticed anything on this list to indicate anyone else has had similar problems. * Installing *source* package 'lme4' ... ** libs gcc -I/usr/local/R-2.4.0/include -I/usr/local/R-2.4.0/include

[R] Calculation of Eigen values.

2006-10-18 Thread Arun Kumar Saha
Dear all R users, Can anyone tell me to calculate Eigen value of any real symmetric matrix which algorithm R uses? Is it Jacobi method ? If not is it possible to get explicit algorithm for calculating it? Thanks and regards, Arun [[alternative HTML version deleted]]

Re: [R] Multiple histograms in one plot

2006-10-18 Thread David Barron
I suspect that mar doesn't work with split.screen. You could try using mfrow instead: par(mar=c(1,1,1,1),mfrow=c(5,4)) for (i in 1:20) hist(rnorm(100),main=,cex.axis=.8) With margins this small, though, you won't be able to see the axis annotation for the left axes of the left column or the

Re: [R] Multiple histograms in one plot

2006-10-18 Thread Stefan Grosse
Have a look at the lattice package. It is the best choice for such a task imho. Johann Hibschman schrieb: Hi all, I'm trying to plot multiple histograms in one plot (cross-validation values of model parameters), but I cannot seem to reduce the margins enough to fit as many of them in as I

Re: [R] Latex editor recommendations

2006-10-18 Thread Stefan Grosse
For LaTeX I use the winedt editor: http://www.winedt.com which is extremely powerful and there exists an add-on for the use with R (but I prefer using Tinn-R for R). Winedt is shareware, you have a trial period of 30 days. It has an affordable price and discount for academics if I remember

Re: [R] Redhat compilers and lme4 with R-2.4.0

2006-10-18 Thread Prof Brian Ripley
There are no known problems with 'RedHat compilers' and lme4. You do need to have installed an up-to-date Matrix prior to lme4, and the command-line you show indicates that you have not done so (or that it is not in a library known to R_LIBS). However, gcc 4.0.0 has many known problems, and

Re: [R] Redhat compilers and lme4 with R-2.4.0

2006-10-18 Thread Stefan Grosse
I had no problem on Fedora Core 5. Patrick Connolly schrieb: I've tried unsuccessfully to install lme4 on two different Redhat systems but I've not noticed anything on this list to indicate anyone else has had similar problems. __

Re: [R] Calculation of Eigen values.

2006-10-18 Thread Prof Brian Ripley
The source of the codes used *is* documented in ?eigen: please consult the references there. By default it is the LAPACK routine DSYEVR. From the comments at the head of that function (in src/modules/lapack/dlapack1.f) * DSYEVR computes selected eigenvalues and, optionally, eigenvectors *

Re: [R] Latex editor recommendations

2006-10-18 Thread Marc Halbrügge
Tom Backer Johnsen wrote: This question is not oriented towards R, but is posted here because I have the impression that there are at least some Latex users among the contributors. The question is: What editors for Latex are to be recommended? I have located one:

[R] Adding locfit confidence intervals in trelis xyplot

2006-10-18 Thread juan f poyatos
Dear all, I am trying to include confidence intervals in a xyplot. This is what I am doing: xyplot(x ~ y|z, alpha = 1,band = global,panel = panel.locfit) (more specifically, in my case x is a binary response from a logistic regression model) The output plot was fine but it did not include the

[R] cannot allocate vector of size 1215000 Kb

2006-10-18 Thread John Kapsomenakis
Dear All, I'm running the latest R on SUSE 10.0. After read in a huge data CDF file I tried to process the only variable variable using the comands aek-open.ncdf('C:/Monthly/CRU/Crutmp Europe.CDF') v1-aek$var[[1]] gugus-get.var.ncdf(aek, v1) But I can't because of this message Error: cannot

[R] new R-user needs help

2006-10-18 Thread antoniababe
Dear all, I have a dataset Exp name id x1 x2 x3 x4 x5 1 a1 23 24 23 22 30 1 b2 25 26 27 23 24 1 c3 32 19 23 25 28 2 a4 28 32 24 26 27 2 b5 23 24 25 26 28 2 c6 23 31 30 38 23 3 a7 24 25 31 27 29 3 b8 28 25 26 32 28 3 c9 21 31 28 23

Re: [R] Redhat compilers and lme4 with R-2.4.0

2006-10-18 Thread Alfonso M Sanchez-Lafuente
I've tried unsuccessfully to install lme4 on two different Redhat systems but I've not noticed anything on this list to indicate anyone else has had similar problems. I am also having problems installing the latest lme4 0.9975-6 on 2.4.0 in Fedora Core 5. The output is the following (sorry,

Re: [R] new R-user needs help

2006-10-18 Thread Dimitris Rizopoulos
try something like the following: sapply(split(dat[paste(x, 1:5, sep = )], dat$name), mean) Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/(0)16/336899 Fax:

Re: [R] new R-user needs help

2006-10-18 Thread Romain Lorrilliere
try this, if your data frame name is tab mean.tab = data.frame (meanA = mean(tab[tab$name == 'a' ,4:8]), meanB = mean(tab[tab$name == 'b',4:8]), meanC = mean(tab[tab$name == 'c',4:8])) mean.tab good luck Romain Romain Lorrillière UMR 8079 Laboratoire

Re: [R] new R-user needs help

2006-10-18 Thread Stefano Calza
Hi, you can use aggregate. aggregate(data[,c(3:8)],list(data$name),mean) should give you what you want. Ciao, Stefano On Wed, Oct 18, 2006 at 11:10:04AM +0200, [EMAIL PROTECTED] wrote: antoniababeDear all, antoniababe antoniababeI have a dataset antoniababe antoniababeExp name id x1 x2 x3

Re: [R] Latex editor recommendations

2006-10-18 Thread Tom Backer Johnsen
Thanks for the suggestion. It may be right for a newdie to Latex. Tom -- ++ | Tom Backer Johnsen, Psychometrics Unit, Faculty of Psychology | | University of Bergen, Christies gt. 12, N-5015 Bergen, NORWAY | | Tel : +47-5558-9185

Re: [R] new R-user needs help

2006-10-18 Thread Jim Lemon
[EMAIL PROTECTED] wrote: Dear all, I have a dataset Exp name id x1 x2 x3 x4 x5 1 a1 23 24 23 22 30 1 b2 25 26 27 23 24 1 c3 32 19 23 25 28 2 a4 28 32 24 26 27 2 b5 23 24 25 26 28 2 c6 23 31 30 38 23 3 a7 24 25 31 27 29 3 b8

Re: [R] new R-user needs help

2006-10-18 Thread Stefano Calza
Hi, use aggregate aggregate(dataset[,-c(1:3)],list(dataset$name),mean) should give you what you need Ciao, Sfetano On Wed, Oct 18, 2006 at 11:10:04AM +0200, [EMAIL PROTECTED] wrote: antoniababeDear all, antoniababe antoniababeI have a dataset antoniababe antoniababeExp name id x1 x2 x3 x4

Re: [R] cannot allocate vector of size 1215000 Kb

2006-10-18 Thread Uwe Ligges
John Kapsomenakis wrote: Dear All, I'm running the latest R on SUSE 10.0. After read in a huge data CDF file I tried to process the only variable variable using the comands aek-open.ncdf('C:/Monthly/CRU/Crutmp Europe.CDF') v1-aek$var[[1]] gugus-get.var.ncdf(aek, v1) But I can't

[R] conversion of LL coordenates to UTM problems (ED50-WGS84 format)

2006-10-18 Thread Berta
Hi R-Users, I have plotted a region whose polygon coordinates are given in shp format ED50 UTM (zone=30) ) using readShapePoly in library(maptools). Now I need to plot a set of points in that region (my.dataframe, with X and Y geographic coordinates), which have been read using GPS in

Re: [R] Redhat compilers and lme4 with R-2.4.0

2006-10-18 Thread Prof Brian Ripley
On Wed, 18 Oct 2006, Alfonso M Sanchez-Lafuente wrote: I've tried unsuccessfully to install lme4 on two different Redhat systems but I've not noticed anything on this list to indicate anyone else has had similar problems. I am also having problems installing the latest lme4 0.9975-6 on

[R] Book recommendation for newbie to stats and R?

2006-10-18 Thread George W. Gilchrist
Kevin, I teach biostats and have used many of these books and all are good. Mick Crawley's Statistics: An Introduction using R would be my first choice. It is clear, clever, and makes good use of the strengths of R. Crawley has a larger book entitled Statistical Computing that is also

Re: [R] Review process for new packages

2006-10-18 Thread Duncan Murdoch
Anupam Tyagi wrote: Hello, Duncan Murdoch murdoch at stats.uwo.ca writes: On 10/17/2006 2:22 AM, Andreas Wittmann wrote: Hi all, i'm currently working on a creditmetrics package which includes functions for computing the credit risk model creditmetrics. I guess it

Re: [R] Latex editor recommendations

2006-10-18 Thread Rainer M Krug
I use LyX ( http://www.lyx.org/ ) and I am happy with it - it's advantage is that one does not need to know LaTeX in detail to use it. I only know it from Linux, but it is also available for Windows Rainer Stefan Grosse wrote: For LaTeX I use the winedt editor: http://www.winedt.com which

Re: [R] conversion of LL coordenates to UTM problems (ED50-WGS84 format)

2006-10-18 Thread Roger Bivand
On Wed, 18 Oct 2006, Berta wrote: Hi R-Users, I have plotted a region whose polygon coordinates are given in shp format ED50 UTM (zone=30) ) using readShapePoly in library(maptools). Now I need to plot a set of points in that region (my.dataframe, with X and Y geographic coordinates),

Re: [R] new R-user needs help

2006-10-18 Thread Ted Harding
On 18-Oct-06 [EMAIL PROTECTED] wrote: Dear all, I have a dataset Exp name id x1 x2 x3 x4 x5 1 a1 23 24 23 22 30 1 b2 25 26 27 23 24 1 c3 32 19 23 25 28 2 a4 28 32 24 26 27 2 b5 23 24 25 26 28 2 c6 23 31 30 38 23 3 a7 24 25 31 27 29

[R] Aggregating a data frame (was: Re: new R-user needs help)

2006-10-18 Thread Gabor Grothendieck
Please use an informative subject for sake of the archives. Here are several solutions: aggregate(DF[4:8], DF[2], mean) library(doBy) summaryBy(x1 + x2 + x3 + x4 + x5 ~ name, DF, FUN = mean) # if Exp, name and id columns are factors then this can be reduced to library(doBy) summaryBy(. ~ name,

[R] Schmera: a question on R software

2006-10-18 Thread SCHMERA Dénes
Dear All, I would like to run a generalized linear mixed model with the software R (one categorical predictor, one random factor, the distribution of the dependent variable is binomial, and the link is logit). Thereafter, I would like to perform multiple comparisons (post hoc test) among the

Re: [R] cluster in R

2006-10-18 Thread Christian Hennig
Dear Weiwei, 1. Is there a way of evaluate the effecitives (or seperation) of clustering (rather than by visualization)? The function cluster.stats in package fpc computes several cluster validation statistics (among them the average silhouette width). Function clusterboot in the same package

Re: [R] Schmera: a question on R software

2006-10-18 Thread Torsten Hothorn
On Wed, 18 Oct 2006, SCHMERA D?nes wrote: Dear All, I would like to run a generalized linear mixed model with the software R (one categorical predictor, one random factor, the distribution of the dependent variable is binomial, and the link is logit). Thereafter, I would like to perform

Re: [R] MARS help?

2006-10-18 Thread Liaw, Andy
Spencer, MARS fits splines, not disconnected lines. Perhaps the strucchange package has facility to fit your data better. Cheers, Andy From: [EMAIL PROTECTED] on behalf of Spencer Graves Sent: Tue 10/17/2006 11:43 PM To: R-help; Kurt Hornik Subject: [R]

Re: [R] Latex editor recommendations

2006-10-18 Thread Wolfgang Lindner
Dear Tom, I use the free, smal and charming TexShell/win by Struve and Nagel. The TexShell automaticly uses the default directory structure from MiKTex/win: http://www.projectory.de/texshell/authors.html Quoted from Graham Williams: A free TeXShell for MS-Windows 95 and NT. Features include:

Re: [R] cannot allocate vector of size 1215000 Kb

2006-10-18 Thread Paul Hiemstra
The memory.size() command provides the maximum amount of memory that can be allocated. The amount can be increased to for example 2 GB by the command: memory.size(size = 2048) On windows the max size is 2GB, I don't know how large it is on Linux. But I must agree with Uwe Ligges that it may be

[R] (no subject)

2006-10-18 Thread Gilroy, Lloyd \(GTI\)
I currently have an instance of R running on Solaris 8 Version 2.2.0 (2005-10-06 r35749) Package: its Version: 1.0.9 Package: Hmisc Version: 3.0-1 I decided to build a new install on Linux RedHat As4.0 32 Bit running R version 2.4.0 (2006-10-03) Package: its Version: 1.1.4 Package: Hmisc

[R] Conditional Density Plots in Two Dimensions

2006-10-18 Thread Marco LO
Dear All, Did anyone try to put Conditional Density Plots (cdplot) on 2 dimensions in form of a contour plot for comparing the interactions of 2 covariates with a binary response dependent variable. What else visual graph I could plot for such interactions? Thanks! marco

Re: [R] Schmera: a question on R software

2006-10-18 Thread Douglas Bates
On 10/18/06, Torsten Hothorn [EMAIL PROTECTED] wrote: On Wed, 18 Oct 2006, SCHMERA Dénes wrote: Dear All, I would like to run a generalized linear mixed model with the software R (one categorical predictor, one random factor, the distribution of the dependent variable is binomial,

Re: [R] Latex editor recommendations

2006-10-18 Thread Niels Vestergaard Jensen
In a similar vein there's TeXmacs, which is somewhat WYSIWYG. (My apologies if it's already been mentioned). It's originally a linux program, but it's possible to run it under cygwin: http://www.fmi.uni-passau.de/~seidl/texmacs/tmtour.html#2 best Niels On Wed, 18 Oct 2006, Rainer M

Re: [R] ape -- internal nodes and pie charts

2006-10-18 Thread Albert Vilella
I respond to myself. Using: show.node.label = TRUE and looking at the doc for ?nodelabels: data(bird.orders) ### Some random data to compare piecharts and thermometres: tr - rcoal(15) x - runif(14, 0, 0.33) y - runif(14, 0, 0.33) z - runif(14, 0, 0.33) x - cbind(x, y, z, 1 - x - y - z)

Re: [R] Schmera: a question on R software

2006-10-18 Thread Torsten Hothorn
On Wed, 18 Oct 2006, Douglas Bates wrote: On 10/18/06, Torsten Hothorn [EMAIL PROTECTED] wrote: On Wed, 18 Oct 2006, SCHMERA Dénes wrote: Dear All, I would like to run a generalized linear mixed model with the software R (one categorical predictor, one random factor, the distribution of

Re: [R] sqlSave, fast=F option, bug?

2006-10-18 Thread Dieter Menne
Paul MacManus paul.macmanus at gmail.com writes: Using the fast=F option, sqlSave saves without matching column names. It looks like a bug to me.. In other words, sqlSave didn't check column names, it simply mapped column 1 to column 1 and column 2 to column 2. This seems to be

[R] Automatic File Reading

2006-10-18 Thread Lorenzo Isella
Dear All, I am given a set of files names as: velocity1.txt velocity2.txt and so on. I am sure there must be a way to read them automatically in R. It is really taking me longer to read them than to analyze them. Anybody has a suggestion to help me out with this? Many thanks Lorenzo

Re: [R] Latex editor recommendations

2006-10-18 Thread Stefan Grosse
There is also a rather old version running natively under Windows 1.0.5 something. But I think TeXmacs is somewhat hard to use and would always recommend LyX unless someone likes to embed calculations in a LaTeX like (which is I admit a really nice feature of TeXmacs. especially with maxima ) I

Re: [R] Automatic File Reading

2006-10-18 Thread Jerome Asselin
On Wed, 2006-10-18 at 17:09 +0200, Lorenzo Isella wrote: Dear All, I am given a set of files names as: velocity1.txt velocity2.txt and so on. I am sure there must be a way to read them automatically in R. It is really taking me longer to read them than to analyze them. Anybody has a

Re: [R] cannot allocate vector of size 1215000 Kb

2006-10-18 Thread Prof Brian Ripley
On Wed, 18 Oct 2006, Paul Hiemstra wrote: The memory.size() command provides the maximum amount of memory that can be allocated. The amount can be increased to for example 2 GB by the command: memory.size(size = 2048) On windows the max size is 2GB, I don't know how large it is on Linux.

[R] R issue with quantile using its package

2006-10-18 Thread Gilroy, Lloyd \(GTI\)
Frank, Thanks for the reply so what I did in the interim was unistalled Hmisc and chron and used version 3.0-2 of Hmisc which doesn't have the dependency on chron, and reinstalled its version 1.1.4 However I still heave the issue, when I try to run the quantile command on the given dataset.

Re: [R] Automatic File Reading

2006-10-18 Thread Doran, Harold
See ?read.table and the FAQs on importing data -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lorenzo Isella Sent: Wednesday, October 18, 2006 11:09 AM To: r-help@stat.math.ethz.ch Subject: [R] Automatic File Reading Dear All, I am given a

Re: [R] cluster in R

2006-10-18 Thread Weiwei Shi
Dear Christian: This is really a good summary. Most of my prev experience was on classification instead of clustering and this is really a good start for me. Thank you! And also hope someone can provide more info and answers to the other questions. cheers, weiwei On 10/18/06, Christian Hennig

Re: [R] Automatic File Reading

2006-10-18 Thread Scionforbai
Just to complete: if you need them all at the same time: for(i in 1:100) { fn - paste(velocity,i,.txt,sep=) varname - paste(velocity,i,sep=) assign(varname,read.csv(fn)) } and you have a list of objects {velocity1, ..., velocity100} with corresponding data. Scionforbai

Re: [R] Automatic File Reading

2006-10-18 Thread Charles C. Berry
There have been many threads on this topic. The posting guide would suggest you do something like this before posting to the list: RSiteSearch(reading many files) Which reveals many relevant threads, such as: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/84176.html

[R] dev2bitmap handling or else?

2006-10-18 Thread COMTE Guillaume
Hy all, I wish to get rid of starting X to get graphics, i tryed dev2bitmap and i've being working around without finding good parameters. By example : Dev2bitmap(file=Rplot001.png, type = png256,width=600/72,height=486/72) par(mar=c(5,2,1,1),xaxs = i, yaxs = i,ps=13) I tryed with

Re: [R] RGtk2 loading errors

2006-10-18 Thread Vladimir Eremeev
Dear Christian, Tuesday, October 17, 2006, 11:26:07 PM, you wrote: SC I had exactly the same problem with the installtion of rattle: SC After calling library(RGtk2) SC I get the message The procedure entry point SC atk_relation_add_targetcould not be located in the dynamic link SC library

[R] Barplot

2006-10-18 Thread Qian Wan
Hi, I have about 500 data entry ranging from -50 to 10,000. when I barplot(data), it plots all 500 of them individually. How can I set a ranges to group these 500 numbers into 10 or 20 groups, and plot the value of the ranges with how many numbers are in the range. Thanks a lot, Q.

[R] multiline string continuation

2006-10-18 Thread Erik Chang
Dear R experts, I wonder how can one input a string variable in multiple lines in a R script. I've seen solution to the command line continuation in the non-string situation (just continute at the new line). However, that doesn't work for strings because the new line character, \n, is included in

Re: [R] multiline string continuation

2006-10-18 Thread Dimitrios Rizopoulos
maybe you're looking for: cat(datadir) I hope it helps. Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/(0)16/336899 Fax: +32/(0)16/337015 Web:

Re: [R] multiline string continuation

2006-10-18 Thread Gabor Grothendieck
May this: gsub(\n, , X:/level1/level2 /level3/level4/ level5/level6 ) On 10/18/06, Erik Chang [EMAIL PROTECTED] wrote: Dear R experts, I wonder how can one input a string variable in multiple lines in a R script. I've seen solution to the command line continuation in the non-string

Re: [R] Automatic File Reading

2006-10-18 Thread bogdan romocea
Forget about assign() Co. Search R-help for 'assign', read the documentation on lists, and realize that it's quite a lot better to use lists for this kind of stuff. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scionforbai Sent: Wednesday, October

[R] not understanding a do.call

2006-10-18 Thread Leeds, Mark \(IED\)
I did a ?do.call but i don't think i understand it. if a, b,c,d are numeric vectors then could someone explain the difference between do.call(cbind,list(a,b,c,d)) and cbind(a,b,c,d). or point to an archive on it. the return value of cbind is a matrix or dataframe depending on what is

Re: [R] Latex editor recommendations

2006-10-18 Thread Richard M. Heiberger
I recommend emacs http://ftp.gnu.org/pub/gnu/emacs It has modes for TeX and LaTeX and automatically chooses the right one. As a side benefit once you have emacs you can then run R through ESS, the package that provides the modes for handling statistical languages http://ess.r-project.org/

Re: [R] multiline string continuation

2006-10-18 Thread Erik Chang
Hi Dimitris, Thanks for your suggestion. cat(datadir) displays D:/Users/Erik/Praxis2/ VOIs/individual/nomask/ categorized/collapsed/R_data/ of which output is NULL. I need something that export a string with the multiple lines in the script being glued together and without the \n in it. Erik

Re: [R] multiline string continuation

2006-10-18 Thread Erik Chang
Great! It works. Erik On 10/18/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: May this: gsub(\n, , X:/level1/level2 /level3/level4/ level5/level6 ) On 10/18/06, Erik Chang [EMAIL PROTECTED] wrote: Dear R experts, I wonder how can one input a string variable in multiple lines in

Re: [R] Barplot

2006-10-18 Thread Chuck Cleland
Qian Wan wrote: Hi, I have about 500 data entry ranging from -50 to 10,000. when I barplot(data), it plots all 500 of them individually. How can I set a ranges to group these 500 numbers into 10 or 20 groups, and plot the value of the ranges with how many numbers are in the range. Maybe

Re: [R] not understanding a do.call

2006-10-18 Thread Tony Plate
Suppose you have a list of equal-length numeric vectors and you want to bind them together in a matrix. You want to a piece of code that will work no matter how many vectors are in the list. That's what this construct with do.call() is useful for, e.g.: a - 1:3 b - 4:6 c - 7:9 x1 -

[R] Nested source() errors

2006-10-18 Thread Pierce, Ken
Does anyone know of any issues with nesting source() calls within multiple scripts? I have at least one script which always finds errors when I source it but runs fine when run on its own. It containd source() calls to other scripts and it seems to fail during the first nested source() command.

Re: [R] Automatic File Reading

2006-10-18 Thread Wensui Liu
is there a similar way to read all txt or csv files with same structure from a folder? thanks. On 10/18/06, Jerome Asselin [EMAIL PROTECTED] wrote: On Wed, 2006-10-18 at 17:09 +0200, Lorenzo Isella wrote: Dear All, I am given a set of files names as: velocity1.txt velocity2.txt and

Re: [R] not understanding a do.call

2006-10-18 Thread Brahm, David
Mark Leeds [EMAIL PROTECTED] wrote: could someone explain the difference between do.call(cbind,list(a,b,c,d)) and cbind(a,b,c,d). do.call(cbind, list(a=a, b=b, c=c, d=d)) is indeed the same as cbind(a, b, c, d). But suppose you wanted a function to cbind any number of vectors in reverse order:

Re: [R] Book recommendation for newbie to stats and R?

2006-10-18 Thread bogdan romocea
I haven't seen the first book (DAAG) mentioned so far, I have it and think it's very good. Anyway, I recommend you buy all R books (and perhaps take some extra time off to study them): your employer can well afford that, given the cash you're saving by not using proprietary software.

Re: [R] sqlSave, fast=F option, bug?

2006-10-18 Thread chao gai
The bug spot seems to be the fast option sqlDrop(chan,'test') df - data.frame(T=1, S=10) sqlSave(chan, df, test, rownames=F) df - data.frame(S=20, T=2) sqlSave(chan, df, test, rownames=F, append=T,fast=T) df - data.frame(S=30, T=3) sqlSave(chan, df, test, rownames=F, append=T,fast=F)

[R] how to manipulate counts matrix?

2006-10-18 Thread Jenny Stadt
Hi List, I've got a count matrix like this: [-11.9,-11] (-11,-10.2] (-10.2,-9.3] (-9.3,-8.44] [-11.9,-10.6]0 000 (-10.6,-9.3] 0 000 (-9.3,-8.01] 0 0

[R] Select one row of a data frame

2006-10-18 Thread Jason Horn
Can anyone tell me how to select just one row of a data frame? Say I want just the third row, what would be the syntax? Every notation I try just gives me columns. Thanks - Jason __ R-help@stat.math.ethz.ch mailing list

Re: [R] Select one row of a data frame

2006-10-18 Thread Jason Barnhart
?data.frame ?'[.data.frame' will provide more information. Here's an example: dfm4 V1V2 V3 1 0.38426342 0.4945156 1.970468 2 0.37361263 0.4988896 1.970468 3 1.30209319 2.2592985 1.145624 4 0.05995967 1.7020334 1.970468 5 1.39606662 2.2175071 1.970468 6 2.00257756

Re: [R] how to manipulate counts matrix?

2006-10-18 Thread Gabor Grothendieck
Here are three solutions: # Assume rn holds the rownames of the table # rn - rownames(my.table) rn - c([-11.9,-10.6], (-10.6,-9.3], (-9.3,-8.01], (-8.01,-6.73]) # 1 library(gsubfn) colMeans(strapply(rn, [-.0-9]+, as.numeric, simplify = TRUE)) # 2 library(gsubfn) strapply(rn, ([-.0-9]+),

Re: [R] Automatic File Reading

2006-10-18 Thread Richard M. Heiberger
Wensui Lui asks: is there a similar way to read all txt or csv files with same structure from a folder? On Windows I use this construct to find all files with the specified wild card name. I used the \\ in the file paths with the translate=FALSE, because the / in the DOS switches /w/B must

[R] selectively load some objects from old workspace

2006-10-18 Thread Weiwei Shi
Dear Listers: I have a question on loading objects from workspace: suppose I have two workspaces for two approaches. My old workspace has some objects I need for the new workspace but I don't want to load the whole old workspace and remove most of the old objects and get what I want. Is there an

Re: [R] selectively load some objects from old workspace

2006-10-18 Thread Gabor Grothendieck
Either 1. in your old workspace create a separate file using save that contains only the variables you want to transfer (see ?save) and then load that or 2. load the whole thing into an environment e - new.env() load(myspace.rda, e) and then copy out all the variables you want and delete e

[R] lmer- why do AIC, BIC, loglik change?

2006-10-18 Thread Darren M. Ward
Hi all, I am having issues comparing models with lmer. As an example, when I run the code below the model summaries (AIC, BIC, loglik) differ between the summary() and anova() commands. Can anyone clear up what's wrong? Thank you! Darren Ward library(lme4) data(sleepstudy)

Re: [R] Latex editor recommendations

2006-10-18 Thread No No
You could also try texmaker. Runs on unix, macosx and windows systems. http://www.xm1math.net/texmaker/ __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] trying to rotate barplot labels

2006-10-18 Thread Leeds, Mark \(IED\)
hi everyone : i'm trying to rotate the x axis labels in my barlot ( yes, since yesterday ) and my prob12matrix is 2 rows and 16 columns and i followed the instructions in the archive rotate barplot labels. i was really looking forward to seeing my labels turned but the plot just came back with

Re: [R] how to manipulate counts matrix?

2006-10-18 Thread Gabor Grothendieck
It occurred to me that if NAs, exponential notation and Inf is allowed in the intervals then the first two solutions I gave previously would not work. Here it is again such that all three solutions should work: rn - c([-11.9,-10.6], (NA,9.3], (9.3,8e01], (8.01,Inf]) # 1 library(gsubfn)

Re: [R] lmer- why do AIC, BIC, loglik change?

2006-10-18 Thread Deepayan Sarkar
On 18 Oct 2006 16:21:11 -0400, Darren M. Ward [EMAIL PROTECTED] wrote: Hi all, I am having issues comparing models with lmer. As an example, when I run the code below the model summaries (AIC, BIC, loglik) differ between the summary() and anova() commands. Can anyone clear up what's wrong?

Re: [R] trying to rotate barplot labels

2006-10-18 Thread Chuck Cleland
Leeds, Mark (IED) wrote: hi everyone : i'm trying to rotate the x axis labels in my barlot ( yes, since yesterday ) and my prob12matrix is 2 rows and 16 columns and i followed the instructions in the archive rotate barplot labels. i was really looking forward to seeing my labels turned but

[R] Labels for Points- 2 character labels?

2006-10-18 Thread ableape
I would like to be able to label each point in a scatter plot with the numeric order of that point. for example, I create the following plot: plot(e,n) # # now I go back and create my labels # for(i in 1:length(e)) {# lets say e 10 pc -

Re: [R] Labels for Points- 2 character labels?

2006-10-18 Thread Robert Baer
I think you want to use text() x=1:15; y=16:30 plot(x,y) text(x,y, as.character(x), pos=4) - Original Message - From: ableape [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Wednesday, October 18, 2006 4:59 PM Subject: [R] Labels for Points- 2 character labels? I would like to

[R] creating bins for a plot

2006-10-18 Thread Jeffrey Stratford
Hi. I'm trying to plot the ratio of used versus unused bird houses (coded 1 or 0) versus a continuous environmental gradient (proportion of urban cover [purban2]) that I would like to convert into bins (0 - 0.25, 0.26 - 0.5, 0.51 - 0.75, 0.76 - 1.0) and I'm not having much luck figuring this

Re: [R] cluster in R

2006-10-18 Thread Christian Hennig
Dear Weiwei, btw, ?cluster.stats does not work on my Mac machine. version _ platform i386-apple-darwin8.6.1 arch i386 os darwin8.6.1 system i386, darwin8.6.1 status major 2 minor 3.1 year 2006 month

[R] font size for xlab

2006-10-18 Thread stephenc
Hi I am trying to set the xlab font size. I have this code: attach(errorsBySpeakers) postscript(pic2.ps,width=4,height=4,paper=A4,horizontal=FALSE,pointsize= 0,family=Times) plot(prattpercent,uttspercent, xlab=Testing) abline(z) dev.off() detach(errorsBySpeakers) but I cannot

Re: [R] cluster in R

2006-10-18 Thread Weiwei Shi
Dear Chris: thanks for the prompt reply! You are right, dist from pearson has negatives there, which I should use cor+1 in my case (since negatively correlated genes should be considered farthest). Thanks. as to the ?cluster.stats, I double-checked it and I found I need to restart my JGR, until

[R] [R-pkgs] New version of batchfiles 0.2-9

2006-10-18 Thread Gabor Grothendieck
There is a new version, 0.2-9, of the Windows XP batchfiles distribution. It is a zip file containing a set of Windows XP batch scripts useful in conjunction with R. The latest release adds sweave.bat which will 1. run sweave, 2. run pdflatex and then 3. view the pdf in sequence. If sweave or

Re: [R] font size for xlab

2006-10-18 Thread jim holtman
try: plot(prattpercent,uttspercent, xlab=) title(xlab=Testing, cex.lab=1,1) # may have to play with cex.lab On 10/18/06, stephenc [EMAIL PROTECTED] wrote: Hi I am trying to set the xlab font size. I have this code: attach(errorsBySpeakers)

Re: [R] Adding locfit confidence intervals in trelis xyplot

2006-10-18 Thread Deepayan Sarkar
On 10/18/06, juan f poyatos [EMAIL PROTECTED] wrote: Dear all, I am trying to include confidence intervals in a xyplot. This is what I am doing: xyplot(x ~ y|z, alpha = 1,band = global,panel = panel.locfit) (more specifically, in my case x is a binary response from a logistic regression

Re: [R] cluster in R

2006-10-18 Thread Weiwei Shi
Dear Chris: I have a sample like this dim(dd.df) [1] 142 28 and I want to cluster rows; first of all, I followed the examples for cluster.stats() by d.dd - dist(dd.df) # use Euclidean d.4 - cutree(hclust(d.dd), 4) # 4 clusters I tried cluster.stats(d.dd, d.4) # gives me some results like this:

Re: [R] Multiple histograms in one plot

2006-10-18 Thread Johann Hibschman
Thanks, that works well. Using layout also works. I suppose I should have experimented with those earlier, but I somehow got it into my head that split.screen was the modern and correct way to handle this. The lattice package is nice, but it isn't useful to me, since each histogram has a very

[R] use date as x-axis

2006-10-18 Thread tom soyer
Hi, I have the following data in two columns. The first column is the date, the second is data. Date Data 3-Jan-95 459.21 4-Jan-95 459.13 5-Jan-95 460.73 6-Jan-95 460.38 9-Jan-95 460.67 10-Jan-95 460.9 11-Jan-95 461.68 12-Jan-95 461.64 13-Jan-95 461.64 16-Jan-95 465.97 17-Jan-95 469.38 18-Jan-95

Re: [R] MARS help?

2006-10-18 Thread Spencer Graves
Hi, Andy: Thanks very much. The 'strucchange' package (including its vignette) provide useful food for thought. I haven't yet seen exactly what I want, but I also haven't explored more than the vignette, and I see other functions that may do what I want. Thanks again.

Re: [R] Automatic File Reading [Broadcast]

2006-10-18 Thread Liaw, Andy
Works on all platforms: flist - list.files(path=file.path(somedir, somewhere), pattern=[.]csv$) csvlist - lapply(flist, read.csv, header=TRUE) whateverList - lapply(csvlist, whatever) Andy From: Richard M. Heiberger Wensui Lui asks: is there a similar way to read all

Re: [R] Nested source() errors [Broadcast]

2006-10-18 Thread Liaw, Andy
I've seen people doing that without problem. Not something I'd like to do myself, precisely because when problems occur, it's difficult to figure out what went wrong. Such practice usually indicate that you ought to organize your functions better. (You _are_ writing functions, instead of just

[R] CI

2006-10-18 Thread Ethan Johnsons
I have a quick question, please. Does R have function to compute i.e. a 90% confidence interval for the mean for these numbers? mean (6,11,5,14,30,11,17,3,9,3,8,8) [1] 6 I thought pt or qt would give me the interval, but it seems not. thx much. ej

Re: [R] use date as x-axis

2006-10-18 Thread tom soyer
Gabor, Thanks very much for the example. I got it to work! Tom On 10/18/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: Make sure that the Date column is actually of class Date: DF$Date - as.Date(DF$Date, %d-%b-%y) plot(DF) See ?as.Date . Also read the Help Desk article in R News 4/1

  1   2   >