Re: [R] get the bug context

2005-05-29 Thread Uwe Ligges
at the time the error occured. Maybe you see which object is already defined and can derive the point of the error that way. Uwe Ligges Thanks, -Luke __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Forcing ticks in plot for hclust object outside the limits

2005-05-28 Thread Uwe Ligges
if(!is.null(ylim)) height2 - c(range(ylim), rep(ylim[1], length(height) - 2)) .Internal(dend.window(n, merge, height2, hang, labels, ...)) Note that this quick hack is a *dirty* solution. Uwe Ligges Thanks in advance for any suggestions! Ale iberna hcd - structure(list

Re: [R] Postscript

2005-05-27 Thread Uwe Ligges
Philippe Lamy wrote: Hi, I would like to create a multi-page postscript file. How can I do that in R ? Is it possible ? Yes, simply draw more than one plot. See ?postscript and its argument onefile, which already defaults to TRUE. Uwe Ligges Thanks for help. Philippe

Re: [R] Round a line

2005-05-27 Thread Uwe Ligges
is the default! You have to zoom in or make even thicker lines. Hence you might want to try out the folowing to see differences: x - 1:10 par(mfrow = c(1, 2)) plot(x, sin(x), type=l, lwd=10) par(ljoin=mitre, lend=butt) plot(x, sin(x), type=l, lwd=10) Uwe Ligges I run on a Windows XP

Re: [R] Chars as numbers

2005-05-27 Thread Uwe Ligges
about encodings and characters at first. See the article by Brian Ripley in the most recent issue of R News, for example. Uwe Ligges Thanks. Josef Eschgfäller __ R-help

Re: [R] box plots without whiskers

2005-05-27 Thread Uwe Ligges
BJ wrote: I searched the archives, but couldnt find any way to do this with boxplot. Is there a way? Thanks again ~BJ See ?boxplot and its argument par which points you to ?bxp: Now, you can do stuff like boxplot(1:10, pars=list(staplelty=0, whisklty=0)) Uwe Ligges

Re: [R] box plots without whiskers

2005-05-27 Thread Uwe Ligges
, whisklty=0), at=1:2) works perfectly for me! People are not that happy to invest their time for helping you on bad specified problems... *REALLY*: PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Uwe Ligges ~BJ Uwe Ligges wrote: BJ wrote: I searched the archives

Re: [R] website reference for building R packages

2005-05-26 Thread Uwe Ligges
in Sections 3.1.9 Checking the build and 5.1 Installing packages of R-2.1.0's R Installation and Administration manual. Uwe Ligges Thanks, Roger On 5/25/05, Uwe Ligges [EMAIL PROTECTED] wrote: Suresh Krishna wrote: it is the first link if you type making packages into the google search box

Re: [R] Help needed - Use of RSrvr in macro mode

2005-05-26 Thread Uwe Ligges
This is a VERY special question. Please redirect your question to the appropriate mailing list. See http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l for more information. Uwe Ligges Constant Depièreux wrote: Dear All, I am experiencing a problem for which I need some help. I have

Re: [R] PAN: Need Help for Multiple Imputation Package

2005-05-26 Thread Uwe Ligges
this information.' Uwe Ligges AC wrote: Hello all. I am trying to run PAN, multilevel multiple imputation program, in R to impute missing data in a longitudinal dataset. I could successfully run the multiple imputation when I only imputed one variable. However, when I tried to impute a time

Re: [R] a more elegant approach to getting the majority level

