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
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
> 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.
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
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
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
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
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
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
"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
"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
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 &&
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
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
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
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
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
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
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
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
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
"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
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,
> >
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
>
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
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
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
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
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
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
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
[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
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
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
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
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)
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
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
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
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
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
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
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.
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
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
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
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
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
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
62 matches
Mail list logo