Re: [R] tcltk package

2005-07-07 Thread Roger D. Peng
, Kurt. __ 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 -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng

Re: [R] Plotting greek symbols in plot titles, labels, etc.

2005-07-14 Thread Roger D. Peng
-- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ 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: how to change the size of a window after it has been created

2005-07-14 Thread Roger D. Peng
plotting? Thank you, Shengzhe __ 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 -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng

Re: [R] hash code for arbitrary object

2005-08-03 Thread Roger D. Peng
://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ 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] Modifying the parameters for a function

2005-08-04 Thread Roger D. Peng
-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ 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: how to stop the process when there is a mishandling

2005-08-04 Thread Roger D. Peng
__ 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 -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng

Re: [R] use of NA's

2005-08-05 Thread Roger D. Peng
@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 -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Fwd: Documenting data sets with many variables

2005-08-16 Thread Roger D. Peng
from R CMD check? Thanks, Arne --- -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] problems when installing R in Fedora core 4

2005-08-18 Thread Roger D. Peng
! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ 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] Packages

2005-08-24 Thread Roger D. Peng
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 -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng

Re: [R] toLatex

2005-09-19 Thread Roger D. Peng
Try 'methods(toLatex)'. -roger Simone Vantini wrote: hallo! does everybody know which kind of objects the function toLatex can manage? thanks simone vantini -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ R-help@stat.math.ethz.ch

Re: [R] warning.expression?

2005-09-22 Thread Roger D. Peng
read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ 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

Re: [R] Dummy quesion about environment

2005-09-27 Thread Roger D. Peng
-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 -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ R-help@stat.math.ethz.ch mailing

Re: [R] wildcards and removing variables

2005-10-10 Thread Roger D. Peng
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Questions about readBin function (Was: dec2bin?)

2005-10-12 Thread Roger D. Peng
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Floating point imprecision in sum() under R-2.3.1?

2006-08-18 Thread Roger D. Peng
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/ __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] big numbers

2006-08-22 Thread Roger D. Peng
@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 and provide commented, minimal, self-contained, reproducible code. -- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng

Re: [R] plot question

2006-08-25 Thread Roger D. Peng
to explain it fully to my students. Thanks for your help, Cathy -- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/ __ 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

Re: [R] regex scares me

2006-08-28 Thread Roger D. Peng
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/ __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] levels of factor when subsetting the factor

2006-09-12 Thread Roger D. Peng
@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 and provide commented, minimal, self-contained, reproducible code. -- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng

Re: [R] removing invariant columns from a matrix