2005-05-26 Thread Uwe Ligges
(table(x == TRUE ) ] (== TRUE) can ALWAYS be omitted, see also: library(fortunes) fortune(TRUE) x == max(x) should be replaced by which.max(x) as.logical() is superfluous Hence we get: names(which.max(table(x))) Uwe Ligges (The length of x will always be an odd number, so I wont get

Re: [R] [Fwd: Re: [Fwd: failure delivery]]

2005-05-26 Thread Uwe Ligges
Can you please specify a small reproducible example? Uwe Ligges Prof J C Nash wrote: I appear to have hit one of the drop issues raised in some discussions a couple of years ago by Frank Harrell. They don't seem to have been fixed, and I'm under some pressure to get a quick solution

Re: [R] Plotting Ranges as Vertical Lines

2005-05-26 Thread Uwe Ligges
Some example code using segments(): x - 1:10 low - rnorm(10) high - rnorm(10) plot(x, low, ylim = range(c(low, high)), type=n) segments(x, low, x, high) Uwe Ligges Bret Collier wrote: R Users, I have not been able to find anything close to what I want searching R-help and I am hoping

Re: [R] reading multiple files

2005-05-25 Thread Uwe Ligges
=length(filenames)) names(dataframes) - filenames for(i in filenames){ channel - odbcConnectExcel(i) dataframes[[i]] - sqlFetch(channel, sheet) close(channel) } Uwe Ligges Thanks in advance for any help. Dave __ R-help@stat.math.ethz.ch mailing

Re: [R] plot in a two dimension surface with more than 2 variables

2005-05-25 Thread Uwe Ligges
Amir Safari wrote: Dear All , How it is possible to trace a plot in a two dimension surface with more than 2 variables? Do you want a surface or a point cloud? Do you want to use some sort of projection? What is more than 2? Please specify your question more precisely. Uwe Ligges

Re: [R] Calling R from R and specifying wait until script is finished

2005-05-25 Thread Uwe Ligges
. grep) which are not available on all platforms. From my point of view the R way is to save the state into R objects (e.g. a vector of status codes with one element for each R script). Then you can easily use R functions to claculate on those objects. Uwe Ligges I create a master R script

Re: [R] website reference for building R packages

2005-05-25 Thread Uwe Ligges
might want to look into the R Administration and Installation manual as well which descibes how to collect and set up the required tools... Uwe Ligges But of course, I have misplaced the link. Does anyone still have that, please? It was someone from the University of Chicago, I believe

Re: [R] colors and palettes and things...

2005-05-25 Thread Uwe Ligges
the last two examples by Martin Maechler in # CRAN package scatterplot3d: library(scatterplot3d) ?scatterplot3d example(scatterplot3d) Uwe Ligges __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] time-ordered object list

2005-05-25 Thread Uwe Ligges
2005.04.14 15:38 last.dumplist list 81186 2005.05.12 11:57 How can one obtain something similar with R ? [ R 2.1.0 / windows 2000 ] You cannot. Objects in R do not have any timestamp attributes. Uwe Ligges cheers

Re: [R] Linear system

2005-05-25 Thread Uwe Ligges
] 0.1784625 -0.1924954 0.8505186 Uwe Ligges Best Regards Jim -- This e-mail and any attachment may be confidential and may also be privileged. If you are not the intended recipient, please notify us immediately

Re: [R] plot 3D

2005-05-25 Thread Uwe Ligges
MASS)? What is data? Why is there a ;? Because of my first two questions, this code is NOT reproducible - the posting guide asks you to specify reproducible examples. Uwe Ligges Thanks Sabine - ils, photos et vidéos ! [[alternative

Re: [R] precision problem

2005-05-25 Thread Uwe Ligges
of ==, and without having to reimplement the operations in a slow way? The R FAQ Why doesn't R think these numbers are equal? points you to ?all.equal Uwe Ligges __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] The error while using R2WinBUGS

2005-05-25 Thread Uwe Ligges
/ authors would have been a better idea for such a specialized question. Uwe Ligges BTW: You might want to try out the new CRAN package BRugs, which provides an interface to the (included) OpenBUGS (the next version of WinBUGS). Currenty, it only works on Windows, though. Li, Jia

Re: [R] Hmisc/Design and problem with cgroup

2005-05-24 Thread Uwe Ligges
Frank E Harrell Jr wrote: Uwe Ligges wrote: Aric Gregson wrote: On 5/17/05 21:44 Frank E Harrell Jr sent the following: Aric Gregson wrote: Hello, I am trying to use the following to output a table to latex: cohortbyagesummary - by(data.frame(age,ethnicity), cohort, summary) w

Re: [R] Suimmary of answers : Possible (ab)use of lexical scoping in R ?

2005-05-22 Thread Uwe Ligges
not seem to be the R way - and it is very confusing to read code that refers to a couple of different environments ... Uwe Ligges After re-reading the available docs (which I may have misunderstood...), I come to the following conclusions : - The package creation is the most elegant

Re: [R] R annoyances

2005-05-20 Thread Uwe Ligges
, Ontario Canada L8S 4M4 905-525-9140x23604 http://socserv.mcmaster.ca/jfox -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Uwe Ligges Sent: Thursday, May 19, 2005 10:08 AM To: Chalasani, Prasad Cc: r-help@stat.math.ethz.ch

Re: [R] Plot Problem

2005-05-20 Thread Uwe Ligges
correctly. Is there a simple way to rotate the labels? For axis labels see ?par and its argument las. Uwe Ligges Best regards, Sebastian __ 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] legend as a subtitle

2005-05-20 Thread Uwe Ligges
, xlab=) ## clipping to device region rather than plot region: par(xpd=NA) legend(mean(par(usr)[1:2]), 0, legend=nonsense, xjust=0.5) Uwe Ligges Ravi Vishnu This message is meant for the addressee only and may contain confidential and legally privileged information. Any unauthorised

