RE: [R] AGREP

2004-02-11 Thread Gabor Grothendieck
1. The agrep function in 1.8.1 is not written entirely in R so you would have to move the C code over too. If you have the agrep command at the operating system level (for windows you can get find it by searching for agrep.exe in google) you could try something like this: readLines(pipe("ag

[R] Kernel Density Estimator for 2D Binned Data

2004-02-11 Thread James McCulloch
Dear All, I am researching financial market microstructure and have approx 4 x 10^7 multivariate 2D data samples which I have counted into a 250 x 390 bin matrix (frequency counted 2D histogram) in order to more efficiently manage the volume of data. I now wish to construct a smooth kernel dens

Re: [R] How to detect whether a file exists or not?

2004-02-11 Thread Jeff Gentry
> I would like my program to load variables x,y,x from a file 'myFile.r' but > if this file does not exist, I want my program to create/initialize x,y,z. > Does anyone know how to do this? ?file.exists __ [EMAIL PROTECTED] mailing list https://www.stat.

RE: [R] How to detect whether a file exists or not?

2004-02-11 Thread Gabor Grothendieck
You can adapt this to your situation: z <- try( read.table("myfile", header=T) ) if (class(z) == "try-error") z <- data.frame(x=1,y=2,z=3) You may also be interested in the silent= arg of try. See ?try Date: Wed, 11 Feb 2004 19:22:00 -0800 From: Francisco J Molina <[EMAIL PROTECTED

Re: [R] How to detect whether a file exists or not?

2004-02-11 Thread Roger D. Peng
Even better, file.exists(). -roger Dirk Eddelbuettel wrote: On Wed, Feb 11, 2004 at 07:22:00PM -0800, Francisco J Molina wrote: I would like my program to load variables x,y,x from a file 'myFile.r' but if this file does not exist, I want my program to create/initialize x,y,z. Does anyone know h

Re: [R] How to detect whether a file exists or not?

2004-02-11 Thread Dirk Eddelbuettel
On Wed, Feb 11, 2004 at 07:22:00PM -0800, Francisco J Molina wrote: > > I would like my program to load variables x,y,x from a file 'myFile.r' but > if this file does not exist, I want my program to create/initialize x,y,z. > > Does anyone know how to do this? ?file.info # a

[R] How to detect whether a file exists or not?

2004-02-11 Thread Francisco J Molina
I would like my program to load variables x,y,x from a file 'myFile.r' but if this file does not exist, I want my program to create/initialize x,y,z. Does anyone know how to do this? Thank you very much. Francisco J. Molina __ [EMAIL PROTECTED] maili

RE: [R] lapply and dynamically linked functions

2004-02-11 Thread Jason Nielsen
Well I finally figured it out. After proving to myself that it wasn't the Fortran wrapper with a simple example I started to dig into this. The problem is that I was naming one of my parameters X... which is the name of the input value in lapply... I'm not sure if this is a bug or just the wa

[R] AGREP

2004-02-11 Thread Marcos Sanches
Hi listers If you don't know what is the Edit Distance beetwen two strings, I will try to explain, in fact it is very simple to understund but not to calculate througth a program. It is simplilly the minimum number of operations you must perform to transform string A on string B, by operations I m

Re: [R] 64-bit Windows 2003 build of R

2004-02-11 Thread Peter Dalgaard
"John Sweval" <[EMAIL PROTECTED]> writes: > I am running into serious memory constraint issues with the 32 bit build > of R. We have Windows 2003 on an Itanium 64 box with the Intel 64-bit C > compiler (8.0.041) and want to create a 64-bit version of R. > Unfortunately, I am no longer "current" w

Re: [R] how much memory? was: R does in memory analysis only?

2004-02-11 Thread Douglas Bates
"Samuelson, Frank*" <[EMAIL PROTECTED]> writes: > Is there a way to tell how much memory the computer > running R has? Most Linux distributions have a program called 'free' that reports on the total amount of memory available and the amount used for different purposes. From within R you could us

RE: [R] how to get the GUI directory chooser on Windows?

2004-02-11 Thread Liaw, Andy
Fantastic! Thanks very much, John. Now I can use: cd <- function(dir = tclvalue(tkchooseDirectory()), saveOld=FALSE, loadNew=TRUE) { require(tcltk) if (saveOld) save.image(compress=TRUE) setwd(dir) rm(list=ls(all=TRUE, envir=.GlobalEnv), envir=.GlobalEnv) if (loadNew &&

RE: [R] how to get the GUI directory chooser on Windows?

2004-02-11 Thread John Fox
Dear Andy, At 02:29 PM 2/11/2004 -0500, Liaw, Andy wrote: Thanks to Uwe and Duncan Murdoch (who replied off-list). The bottom line is as Uwe said: no existing R level functionality. I guess it might be possible to do something similar with Tcl/Tk, but I do not know Tcl/tk... With the tcltk packag

Re: [R] large fonts on plots

2004-02-11 Thread Ray Brownrigg
On 11 Feb 2004 at 13:30, Piet van Remortel wrote: > Hi all, > > I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in > labels and titles etc. Nobody seems to have mentioned another way of achieving this, which is to scale the original plot to suit the intended final size in the

Re: [R] .Call setAttrib(ans,R_DimSymbol,dim); Crashes.

2004-02-11 Thread Douglas Bates
Douglas Bates <[EMAIL PROTECTED]> writes: > "wolski" <[EMAIL PROTECTED]> writes: > > > I want to return a matrix. The code does the R interfacing. This > > version does it fine. > > > > SEXP ans,dim; > > PROTECT(ans = NEW_NUMERIC(count*2)); > > memcpy(NUMERIC_POINTER(ans),result,count*siz

[R] tobit Heteroscedasticity

2004-02-11 Thread fernando freitas
What is command for tobit Heteroscedasticity? FErnando Freitas [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-proje

[R] gelman.diag question

2004-02-11 Thread Icabalceta, Jorge L.
Dear Friends, I am trying to use the gelman-rubin convergence test. I generated a matrix samp[10,000x86] with the gibbs sampler. the test requires the creation of "mcmc" objects. Since I don't know how to define samp as a "mcmc" object, I tried to create one mcmc object by means of the mcmc() funct

Re: [R] About the macro defined in Rinternals.h

2004-02-11 Thread Douglas Bates
Song Baiyi <[EMAIL PROTECTED]> writes: > I try to write a c++ code which calls embedded R and uses some of R > internal functions. What I read is just lots of macro names defined in > the Rinternals.h or Rdefines like R_Parse, Rf_install and so on. But > where can I get the detailed information a

Re: [R] The ttest.c example in R under MS Windows

2004-02-11 Thread Duncan Murdoch
On Wed, 11 Feb 2004 17:24:44 +0100, [EMAIL PROTECTED] wrote : >$ rcmd install windlgs > >make: *** No rule to make target `Files/R/rw1081/src/library'. Stop. >*** Installation of windlgs failed *** > >What is missing here? Some of the tools get confused by spaces in pathnames. It's

Re: [R] how much memory? was: R does in memory analysis only?

2004-02-11 Thread Samuelson, Frank*
Is there a way to tell how much memory the computer running R has? -Frank -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 1:32 PM To: Ross Boylan Cc: r-help Subject: RE: [R] R does in memory analysis only? Ross Boylan writes: > R works on

[R] 64-bit Windows 2003 build of R

2004-02-11 Thread John Sweval
I am running into serious memory constraint issues with the 32 bit build of R. We have Windows 2003 on an Itanium 64 box with the Intel 64-bit C compiler (8.0.041) and want to create a 64-bit version of R. Unfortunately, I am no longer "current" with C builds, i.e. - I haven't done one in years an

Re: [R] .Call setAttrib(ans,R_DimSymbol,dim); Crashes.

2004-02-11 Thread Douglas Bates
"wolski" <[EMAIL PROTECTED]> writes: > I want to return a matrix. The code does the R interfacing. This > version does it fine. > > SEXP ans,dim; > PROTECT(ans = NEW_NUMERIC(count*2)); > memcpy(NUMERIC_POINTER(ans),result,count*sizeof(double)); > memcpy(&(NUMERIC_POINTER(ans)[count]),occ

RE: [R] how to get the GUI directory chooser on Windows?

2004-02-11 Thread Liaw, Andy
Thanks to Uwe and Duncan Murdoch (who replied off-list). The bottom line is as Uwe said: no existing R level functionality. I guess it might be possible to do something similar with Tcl/Tk, but I do not know Tcl/tk... Best, Andy > From: Uwe Ligges > > Liaw, Andy wrote: > > > Dear R-help, > >

[R] AGREP

2004-02-11 Thread Marcos Sanches
Hi all, I have two questions 1 - I have the version 1.4.1 of R, and it doesn't have the 'agrep' function in the base library. Is there a way to make this funcion avaliable in R 1.4.1? I mean, how to 'copy' it from R 1.8.1 and 'paste' it in R 1.4.1? 2 - The AGREP function doesn't give me

Re: [R] proportions

2004-02-11 Thread Stefano Calza
Or look at CrossTable in package gregmisc (which actually uses prop.table) to get something like proc freq in SAS. HIH, Stefano On Wed, Feb 11, 2004 at 01:11:21PM -0600, Marc Schwartz wrote: > On Wed, 2004-02-11 at 08:49, Mauricio Cardeal wrote: > > Hi all: > > > > Please be patient with my sil

RE: [R] The ttest.c example in R under MS Windows

2004-02-11 Thread Lennart . Borgman
Thank you Andy, and thank you to all others who responded. I downloaded the tools and the compiler (though I used MSYS from the MINGW site, which seems to have the desired tools). From the bash shell that comes with MSYS I ran the commands in readme.packages: $ cd R_HOME/src/gnuwin32 $ m

Re: [R] proportions

2004-02-11 Thread Marc Schwartz
On Wed, 2004-02-11 at 08:49, Mauricio Cardeal wrote: > Hi all: > > Please be patient with my silly question: > > How can I get proportions if I have a contingency table ? > > I tried the table command, but I almost sure I made my usual mistakes. > > Thaks > > Mauricio See ?prop.table HTH,

Re: [R] large fonts on plots

2004-02-11 Thread Itay Furman
On Wed, 11 Feb 2004, Petr Pikal wrote: > On 11 Feb 2004 at 13:30, Piet van Remortel wrote: > > > Hi all, > > > > I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in > > labels and titles etc. > > using cex.main=some.number.greater.than.1 in > title(...) > will enlarge font

[R] proportions

2004-02-11 Thread Mauricio Cardeal
Hi all: Please be patient with my silly question: How can I get proportions if I have a contingency table ? I tried the table command, but I almost sure I made my usual mistakes. Thaks Mauricio __ [EMAIL PROTECTED] mailing list https://www.stat.mat

[R] About the macro defined in Rinternals.h

2004-02-11 Thread Song Baiyi
Hello everyone, I try to write a c++ code which calls embedded R and uses some of R internal functions. What I read is just lots of macro names defined in the Rinternals.h or Rdefines like R_Parse, Rf_install and so on. But where can I get the detailed information about the parameters of these

Re: [R] how to get the GUI directory chooser on Windows?

2004-02-11 Thread Uwe Ligges
Liaw, Andy wrote: Dear R-help, Can anyone tell me if it's possible to call up the "directory chooser" (the one you get when you click on "File" -> "Change Dir...") in Rgui from the R command line? Seems like file.choose() can't be used to choose a directory. Looks like there is no R function to

Re: [R] large fonts on plots

2004-02-11 Thread Uwe Ligges
Piet van Remortel wrote: Hi all, I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in labels and titles etc. I seem to be unable to figure out how to do it.The problem is that the titles of the plots are simply unreadable when I insert them into my LaTeX text, since they

Re: [R] large fonts on plots

2004-02-11 Thread Petr Pikal
Hallo On 11 Feb 2004 at 13:30, Piet van Remortel wrote: > Hi all, > > I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in > labels and titles etc. using cex.main=some.number.greater.than.1 in title(...) will enlarge fonts in main title. follow ?par, ?title, ?axis Howev

Re: [R] large fonts on plots

2004-02-11 Thread Mahbub Latif
see ?par Mahbub. --- Piet van Remortel <[EMAIL PROTECTED]> wrote: > Hi all, > > I need to enlarge te fonts used oo R-plots (plots, > histograms, ...) in > labels and titles etc. > > I seem to be unable to figure out how to do it. > The problem is that the > titles of the plots are simply un

[R] Re: Clinical Significance as a package

2004-02-11 Thread Dave Atkins
Alistair-- I wrote functions to calculate Clinical Significance in Splus for the following article: McGlinchey, J. B., Atkins, D. C., & Jacobson, N. S. (2002). Clinical significance methods: Which one to use and how useful are they? Behavior Therapy, 33, 529-550. I will send the functions to

Re: [R] large fonts on plots

2004-02-11 Thread Duncan Murdoch
On Wed, 11 Feb 2004 13:30:22 +0100, Piet van Remortel <[EMAIL PROTECTED]> wrote : >Hi all, > >I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in >labels and titles etc. > >I seem to be unable to figure out how to do it.The problem is that the >titles of the plots are simp

Re: [R] RGui (Windows) crashes after use of a Salford Fortran DLL

2004-02-11 Thread Duncan Murdoch
On Wed, 11 Feb 2004 11:30:35 +, "Steve Roberts" <[EMAIL PROTECTED]> wrote : >Anybody out there successfully using the Salford Fortran compilers >with R? > >I have created a DLL using the Salford FTN95 compiler and it works >in as far I can dyn.load it, run the routines and get the right >

Re: [R] Any help with bootstrapping

2004-02-11 Thread Roger D. Peng
This is not an error. It is a warning. I sometimes get it when there are aren't enough data or there aren't enough bootstrap iterations. -roger Ivone Figueiredo wrote: Could someone help me on how to correctly try to correct this error message arning : BCa Intervals used Extreme Quantiles So

Re: [R] large fonts on plots

2004-02-11 Thread Chuck Cleland
Piet van Remortel wrote: I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in labels and titles etc. I seem to be unable to figure out how to do it.The problem is that the titles of the plots are simply unreadable when I insert them into my LaTeX text, since they are relat

Re: [R] Any help with bootstrapping

2004-02-11 Thread Uwe Ligges
Ivone Figueiredo wrote: Could someone help me on how to correctly try to correct this error message arning : BCa Intervals used Extreme Quantiles Some BCa intervals may be unstable Warning message: Extreme Order Statistics used as Endpoints in: norm.inter(t, adj.alpha) Regards IF Note that th

Re: [R] interfacing C code in Windows

2004-02-11 Thread Uwe Ligges
Peyrard Nathalie wrote: Hi, I know how to incorporate C code in R if using Linux. Can someone explain me how to do the same using Windows (if it is possible)? The same as under Linux, in principle. See the "Writing R Extensions" , the R for Windows FAQs, and in particular the file .../src/gnuw

Re: [R] Erro in loadNamespace

2004-02-11 Thread Uwe Ligges
Ulrich Leopold wrote: Dear list, Iget the following error message: help.search("omit.na") Error in loadNamespace(name) : package 'tools' does not have a name space I do not quite understand what it means in this case. Is something corrupt in the installation? I run R-1.8.1 in Linux RedHat 9 wit

[R] .Call setAttrib(ans,R_DimSymbol,dim); Crashes.

2004-02-11 Thread wolski
Hi! I want to return a matrix. The code does the R interfacing. This version does it fine. SEXP ans,dim; PROTECT(ans = NEW_NUMERIC(count*2)); memcpy(NUMERIC_POINTER(ans),result,count*sizeof(double)); memcpy(&(NUMERIC_POINTER(ans)[count]),occur,count*sizeof(double)); /** PROTECT(dim=NE

Re: [R] RGui (Windows) crashes after use of a Salford Fortran DLL

2004-02-11 Thread Uwe Ligges
Steve Roberts wrote: Anybody out there successfully using the Salford Fortran compilers with R? I have created a DLL using the Salford FTN95 compiler and it works in as far I can dyn.load it, run the routines and get the right answers back. Unfortunately subsequently, sometime later, the Rg

Re: [R] Bhat: installation problem

2004-02-11 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: Hi! I'm trying to install package Bhat on a Win machine, had a problem and figured out a fix, but would like to report the problem and make sure the fix is correct. This is what I do: 1. Download Bhat_0.9-07.tar.gz 2. Uncompress it and compress it back to Bhat_0.9-07.zip

RE: [R] RGui (Windows) crashes after use of a Salford Fortran DLL

2004-02-11 Thread Liaw, Andy
My suggestion would be to make sure that your code works with the recommended compilers, and that the problem is not in your code. (This is harder than you might think: I recently found a bug in a Fortran subroutine that crashes R _only_ if I use the latest GCC _and_ turn on optimization.) Andy

Re: [R] Comment: R patterns

2004-02-11 Thread Uwe Ligges
Al Piszcz wrote: A number of the threads that occur in this mail list are excellent descriptions of usage patterns with R. Is anyone developing a catalog of these? The recent 'try' thread and many others are examples that may have value as a separate document or to be merged with the package help

Re: [R] Any help with bootstrapping

2004-02-11 Thread ~ DLC ~
hello, The distribution of your t* seems so asymmetric that the correction for the acceleration is big and extreme t* are selected as critical values of your CI. As BCa CI have the propriety of transformation invariance, a transformation of the scale makes no sense. (you could choose transforme

RE: [R] lapply and dynamically linked functions

2004-02-11 Thread Liaw, Andy
My guess is that you probably refer to `mylist' instead of `x' inside `myfun'. Please show us the entire code, rather than leave us guessing. Andy > From: Jason Nielsen > > Hi all, > > I'm trying to use lapply on a list with the following command: > > out<-lapply(mylist,myfun,par1=p,par2=d)

[R] large fonts on plots

2004-02-11 Thread Piet van Remortel
Hi all, I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in labels and titles etc. I seem to be unable to figure out how to do it.The problem is that the titles of the plots are simply unreadable when I insert them into my LaTeX text, since they are relatively small comp

[R] Error on imodwt function - package waveslim

2004-02-11 Thread susana
Hi, I'm using package waveslim (V 1.3) for wavelet analysis, and I get the following error: mra1=mra(data,J=5) imodwt(mra1) Error in imodwt(mra1) : argument `y' is not of class "modwt" I tried to overcome this doing class(mra1)="modwt" but then I get imodwt(mra1) Error in switch(name, ha

[R] RGui (Windows) crashes after use of a Salford Fortran DLL

2004-02-11 Thread Steve Roberts
Anybody out there successfully using the Salford Fortran compilers with R? I have created a DLL using the Salford FTN95 compiler and it works in as far I can dyn.load it, run the routines and get the right answers back. Unfortunately subsequently, sometime later, the Rgui crashes (access vio

Re: [R] Clinical significance as a package? [Scanned by NHC]

2004-02-11 Thread Chris Evans
On 11 Feb 2004 at 10:15, Alistair Campbell wrote: > But, to my question. Does anyone know if there is a package developed > for evaluating clinical significance using Jacobson and Truax's, or > variations thereof, procedures? Not exactly but you might want to look at: http://www.psyctc.org/sta

[R] Erro in loadNamespace

2004-02-11 Thread Ulrich Leopold
Dear list, Iget the following error message: > help.search("omit.na") Error in loadNamespace(name) : package 'tools' does not have a name space I do not quite understand what it means in this case. Is something corrupt in the installation? I run R-1.8.1 in Linux RedHat 9 with kernel 2.6.2 on In

[R] Bhat: installation problem(2)

2004-02-11 Thread Agustin . Lobo
Sorry I went too fast: copying a "Built:" field to DESCRIPTION makes library(Bhat) not to issue any error message but although "package:Bhat" is in workspace 2, it's empty. This fix does not work. Agus PLEASE NOTE NEW E-MAIL ADDRESS Dr. Agustin Lobo Institut de Ciencies de la Terra "Jaume Almera

[R] Comment: R patterns

2004-02-11 Thread Al Piszcz
A number of the threads that occur in this mail list are excellent descriptions of usage patterns with R. Is anyone developing a catalog of these? The recent 'try' thread and many others are examples that may have value as a separate document or to be merged with the package help documentation.

[R] Bhat: installation problem

2004-02-11 Thread Agustin . Lobo
Hi! I'm trying to install package Bhat on a Win machine, had a problem and figured out a fix, but would like to report the problem and make sure the fix is correct. This is what I do: 1. Download Bhat_0.9-07.tar.gz 2. Uncompress it and compress it back to Bhat_0.9-07.zip 3. Install from the R wind

Re: [R] Constructing an environment from a data.frame

2004-02-11 Thread Uwe Ligges
Duncan Murdoch wrote: Code like df <- data.frame(x=1:10) y <- 20:29 eval(quote(x+y), env=df) does what you might expect: it looks for x and y in the data.frame, and when it doesn't find y there, it looks in the parent environment. However, sometimes I'd like to construct a single environment ou

[R] Any help with bootstrapping

2004-02-11 Thread Ivone Figueiredo
Could someone help me on how to correctly try to correct this error message arning : BCa Intervals used Extreme Quantiles Some BCa intervals may be unstable Warning message: Extreme Order Statistics used as Endpoints in: norm.inter(t, adj.alpha) Regards IF [[alternative HTML version d

[R] The use of R for the elaboration of some index

2004-02-11 Thread Diego Moretti
Hello, Our Statistics Group is evaluating the use of R for the elaboration of some index. We have some datasets sas (120 Mb) and we would like to evaluate performance in the elaborations of mean, percentile, Gini index of a population and of a survey sample. I need to open "a dataset". Currentl

Re: [R] RW1081.exe installation

2004-02-11 Thread Uwe Ligges
Yuandan Zhang wrote: Hi, I download R 1.081 It's called R-1.8.1. for windows (RW1081.exe). I tried to install it on windows 98 or windows xp, it stoped and stated that 'This program must be run under Win32'. Any one have suggestion how to fix it ? Hmm. Strange. Can you try to download the file

Re: [R] MCD-Estimator in R

2004-02-11 Thread Uwe Ligges
Miriam Dreißig wrote: Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on hypatia.math.ethz.ch X-Spam-Status: No, hits=0.7 required=5.0 tests=BAYES_30,HTML_MESSAGE,MIME_HTML_ONLY autolearn=no version=2.6