2004-08-29 Thread Roger D. Peng
See question 7.7 in the R FAQ (http://cran.r-project.org/doc/FAQ/R-FAQ.html) -roger Moises Hassan wrote: It works great, except that in the case where only one column is left, it returns a vector and the column name is lost. How can you avoid that behavior? Thanks, - Moises -Original

Re: [R] coercing a string naming to a variable name and return value

2004-09-01 Thread Roger D. Peng
You can use [[, I think, as in basin.param[[string.variable]] or, eqivalently for a data frame basin.param[, string.variable] -roger Dewez Thomas wrote: Hi all, I haven't been able to find how to assess a variable who's name is constructed with paste. The problem is following: In a data frame,

Re: [R] substitution in expression

2004-09-06 Thread Roger D. Peng
You need substitute(), as in: x - my plot(1:10, main = substitute(paste(x, , Delta, values), list(x = x))) -roger Wolski wrote: Hi! plot(1:10, main=expression(paste( x, , Delta, values ))) /E *** REPLY SEPARATOR *** On 9/6/2004 at 3:50 PM Adaikalavan Ramasamy wrote: I have

Re: [R] pairwise comparisons

2004-09-07 Thread Roger D. Peng
Are you talking about repeated rows? Does unique() do what you want? -roger Rebecca Young wrote: Hello, I am a new R user. I am trying to calculate vector correlations for all pairwise comparisons in my data frame without repeats. I am familiar with the expand.grid function, but this includes

Re: [R] a little question about R

2004-09-07 Thread Roger D. Peng
Try letters[1:4] -roger wrote: Hello,sir: Here's a little question about R which needs your help.Thanks in advance. If I wanna make a sequence just like a,b,c,d (In other words,a vector consists of 4 characters :a,b,c,d ).How can I do it in a shortcut manner? Yes,I can do it as following:

Re: [R] 64 bit R slower than 32 bit R on Sun Sparc Solaris?

2004-09-07 Thread Roger D. Peng
Are you using an optimized BLAS for both builds? That's one possibility. Also, 64-bit builds use up more memory initially since the pointers are bigger. I've tried both 64-bit and 32-bit builds on Sparc/Solaris and haven't seen any slowdown. -roger Jason Liao wrote: Hello, everyone! I guess

Re: [R] factor always have type integer

2004-09-08 Thread Roger D. Peng
In some cases it makes sense to store character variables as factors (integers with labels) since this can take up much less memory. If you really want to store `v2' as character, just do data.frame(v1, I(v2)) -roger Erich Neuwirth wrote: typeof applied to a factor always seems to return

Re: [R] How to draw an observation uniformly from a given dataset?

2004-09-08 Thread Roger D. Peng
[EMAIL PROTECTED] wrote: Hi all, I have two questions stated below: 1. How to draw an observation uniformly from a given data? For example, I have a dataset (or dataframe) with 10 observations (with a set of variables) and I want to uniformly select an observation from this given dataset, that

Re: [R] Confused about loading other packages from a package

2004-09-09 Thread Roger D. Peng
In R 2.0.0-to-be I think putting marray in the Depends: field will solve your problem. Otherwise, you might want to import the marrayNorm class in your NAMESPACE file. -roger hadley wickham wrote: In my package, I create a new method for plot with the following signature: setMethod(plot,

Re: [R] calculating memory usage

2004-09-14 Thread Roger D. Peng
If you only have simple objects in your function, you might be able to use a function like totalMem - function() { sum(sapply(ls(all = TRUE), function(x) object.size(get(x / 2^20 } which should give you a rough idea of the memory usage (in MB) in the current environment. -roger

[R] Getting the argument list within a function

2004-09-14 Thread Roger D. Peng
Is there a way of getting the argument list of a function from within that function? For example, something like f - function(x, y = 3) { fargs - getFunctionArgList() print(fargs) ## Should be `alist(x, y = 3)' } Thanks, -roger __

Re: [R] Getting the argument list within a function

2004-09-14 Thread Roger D. Peng
Ergh, yes, that's exactly it. I didn't realize you could use it in that way. Thanks, -roger Jeff Gentry wrote: Is there a way of getting the argument list of a function from within that function? For example, something like Would formals() work for you here?

Re: [R] Throwing expressions around

2004-09-24 Thread Roger D. Peng
I think you want some eval/substitute action, such as fc - function(m) { eval(substitute(curve(m))) } -roger Barry Rowlingson wrote: I'm trying to write some code that throws a few expressions around the place, and I've boiled down the problem to be equivalent to this. Consider the curve function

Re: [R] colClasses

2004-10-11 Thread Roger D. Peng
When using colClasses you need to specify the types of all the columns. So assuming the other columns are numeric data, you could set colClasses = c(character, numeric, character, numeric, numeric) -roger Kalaylioglu, Zeynep (IMS) wrote: Hi I am trying to read a data frame from a text editor in

Re: [R] 64-bit R on Intel Xeon EM64T running fine

2004-10-12 Thread Roger D. Peng
This is good news. As far as I know R has built for quite some time now on a number of 64 bit platforms (Linux on AMD Opteron/Athlon64, Solaris/Sparc) but I can't recall seeing a build on Intel with the 64 bit extensions. By the way, did you happen to run `make check' just for kicks? -roger

Re: [R] constrained optimization using nlm/optim?

2004-10-12 Thread Roger D. Peng
My guess is that approach will not work particularly well with nlm(), which expects the objective function to be smooth. You might have better luck using the Nelder-Mead method in optim(). -roger Jeff D. Hamann wrote: I'm looking for an example of a simple R script that impliments a contrained

Re: [R] xyplot gets overplotted by plot

2004-10-14 Thread Roger D. Peng
Mixing base and lattice graphics, in general, does not work. If you really want to do something along these lines, look at the `gridBase' package on CRAN. -roger Henric Nilsson wrote: Dear all, After having set par(mfrow = c(2, 2)) and switching between plot() and xyplot() using R 2.0.0

Re: [R] maximum likelihood estimation

2004-10-14 Thread Roger D. Peng
What lead you to believe that mle() is defunct? It's still in the `stats4' package in my installation of R. -roger T. Murlidharan Nair wrote: Since mle is defunct is there anyother function I can use for maximum likelihood estimation ? Thanks ../Murli

Re: [R] hashing

2004-10-16 Thread Roger D. Peng
/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] sapply and loop

2004-10-16 Thread Roger D. Peng
-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Lattice .ps graphic is rotated in LaTeX slides

2004-10-01 Thread Roger D. Peng
You might be encountering the infamous auto-rotation feature. In Unix you can turn it off via something like setenv GS_OPTIONS -dAutoRotatePages=/None (or the bash equivalent). -roger Michael Friendly wrote: I've generated a version of the classic dotplot of the barley data with

Re: [R] Checking if an element is part of a vector

2004-10-06 Thread Roger D. Peng
Try element %in% vector or look at match() -roger Dominik Bach wrote: Hi! I want to know if a given element - ('c64') is part of a vector- ('c64', 'amiga', 'atari'). Does a function exist for this which gives back a logical value? thankx db __ [EMAIL

Re: [R] control enviromnet

2004-10-06 Thread Roger D. Peng
I think you want something like exists(x, where = environment(), inherits = FALSE) -roger [EMAIL PROTECTED] wrote: Hi all: I would like to implement an option in my function so that it warns me of any variables that are not defined in the current environment - if it needs to look up variables in

Re: [R] 'with' usage question

2004-10-07 Thread Roger D. Peng
I think what's happening is that the function aov.SS1 will look up variables in the environment in which it was *defined*, which in your case (I'm guessing) is the global environment/workspace. Therefore, if `speed' and `Subject' are not defined in the global environment, they will not be

Re: [R] 'with' usage question

2004-10-07 Thread Roger D. Peng
* the global environment. -roger RenE J.V. Bertin wrote: On Thu, 07 Oct 2004 13:17:02 -0400, Roger D. Peng [EMAIL PROTECTED] wrote regarding Re: [R] 'with' usage question 8-) I think what's happening is that the function aov.SS1 will look up 8-) variables in the environment in which it was *defined

Re: [R] How to use alpha transparency channel for colors?

2004-10-07 Thread Roger D. Peng
There happens to be a nice article about this by Paul Murrell in the most recent R Newsletter at http://cran.r-project.org/doc/Rnews/. -roger [EMAIL PROTECTED] wrote: The release notes for R 2.0.0 states: It is now possible to specify colours with a full alpha transparency channel via the

Re: [R] how to study the code of R

2004-10-18 Thread Roger D. Peng
9.1 year 2004 month06 day 21 language R __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http

Re: [R]: a package problem

2004-10-28 Thread Roger D. Peng
. What should I do? Thank you very much. Xin __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng

Re: [R] question about R on Linux Cluster

2004-10-29 Thread Roger D. Peng
-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Converting strings to date

2004-11-09 Thread Roger D. Peng
not work? Thanks Joao Moreira [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http

Re: [R] remove missing values from matrix or data frame

2004-11-09 Thread Roger D. Peng
and standard, but I haven't been able to see it yet (nor on Google). Thanks. __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng

Re: [R] Basic Q on coercing factors in data frames to numeric

2004-11-10 Thread Roger D. Peng
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] substitute/paste question for using Greek in plot titles

2004-11-10 Thread Roger D. Peng
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] R works on Fedora Core 3