Re: [R] R annoyances

2005-05-20 Thread Uwe Ligges
Ben Bolker wrote: [snip snip snip snip] How about strict option that could be set to disallow use of T/F variables? I had a student run into trouble fairly recently (although can't at the moment provide a reproducible example using T as a variable in a formula that was passed to nls() ... I

Re: [R] address of Gordon Smyth ?

2005-05-20 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: Anyone know where I can reach the author of the compareGrowthCurves function? Which package are we talking about? I guess statmod, but please indicate this! For sure you have tried the address (in CC) you can find in library(help=statmod) Uwe Ligges I'm having

Re: [R] Reading Numeric Data -- Trivial Question

2005-05-20 Thread Uwe Ligges
(and only?) column or read the data using scan(), if there is really only one column. Uwe Ligges I get: Error in as.double.default(read.table(logDJIm.TXT, header = FALSE, sep = , : (list) object cannot be coerced to 'double' and when I try to plot: plot(density(retr, width=.004), type=l

Re: [R] bootstrapping vectors of unequal length

2005-05-20 Thread Uwe Ligges
) / median(t$y[i], na.rm=TRUE) Uwe Ligges __ 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] Reading Numeric Data -- Trivial Question

2005-05-20 Thread Uwe Ligges
Alex K wrote: On 5/20/05, Uwe Ligges [EMAIL PROTECTED] wrote: Alex K wrote: Hello, I am very new to R, and this is certainly and uber-newby question: I am trying to read a vector of numeric data that contains the log of daily DJI returns and simply plot a histogram of it. The data I have

Re: [R] lwd less than 1

2005-05-19 Thread Uwe Ligges
are going to include the plot in? Uwe Ligges Best regards, Jacques VESLOT Paul Murrell a écrit : Hi Jacques VESLOT wrote: Dear R-users, Someone, who uses R under Mac, wants to insert a couple of small plots (each with several lines) in an article, but he has to reduce plots' size significantly. He

Re: [R] install R packages--sorry last letter that I sent I had an error, this one is the right one

2005-05-19 Thread Uwe Ligges
just opened R, and haven't used anything yet, how come did it say package splines is in use? library(survival) told you that it loaded the required package splines. So it *is* in use. Uwe Ligges Thanks Jia __ R-help@stat.math.ethz.ch mailing list

Re: [R] R annoyances

2005-05-19 Thread Uwe Ligges
Chalasani, Prasad wrote: Thanks all for pointing out that I can use mtx[,1,drop=F] Which, for example, won't work for F - 10.25 --- drop=FALSE ! ^ Uwe Ligges -Original Message- From: Uwe Ligges [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 10:49 AM

Re: [R] R annoyances

2005-05-19 Thread Uwe Ligges
wonder whether there is, or should be, a way to set FALSE as the default? First question: No. Second question: No, because *many* functions do rely on the fact that x[,1] returns a vector rather than a matrix. Uwe Ligges __ R-help@stat.math.ethz.ch

Re: [R] NA erase your data trick

2005-05-17 Thread Uwe Ligges
! By vectorization: tcn5[tcn5 == -9] - NA Uwe Ligges Anders Corr for(i in 1:dim(tcn5)[2]){ ##for the number of columns + for(n in 1:dim(tcn5)[1]){ ##for the number of rows + tcn5[is.na(tcn5[n,i]) | tcn5[n,i] == -9] - NA

Re: [R] The error in R while using bugs.R function

2005-05-17 Thread Uwe Ligges
file? Anyway, you might want to give the CRAN package R2WinBUGS a try, which is based on Andrew's code known as bugs.R. There is also a developer version BRugs (an interface to OpenBUGS) available at http://www.statistik.uni-dortmund.de/~ligges/BRugs/ (will move to CRAN very soon now). Uwe Ligges

Re: [R] A question about bugs.R: functions for running WinBUGs from R

2005-05-17 Thread Uwe Ligges
R2WinBUGS you are looking for has been made available - thanks to Andrew's effort in writing the original code and thanks to the efforts of two others to generalize the code and package it for you. Uwe Ligges Jiaa _ # R code

Re: [R] sink stack memory??

2005-05-16 Thread Uwe Ligges
is of up to 21 connections (20 diversions). If you did not forget to close the connection, please send an easily reproducible example. Uwe Ligges thanking you anubhav __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] memory and step()

2005-05-16 Thread Uwe Ligges
also the more detailed help page ?Memory. My recommendation is: Buy a 512 Mb module for a few $, 256Mb is really not much these days. Hmm, my 4.5 year old laptop already has 256Mb (cannot be increased - and this is the only point why I am looking fo a new one). Uwe Ligges Thank you. Dimitri

Re: [R] what means Best sample in clustering using Clara?

2005-05-15 Thread Uwe Ligges
Amir Safari wrote: Hi All, Can some body tell what means Best Sample in clustering using Clara? ?clara.object tells you: sample: labels or case numbers of the observations in the best sample, that is, the sample used by the clara algorithm for the final partition. Uwe Ligges

Re: [R] Job Opportunity: Statistical Guru CC 083

2005-05-15 Thread Uwe Ligges
photo and you have sent me at least 10,000$. Uwe Ligges Don Alexander wrote: Do you consider yourself a cutting edge statistical expert with a penchant for applying your broad theoretical background to solving some of the most complex statistical challenges facing human health today? Does the idea

Re: [R] Suppressing warning messages

2005-05-15 Thread Uwe Ligges
to understand what generates the warning! Yes! In both cases you should really look why you are using *conditions of length 1*! And if this is intended, you certainly want to use ifelse() rather than if(){} else{}. Uwe Ligges To assure you are uninformed, say options(warn=-1) Kjetil

Re: [R] Save parameters from optim during iteration procedure

2005-05-15 Thread Uwe Ligges
- optim(par=c(-1,1), fn =fun, method = c(L-BFGS-B), control=c(trace=6) ) For example, you can sink() temorarily into a file and extract the relevant lines (beginning with X = ) afterwards. Uwe Ligges # what I would need to save [...] X = -0.292893 0.292893 [...] X

Re: [R] cluster results using fanny

2005-05-14 Thread Uwe Ligges
membership for all the clusters, how is it that I have a closest hard clustering? and a neighbor? Can you speicfy a reproducible examples, please? Without an example, it is really hard to explain what happens... Uwe Ligges Thank you in advance, Barbara

Re: [R] Batch mode problem: figure margins too large (code corrected for word wrap)

2005-05-13 Thread Uwe Ligges
dev.print and insert dev.off() [BTW: your code is almost unreadable, please try to format it before posting, and please read documentation on devices] Uwe Ligges As you can see, I need a special par(mar) to make room for the margin text (mtext). When I run this program through a batch file I get

Re: [R] DEV2bitmap: jpeg with res=400 not enough for CORELDRAW poster A0

2005-05-13 Thread Uwe Ligges
are not optimal. How can I save pictures (colors/resolution) optimally for import into CorelDraw for an A0 poster? Pdf?/tiff?/bmp?/ What about PostScript? It's perfectly resizable and CorelDraw (at least the outdated version 10) can deal with it. Uwe Ligges Thanks, Jan

Re: [R] Big matrix memory problem

2005-05-13 Thread Uwe Ligges
really handle those matrices separately, either by getting them from a database or by saving them in form of separate Rdata objects. Uwe Ligges Any help is greatly appreciated. Niall Fitzgerald Phd Candidate. __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Lattice plot within a for loop does not happen?

2005-05-13 Thread Uwe Ligges
Barry Rowlingson wrote: BUT, when I stick this in a loop, I get a bunch of blank graphics devices. This happens even if the loop only executes once. I could just go through and do these one by one, but I was curious if I was overlooking something obvious. Thank you for any advice. You're

Re: [R] R2.1.0: Bug in list.files

2005-05-12 Thread Uwe Ligges
not (but could have been). Probably you want list.files(pattern = \\.zip$, full.names = TRUE) Uwe Ligges Steve. Dr Steve Roberts [EMAIL PROTECTED] Senior Lecturer in Medical Statistics, CMMCH NHS Trust and University of Manchester Biostatistics Group, 0161 275 5192/5764 / 0161 276 5785

Re: [R] R2.1.0: Bug in list.files

2005-05-12 Thread Uwe Ligges
that .txt also finds Not_a_txt_file.xls Uwe Ligges -s. Uwe Ligges wrote: Steve Roberts wrote: R2.0.1 (MS Windows) list.files(myloc,*.zip,full=T) [1] P:/SARsoftware/Rlibraries/gnlm_0.1.zip [2] P:/SARsoftware/Rlibraries/lms2_0.2.zip R2.1.0: list.files(myloc,*.zip,full=T) Error in list.files

Re: [R] R2.1.0: Bug in list.files

2005-05-12 Thread Uwe Ligges
, all.files, full.names, recursive) : invalid 'pattern' regular expression Bug? or have I missed something That has something to do with regexpr, try someting like : list.files(myloc,*.zip,full=T) Which also finds the file unzip.exe. Please, folks, do read about regular expressions! Uwe

Re: [R] Plot()

2005-05-12 Thread Uwe Ligges
of formulas you have to use I() in order to do these calculations: plot(column ~ I(1-column)) or plot() will simply plot against the index (column ~ 1) and ignores the unsensible last part -column. Uwe Ligges plot(column~as.vector(1-column)) Thanks for checking! U

Re: [R] mget empty strings

2005-05-12 Thread Uwe Ligges
this is done efficiently? Thanks a lot in advance! Georg P.S. I am in digest mode, cc'ing the answer directly to me would be nice Is y and environment? Please make your example reproducible - as long as I have not seen your example, I guess you don't want to use mget() at all ... Uwe Ligges

Re: [R] Does R have a command for sending emails?

2005-05-11 Thread Uwe Ligges
long long long.', 'Very long.', '-server smtp.host.com -base64')) Uwe Ligges In R, if everything beginning with blat is not on the same line, the command does not work properly and everthing on the second line is not considered even thought he paste command ends with a ) Thanks

Re: [R] Rpy for python2.4 and R.2.1.0 on winXP

2005-05-11 Thread Uwe Ligges
Darren Weber wrote: Has anyone compiled a binary for winXP, with python2.4 and R.2.1.0? If anyone can do this soon, please advise how to pick up the binary installer. The Rpy homepage is http://rpy.sourceforge.net/ What about asking on the mailing list given on that page? Uwe Ligges Best

Re: [R] sphericity calculation

2005-05-11 Thread Uwe Ligges
the notes in the pdf indicate the following: D - k^2 * ( mean(S) - mean(diag(S)) )^2 Can you please consider this and advise the correct calculation? Both are equal! Mathematical calculations you should really know from school show that (a - b)^2 = (b - a)^2 . Uwe Ligges Best, Darren

Re: [R] inserting R code in a latex document

2005-05-11 Thread Uwe Ligges
appropriate environments. Uwe Ligges Thanks, Thibaut Jombart __ 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] Subset with selection variable from function argument. Is there another way?

