[R] Computations slow in spite of large amounts of RAM.

2003-07-01 Thread Huiqin Yang
Hi all,

I am a beginner trying to use R to work with large amounts of
oceanographic data, and I find that computations can be VERY slow.  In
particular, computational speed seems to depend strongly on the number
and size of the objects that are loaded (when R starts up).  The same
computations are significantly faster when all but the essential
objects are removed.  I am running R on a machine with 16 GB of RAM,
and our unix system manager assures me that there is memory available
to my R process that has not been used.

1.  Is the problem associated with how R uses memory?  If so, is there
some way to increase the amount of memory used by my R process to get
better performance?

The computations that are particularly slow involve looping with
by().  The data are measurements of vertical profiles of pressure,
temperature, and salinity at a number of stations, which are organized
into a dataframe p.1 (1925930 rows, 8 columns: id, p, t, and s, etc.),
and the objective is to get a much smaller dataframe and the unique 
values for ID is 1409 with the minimum and maximum pressure for each
profile.  The slow part is:

h.maxmin - by(p.1,p.1$id,function(x){
 data.frame(id=x$id[1],
  maxp=max(x$p),
  minp=min(x$p))})

2.  Even with unneeded data objects removed, this is very slow.  Is
there a faster way to get the maximum and minimum values?

platform sparc-sun-solaris2.9
arch sparc   
os   solaris2.9  
system   sparc, solaris2.9   
status   
major1   
minor7.0 
year 2003
month04  
day  16  
language R 

Thank you for your time.

Helen

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] how to install a package of my own functions

2003-05-31 Thread Huiqin Yang
Hi everyone,

  Does anyone know how to get the functions we've made to work as a package? 

 version
 _   
platform sparc-sun-solaris2.9
arch sparc   
os   solaris2.9  
system   sparc, solaris2.9   
status   
major1   
minor7.0 
year 2003
month04  
day  16  
language R

  Thanks a lot.

Helen

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] convert Splus mapproject() in R

2003-02-24 Thread Huiqin Yang
Hello everyone,

  I was wondering if anyone knows how to convert the Splus mapproject( ) function for 
use in R, I would greatly appreciate your help. I am using the following system, R
Version 1.6.1  (2002-11-01) for SunOS 5.5 and  Splus  Version 5.1 Release 1 for Sun 
SPARC, SunOS 5.5.

Thanks, 

Helen

__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] functions different in R and S

2003-02-18 Thread Huiqin Yang
Hello everyone,

  We have encountered the problem of functions that appear different in
R and S.  For example, ! in S becomes system() in R.  We also have
found that new() in S does not exist in R, unless it has a different
name.  I wonder whether there is any resource that can point to useful substitutes for 
S functions that are not recognized by R.  At the same time whether there is a list
of functions, which appear in both R and S but which don't do exactly the same thing.

  Many thanks.

Helen Yang

__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help