2004-11-11 Thread Roger D. Peng
to run that command a few times, closing the opened faulty device window in between to get the title bar to appear. Same result running R from within xemacs/ess. Gav -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing

Re: [R] Logical and

2004-11-11 Thread Roger D. Peng
__ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https

Re: [R] expressions and paste

2004-11-11 Thread Roger D. Peng
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Problems installing ncdf package into R

2004-11-12 Thread Roger D. Peng
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] R on 64-bit Linux machine

2004-11-12 Thread Roger D. Peng
]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https

Re: [R] deleting a file

2004-11-16 Thread Roger D. Peng
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] hashing using named lists

2004-11-18 Thread Roger D. Peng
PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch

Re: [R] glm with Newton Raphson

2004-11-19 Thread Roger D. Peng
__ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng

Re: [R] Running sum

2004-11-19 Thread Roger D. Peng
]+X[i] } return(max(Y)) Is there a faster way to do this? Thanks, Sean __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng

Re: [R] How to insert one element into a vector?

2004-11-22 Thread Roger D. Peng
! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

Re: [R] non-visible functions in return to methods()

2004-11-29 Thread Roger D. Peng
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] make check-all failed on SLES8 for x86_64

2004-12-14 Thread Roger D. Peng
__ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https

Re: [R] reading svm function in e1071