2005-05-11 Thread Uwe Ligges
) Uwe Ligges This seems a bit odd. Is there a nicer way? /Fredrik __ 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] filename

2005-05-10 Thread Uwe Ligges
the variables are holding for my filename, e.g.: jpeg(file=d:/data/images/jz.jpeg,...) If j contains the name for the file, jpeg(file=j, ...) should work. I guess you do not have jpeg support if calling your script in non-interactive mode, because you need X11 active. See ?jpeg. Uwe Ligges i

Re: [R] Source R code via menu File

2005-05-10 Thread Uwe Ligges
to my configuration (of R or of Windows) or is it a bug? This is a bug that has been fixed in R-patched. Uwe Ligges R: version 2.1.0 patched (2005-04-18) Operating system: Windows XP (German) * Dr. Dirk Enzmann Institute of Criminal Sciences Dept

Re: [R] How to handle data continuous to discretized

2005-05-10 Thread Uwe Ligges
__ 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 See ?cut, if you mean something different, please be much more specific in your question. Uwe Ligges

Re: [R] converting an ASCII file to a matrix

2005-05-10 Thread Uwe Ligges
to be the wrong way with unequal line lengths. Uwe Ligges I would be very grateful for your help! Michael Graber [EMAIL PROTECTED] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] functions of functions

