Displaying 20 results from an estimated 3000 matches similar to: ""Executing" a string"
1999 Oct 15
2
IEEE_754 logic
Can anybody of the architects of R enlighten me about the reasoning behind the selection of the IEEE 754
mode for the building of R, please?
Special points of interest are:
1. The selection seems to be based on the availability of isnan() and finite(). Is this a common way
to test for IEEE 754?
2. The C9x draft introduces isfinite() instead of finite() (and as I see, some systems, e.g. the
2001 Apr 09
1
Support for compartment models / matrix exponential method
I try to fit reaction kinetic data to a given hypothetical model
consisting of 3 ODEs. After some reading in Bates/Watts and the literature
cited there (e.g. Jennrich/Bright) I looked in R for functions that support
the use of the matrix exponential method. Until now I used for a similar
(but simpler) problem the nls package and fitted against the the parameterized
solution function. But this
2000 Oct 12
1
Accumulating data row by row into a data frame
After the overwhelming response to my last question (many thanks!),
I cannot resist to ask the next maybe trivial question:
All sources I have looked into tell me about building data frames
by reading from files or by putting vectors of data ("column by column")
together.
Now I would like to create an (empty) data frame with "headings" for
every column (column titles) and then
2001 Mar 16
1
Catching error messages (from nls(), e.g.)
I try to fit subsequentially different nonlinear models to data.
Up to now I tried a first model and if I could not fit this one
proceeded to another one.
Now I would like to handle this automatically. But much to my
chagrin I did not find a way for dealing with the error messages
from nls(), e.g. getting them as "control information" or at least
just returning from nls() without a
1999 Oct 25
1
gc_inhibit_torture definition twice?
I have a problem to understand the way gc_inhibit_torture is defined.
In include/Defn.h it is declared as extern, using the __MAIN__ trick this leads to
a definition in main/main.c.
But in main/memory.c you define (and initialize) gc_inhibit_torture again:
int gc_inhibit_torture = 1; /* gets set to zero after initialisations */
Then, in e.g. unix/system.c immediately at the beginning of
2000 Sep 15
3
R on HP-UX, again: modreg.sl fails, 1 arith test fails
I want to report the progress of my attempts to get R running on HP-UX
with gcc:
Firstly, I could work around the PIC problem by leaving out all the lib stuff
(I rebuilt gcc with --enable-share, but this (alone) did not help), e.g. the
line
gcc -shared -fPIC -o ctest.sl ansari.o fexact.o kendall.o ks.o prho.o swilk.o -L/usr/local/lib -lg2c
-lm -L/lib/pa1.1 -L/usr/lib/pa1.1 -u main
2000 Aug 21
2
Loop removal possible?
Dear all,
may be somebody have ideas to my following problem:
I have to multiplicate each element of a vector with his position
in the sorted vector. This isn't a problem ;-)
But now i have a weighting vector with the weight of each observation,
and my problem starts. A little example (due to my bad english) maybe
helps to understand:
x<-c(10,40,50,100) # income vector for instance
2000 Nov 09
3
maximum of nsize=20000k ??
Dear R-ers,
somehow it is not possible to increase nsize to more than
20000k. When I specify e.g.
> R --vsize=10M --nsize=21000K
the result is:
free total (Mb)
Ncells 99658 350000 6.7
Vcells 1219173 1310720 10.0
Maybe I have overlooked s.th....
Marcus
--
+-------------------------------------------------------
| Marcus Eger
| E-Mail: eger.m at gmx.de (NEW)
|
2000 Oct 17
3
Cleaning things up?
Hi,
I know it must be written somewhere but I can't find it.
I'd like to remove all variables or objects that I've created but not the
functions. I look at a few things without success. Is there a R way of doing
this? There are to many to create a manual list.
Thanks in advance.
Yves Gauvreau
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help
2000 Oct 23
3
behaviour of plot(...,type="l")
plot(rnorm(100000),type="l")
plots only about 7e4 lines while the same without type="l" works fine.
Is this a feature or a bug or is this configurable?
R : Copyright 2000, The R Development Core Team
Version 1.1.1 (August 15, 2000)
SunOS 5.5.1 Generic_103640-29 sun4u sparc SUNW,Ultra-1
Thanks
Adrian
--
Adrian Trapletti, Olsen & Associates Ltd., See-
feldstrasse
2000 Aug 29
4
short way
i want to replace certain values of a matrix.
i know how to replace them when the values are in a vector.
i tried the same way for a matrix and got this answer:
la[la==0]<-1
Error in [<-.data.frame(*tmp*, la == 0, value = 1) :
matrix subscripts not allowed in replacement
i found a way to do this with "for()",
but i think this is the worst way to do it.
So is there a
2000 Sep 13
0
Compiling R on HP-UX: "DP relative code"
I tried to build R-1.1.1 on my HP-UX 10.20 box. For this I installed
gcc 2.95.2 and built g77 (version 2.95.2 19991024 (release)).
Making R runs to the point, where shared libs are linked. There it reports:
make[4]: Entering directory `/disk4/hoffmann/Work/rwork/src/library/ctest/src'
gcc -I../../../../include -I/usr/local/include -fPIC -g -O2 -c
2000 Oct 04
5
postscript preview
gday R friends,
I was wondering if anyone could help me with some graphics issues please.
I'm processing R in batch on redhat6.2 with some graphics to be imported
into msword on NT. For scaling within my doco I want some vector type
graphics. win.metafile doesn't seem to be supported on redhat which gives
me postscript. postscript is ideal but doesn't contain a preview so I
1999 Oct 13
3
main/character.c (et.al): dangerous AllocBuffer()
I was hit by ugly crashes of R, when I tried to read big data sets ("volcano").
So I looked into the code and found the following in character.c (triggered by substr()):
I assume that the helper function AllocBuffer() shall facilitate an economic memory management. But
the use of realloc() in the else-branch does not conform to ANSI and may hit you with certain
compilers.
When called
1999 Oct 13
3
main/character.c (et.al): dangerous AllocBuffer()
I was hit by ugly crashes of R, when I tried to read big data sets ("volcano").
So I looked into the code and found the following in character.c (triggered by substr()):
I assume that the helper function AllocBuffer() shall facilitate an economic memory management. But
the use of realloc() in the else-branch does not conform to ANSI and may hit you with certain
compilers.
When called
2007 Feb 18
3
User defined split function in rpart
Dear R community,
I am trying to write my own user defined split function for rpart. I read
the example in the tests directory and I understand the general idea of the
how to implement user defined splitting functions. However, I am having
troubles with addressing the data frame used in calling rpart in my split
functions.
For example, in the evaluation function that is called once per node,
2001 Feb 22
4
Setting elements in data frame
Hi all,
I have a problem which I am biting my teeth into unsuccessfully:
(x <- data.frame(S1=c("a","b","d","F"),N1=c(2,4,6,9),N2=c(6,NA,0,6)))
S1 N1 N2
1 a 2 6
2 b 4 NA
3 d 6 0
4 F 9 6
> is.na(x)
S1 N1 N2
1 FALSE FALSE FALSE
2 FALSE FALSE TRUE
3 FALSE FALSE FALSE
4 FALSE FALSE FALSE
No I want to be able to do:
1) Setting
1999 Oct 12
1
Looking for R_Home ...
This is my first question to this list and possibly a bit dumb, but anyway:
Can anybody tell me, where, e.g. in the "unix" reference release a DEFINITION of
char * R_Home can be found? Via Defn.h the "extern" DECLARATION is everywhere,
but when I derived a somewhat other main() program my linker complained about the
missing definition.
Thomas Hoffmann.
1999 Oct 13
1
formatReal()-bug (or Is there anybody out there w/o IEEE754?)
On a system with IEEE_754 undefined, I run into an bug, when the value
of an element of the first argument (e.g., x[0]) of formatReal() is NA:
1. (format.c:235) if (!R_FINITE ..) gives nanflag=1 (!naflag remains 0)
2. (format.c:272..288) *m gets an value of -2147483643 (from the format
fiddling, should not matter to us)
3. (format.c:289) because naflag is zero, m does not
2000 Mar 09
1
Conditional for XDR code left out in saveload.c (PR#478)
Full_Name: Thomas Hoffmann
Version: 1.0.0
OS: OS/2 Warp 4.0 FP 11
Submission from: (NULL) (141.30.125.20)
I autoconfigured/configured the src'es w/o having XDR (#undef HAVE_RPC_XDR_H).
In saveload.c , at the beginning of the file the XDR code is enclosed by
matching #ifdefs.
But in the NEW_SAVE_FORMAT section, there are no #ifdefs around the XDR code.
Does this imply that using the new