2004-12-16 Thread Roger D. Peng
/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] outer(-x, x, pmin) cannot allocate

2004-12-22 Thread Roger D. Peng
the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

Re: [R] Export the R object

2004-12-31 Thread Roger D. Peng
If you want to export data frame, you can use write.table() to write out a CSV (comma separated value) file, which you can then read into Excel. -roger Ko,Younhee wrote: Hi, I just have a quick question. If I got some result as the result of R, how can I export the result object? I mean, if

Re: [R] install.packages() for local source file

2005-01-01 Thread Roger D. Peng
By the way, do you get this error in a recent version of R (say = 1.9.1). I believe install.packages() has changed since 1.9.0. For example, see the thread starting here https://stat.ethz.ch/pipermail/r-help/2004-July/053001.html -roger Paul Roebuck wrote: Wish to install a local source

Re: [R] Hardware Suggestions

2005-01-24 Thread Roger D. Peng
We've been running servers with AMD Opterons (both duals and 4-ways) using SuSE SLES 8 and Fedora Core 2 and 3 (64 bit). All work well and R can access up to ~15GB of RAM on our 4-way machine (which has 16GB installed). One of the Red Hat Enterprise Linux versions comes with a buggy compiler but

Re: [R] using eval() with pre-built expression inside function

2005-01-24 Thread Roger D. Peng
__ 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 -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ R

Re: [R] getting package version inside .First.lib

2005-01-27 Thread Roger D. Peng
Adrian Baddeley __ 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 -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng

Re: [R] Handling large data sets via scan()

2005-02-04 Thread Roger D. Peng
__ 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 -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ R

Re: [R] how to generate a function from a linear model

2005-02-04 Thread Roger D. Peng
. Thanks in advance for the help. Tony Han Bao [EMAIL PROTECTED] __ 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 -- Roger D. Peng http

Re: [R] install RMySQL

2005-02-07 Thread Roger D. Peng
@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 -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Converting a list to a matrix - I still don't think I have it right

2005-02-17 Thread Roger D. Peng
__ 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 -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ R

Re: [R] using 'nice' with R

2005-02-22 Thread Roger D. Peng
On a Unix like system you can do `nice +19 R' or perhaps `nice +19 R CMD BATCH commands.R'. -roger Robert Burrows wrote: I would like to use the 'nice' command when running CPU-intensive R functions on a server. Will starting R with 'nice R' do the trick? -- Roger D. Peng http

Re: [R] orientation of eps files

2005-03-02 Thread Roger D. Peng
might be causing this problem, i would be extremely happy to hear them. best regards, andrew. -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] removing message: [Previously saved workspace restored]

2005-03-08 Thread Roger D. Peng
?Startup and related docs, but I am utterly failing to understand how to remove [Previously saved workspace restored] when I call R from the offending dir... I am using R on Debian Sarge x86 Cheers, Federico Calboli -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng

Re: [R] newbie question about beta distribution

2005-03-19 Thread Roger D. Peng
A probability density must integrate to 1. The specific values of the density can be either more or less than 1. -roger [EMAIL PROTECTED] wrote: hi everyone, I'm still a newbie in statistics, I have a question about beta distribution, that is, On the ref/tutorials I've found on the net, why