2005-05-09 Thread Uwe Ligges
Robin Hankin wrote: Hi I have an application where my difficulty boils down to not being able to define a function f() with the following properties: f(sin,0:2,x) #returns sin(x+0) + sin(x+1) + sin(x+2) f(c(sin,cos), 1:2,x) #returns sin(x+1) + cos(x+2) f(c(sin,cos,exp),3,x)

Re: [R] functions of functions

2005-05-09 Thread Uwe Ligges
, length = l) else if(l li) int - rep(int, length = l) values - mapply(function(foo, int) do.call(foo, list(x+int)), foo, int) return(rowSums(values)) } Uwe best wishes Robin On May 9, 2005, at 08:34 am, Uwe Ligges wrote: Robin Hankin wrote: Hi I have an application where my

Re: [R] Error in F test on version 2.1.0

2005-05-09 Thread Uwe Ligges
, read the psoting guide and specify the example). Uwe Ligges __ 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] Cannot get help after reinstalling

2005-05-09 Thread Uwe Ligges
left. Uwe Ligges (OS is Windows XP Pro) Thanks. FS __ 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] Maximum # of predictors?

2005-05-08 Thread Uwe Ligges
, but with linear models. Probably you don't have enough observations in order to estimate those coefficients. Please read some statistical textbook on the topic of degrees of freedom in linear models and regression analysis. Uwe Ligges __ R-help@stat.math.ethz.ch

Re: [R] building from source after installing binary package

2005-05-06 Thread Uwe Ligges
if this is a rather silly thing to do, and if I should keep my own build separate from the Debian stuff. Any advice would be much appreciated. Yes, simply install to another directory, e.g. by telling configure: ./configure --prefix=/I/want/to/have/R/installed/here Uwe Ligges Thanks, R. -- Ramn Daz-Uriarte

Re: [R] Percent (%) format in barplot

2005-05-06 Thread Uwe Ligges
) text(x,y,as.character(x),pos=4) How do I do that? What about paste(formatC(x, 1, format=f), %, sep=) given x is scaled in percent, of course. Uwe Ligges Thanks __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] 2 simple questions

2005-05-06 Thread Uwe Ligges
(x) (is.na(x$date1[1]) !is.na(x$date2[1]))) ctr - sum(temp) # and sum that vector Uwe Ligges But I don't think that's working correctly. Thanks, Steven __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] reordering a data.frame

2005-05-05 Thread Uwe Ligges
See ?reshape Uwe Ligges Achaz von Hardenberg wrote: Hi, I have a data.frame which looks like this: id est0 est1 est2 est3 est4 est5 est6est7 1 1 2 3 1 7 9 3 4 2 4 1 1 7 6 5 1 2 [...] I would like to reorder it to obtain the following: id est VALUE 1 0 1