Re: [R] Maximum amount of memory

2005-03-21 Thread Roger D. Peng
__ 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 -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ R-help@stat.math.ethz.ch mailing

Re: [R] Will R work on this 64 bit machine?...

2005-03-23 Thread Roger D. Peng
read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ 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

Re: [R] How to split a single vector into a multiple-column and multiple-row matrix

2005-03-25 Thread Roger D. Peng
@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 -- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/ __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Introduce a new function in a package?

2005-04-06 Thread Roger D. Peng
I think the usual way is to create an R package for yourself and load it when you need it for whatever project. -roger Luis Ridao Cruz wrote: R-help, Sometimes I define functions I wish to have in any R session. The obvious thing to do is copy-paste the code The thing is that sometimes I don't

Re: [R] bootstrap vs. resampleing

2005-04-06 Thread Roger D. Peng
What you're describing sounds like subsampling, about which John Hartigan has written a few papers. -roger array chip wrote: Hi, I understand bootstrap can be used to estimate 95% confidence interval for some statistics, e.g. variance, median, etc. I have someone suggesting that by resampling

Re: [R] Is a .R script file name available inside the script?

2005-04-07 Thread Roger D. Peng
I think you might want 'commandArgs()' which gives you the original command line call. -roger Darren Weber wrote: Hi, if we have a file called Rscript.R that contains the following, for example: x - 1:100 outfile = Rscript.Rout sink(outfile) print(x) and then we run source(Rscript.R) we get an

Re: [R] the 'copula' package

2006-04-24 Thread Roger D. Peng
-project.org/posting-guide.html -- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/ __ 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] kernel smoothing of disease rates at locations

2006-05-10 Thread Roger D. Peng
It is certainly possible to get negative values when smoothing, especially on the edges. But we cannot reproduce your problem because you did not provide any code. -roger Oarabile Molaodi wrote: I want to do kernel smoothing on the standardised mortality rates at specified location(x-y

Re: [R] Large database help

2006-05-16 Thread Roger D. Peng
You can read fixed-width-files with read.fwf(). But my rough calculation says that your dataset will require 40GB of RAM. I don't think you'll be able to read the entire thing into R. Maybe look at a subset? -roger Rogerio Porto wrote: Hello all. I have a large .txt file whose variables

Re: [R] iraq statistics - OT

2006-05-19 Thread Roger D. Peng
I guess it all depends on what you include in the category of violent death. This study is the only one I'm aware of to attempt to address this: http://www.thelancet.com/journals/lancet/article/PIIS0140673604174412/fulltext (there's a registration but I think it's free, can't remember). -roger

Re: [R] timeSeq and TimeDate analog in R ?

2006-05-31 Thread Roger D. Peng
guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/ __ 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

Re: [R] function environment

2006-06-02 Thread Roger D. Peng
/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/ __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] speed?

2006-06-02 Thread Roger D. Peng
/posting-guide.html -- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/ __ 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 add degree character in axis?

2006-06-09 Thread Roger D. Peng
to -10, this values represents the longitudes positions in space. I try to put 45°S for real value (-45) in the axis-x, and for all elements . Anybody can give an advance in this problems. Thank for all -- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng

Re: [R] MLE maximum number of parameters

2006-06-19 Thread Roger D. Peng
D. Peng | http://www.biostat.jhsph.edu/~rpeng/ __ 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] Possible to get a definition of a function from a package to use without invoking the package?

2006-06-27 Thread Roger D. Peng
-- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/ __ 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] Date Format

2006-07-11 Thread Roger D. Peng
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/ __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] FW: Large datasets in R

2006-07-18 Thread Roger D. Peng
list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng

Re: [R] finding method file?

2006-04-03 Thread Roger D. Peng
-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 -- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/ __ R-help@stat.math.ethz.ch

Re: [R] How to draw holes generated by gpclib using plot function

2004-05-11 Thread Roger D. Peng
Sorry, but this limitation in plotting is something that I probably should have mentioned in the help page. At the time when I wrote this plotting wasn't really a priority so I never thought much of it. The GPC C library has a function has a function to return a collection of tristrips but

  1   2   3   4   >