Re: [R] creating names for regressios using the assign()

2005-05-05 Thread Uwe Ligges
? See ?try Uwe Ligges Thanks, Dimitri [[alternative HTML version deleted]] __ 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] efficient filtering of matrices

2005-05-05 Thread Uwe Ligges
(newmat, origmat[i,]) } What about vectorizing the stuff? index - is.na(origmat[ ,10]) | (!is.na(origmat[ ,10]) (origmat[ ,2] = origmat[ ,10])) newmat - origmat[index,] Uwe Ligges Thanks, Steven __ R-help@stat.math.ethz.ch mailing list

Re: [R] contributed package source codes

2005-05-04 Thread Uwe Ligges
mingan wrote: Is there a way for me to get the source code ( C/C++ or FORTRAN) for a specific R package ? Well, it is *included* in the (source) package... ??? Uwe Ligges thanks __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] loading gap package

2005-05-04 Thread Uwe Ligges
: There is no package 'gdata' simply means the package is not there... So what about installing it? Hint: it is part of the package bundle gregmisc. Uwe Ligges Thanks, Edwin __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Converting pc files to unix

2005-05-04 Thread Uwe Ligges
coded paths etc... Uwe Ligges Thanks in advance Kevin __ [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] loading gap package

2005-05-04 Thread Uwe Ligges
Constantinos Antoniou wrote: On 4 2005, at 11:35 , Uwe Ligges wrote: Eduwin Pakpahan wrote: Dear R users, I did install R. 2.0.1, and try to load gap package. However, below is the message shown when I did load it. Can anybody please let me know my mistakes? library() library(gap) Loading

Re: [R] JGR and R 2.0.X

2005-05-04 Thread Uwe Ligges
the winners of the John Chambers Statistical Software Award are unable to help if you don't say what the error messages are and which versions of JGR you tried... Uwe Ligges Best wishes Christoph __ R-help@stat.math.ethz.ch mailing list https

Re: [R] selections of data by one variable

2005-05-04 Thread Uwe Ligges
is syntacically completely incorrect (even if you say something would work, which is definitely not the case)! PLEASE do read the posting guide! I guess you want something like d - data.frame(a = 1:10, b = 11:20) subset(d, b == 17) e - c(13, 15, 17) subset(d, b %in% e) Uwe Ligges What

Re: [R] rank of a matrix

2005-05-04 Thread Uwe Ligges
mingan wrote: how do I check the rank of a matrix ? say A= 1 0 0 0 1 0 then rank(A)=2 what is this function? Well, calculating the rank is from the computational point of view a very hard problem. See ?qr Uwe Ligges thanks I did try help.search(rank), but all the returned help

[R] [R-pkgs] RWinEdt_1.7-1 for R=2.1.0

2005-05-02 Thread Uwe Ligges
! It is recommended to use the new version of RWinEdt (1.7-1) together with RGui in SDI mode (which should work with arbitrary translations). Further on, only english versions of RGui in MDI mode are supported by RWinEdt. Uwe Ligges ___ R-packages

Re: [R] accuracy of test cases

2005-04-29 Thread Uwe Ligges
it too small, the test may fail when executed on a machine with different architecture from mine. How do I deal with this? See ?all.equal Uwe Ligges -- Robin Hankin Uncertainty Analyst Southampton Oceanography Centre European Way, Southampton SO14 3ZH, UK tel 023-8059-7743

Re: [R] accuracy of test cases

2005-04-29 Thread Uwe Ligges
Robin Hankin wrote: On Apr 29, 2005, at 11:51 am, Uwe Ligges wrote: Robin Hankin wrote: [snip] The tolerance should be as small as possible, but If I make it too small, the test may fail when executed on a machine with different architecture from mine. How do I deal with this? See ?all.equal

Re: [R] help files and vignettes

2005-04-29 Thread Uwe Ligges
. And you can write Makefiles in order to process automatically. Uwe Ligges __ 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] help files and vignettes

2005-04-29 Thread Uwe Ligges
\documentclass statement and the like? thanks in advance, ingmar On 4/29/05 7:48 AM, Uwe Ligges [EMAIL PROTECTED] wrote: Ingmar Visser wrote: Hi all, I'm writing a vignette for my package, and I would like to include some of the package help files in there as well. Is there an easy way of doing so

Re: [R] Re: how to add a column with string values to a data frame while still converting them to factors

2005-04-27 Thread Uwe Ligges
avneet singh wrote: i got the first part: agm.data$ProdCategory=as.factor(agm.data$ProdCategory) the second i am still struggling with For the second part, see ?is.na. Uwe Ligges On 4/26/05, avneet singh [EMAIL PROTECTED] wrote: I have 2 questions. In essence i am trying to create product

Re: [R] how to modify and compile R sourse codes

2005-04-27 Thread Uwe Ligges
-2.1.0 gives not only suggestions: it provides all the details on the tools required! The manual Writing R Extensions is relevant as well. Uwe Ligges Thanks __ [[alternative HTML version deleted

Re: [R] Error list and debugging R code

2005-04-27 Thread Uwe Ligges
programming, the manuals, R News, and the following help pages: ?traceback ?debug ?recover ?browser and other relevant pages these pages are pointing to. Uwe Ligges Jarek =\ Jarek Tuszynski, PhD. o / \ Science

Re: [R] Density curve over a histogram

2005-04-27 Thread Uwe Ligges
Paul Smith wrote: Dear All I would like to draw a picture with the density curve of a normal distribution over a histogram of a set of random numbers extracted from the same normal distribution. Is that possible? Yes. If you like to know how, see e.g. ?hist and ?curve. Uew Ligges Thanks in

Re: [R] How to override coerion error in 'scan'

2005-04-26 Thread Uwe Ligges
some function (e.g. using regular expressions) to detect what is numeric and what not (e.g. 03/15/200523:56:03), replace the latter by NA and convert to numeric. Uwe --Rich Richard Kittler AMD TDG 408-749-4099 -Original Message- From: Uwe Ligges [mailto:[EMAIL PROTECTED] Sent

Re: [R] simple question on graphics window

2005-04-26 Thread Uwe Ligges
Dom Peters wrote: Dear All, This is a rather simple question. How do I open more than 1 graphics window? See ?x11 Uwe Ligges Dom __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] good editor for R sources ?

2005-04-26 Thread Uwe Ligges
not to be supported. See http://www.sciviews.org/_rgui/projects/Editors.html The page tells us that there is support for Crimson editor. Uwe Ligges Thanks for any advice __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] R CMD check doesn't stop with checking examples

2005-04-25 Thread Uwe Ligges
Liaw, Andy wrote: One suggestion: After you break the check process, look at the file C:\Gregor\devel\GeneticsPed\GeneticsPed.Rcheck\GeneticsPed-Ex.R and try to see if you can run that in batch mode. You can also look into GeneticsPed-Ex.Rout that tells you where the stuff hangs. Uwe Andy

Re: [R] Upgrading R

2005-04-25 Thread Uwe Ligges
the last few years, each major release was followed by one minor (bug-fix) release after roughly one month. Uwe Ligges I suppose Debian packages of base R are updated accordingly to R patches, aren't they? Thanks in advance! -- Lep pozdrav / With regards, Gregor Gorjanc

Re: [R] Garbled plot label

2005-04-25 Thread Uwe Ligges
guide ask to do so anyway)? Uwe Ligges __ 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 know in which package is a function

2005-04-24 Thread Uwe Ligges
) No help files found with alias or concept or title matching 'RSiteSearch' using fuzzy matching. So you should try out the recent version of R (2.1.0), which contains RSiteSearch in package utils. Uwe Ligges __ R-help@stat.math.ethz.ch mailing list https

Re: [R] How to override coerion error in 'scan'

2005-04-23 Thread Uwe Ligges
the columns as character and convert them to numeric afterward. I think you have to read it in as character - or write your own C-level facility... Uwe Ligges --Rich Richard Kittler AMD TDG 408-749-4099 __ R-help@stat.math.ethz.ch mailing list https

<    6   7   8   9   10   11   12   13   14   15   >