[R] Computational speed question

2007-04-10 Thread David Vonka
Hello,

I'm doing bootstrap in R 2.4.1 in order to compute standard errors of an 
estimator. I'm running the same program on 4 computers. The core of the 
program is a nlm minimization of a function, which is (I believe) nicely 
coded using (t)apply and all the vectorized stuff.

I'm slightly puzzled by the differences in the speed of computation. The 
program works twice as fast on a two years old Celeron (256 MB, running 
Ubuntu Dapper Linux) than on a P4 (1GB, Windows 2000 + Novell) and the 
speed of that Celeron is comparable with an other P4 (1GB, Ubuntu Feisty 
Linux). In general (outside R, text editing, whatever), the Celeron is 
much slower than any of the two P4.

Is there any reason for this ? Is R better optimized for Linux ? Some 
options I might have used when installing R on one of the Linuxes and 
not on the other one ?

Thanks for an answer.

David Vonka

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] Is it possible to only read a subset by read.table ?

2006-07-12 Thread David Vonka
Hello,

is it possible to do something like

DATA - read.table(file=blabla.dat,subset=(sex==male)),

i.e. make R read only a subset of a csv file ?
I think it would be useful in case of very big datasets,
but I can't find such a feature.

Thanks for an answer,
David Vonka

__
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


[R] R-2.2.1 doesn't compile under cygwin/Win2000

2006-01-23 Thread David Vonka
Hello,

I've just downloaded the R-2.2.1 source and I'm trying to
compile it under cygwin (1.5.19-4). The configure script runs
ok, but make generates the following error after a while:


-
al/include -DHAVE_CONFIG_H -D__NO_MATH_INLINES  -g -O2 -c zutil.c -o zutil.o
rm -f libz.a
ar cr libz.a adler32.o compress.o crc32.o deflate.o gzio.o infback.o
inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
ranlib libz.a
make[4]: Leaving directory `/home/Vonkad/R-2.2.1/src/extra/zlib'
make[3]: Leaving directory `/home/Vonkad/R-2.2.1/src/extra/zlib'
make[3]: Entering directory `/home/Vonkad/R-2.2.1/src/extra/xdr'
make[4]: Entering directory `/home/Vonkad/R-2.2.1/src/extra/xdr'
making xdr.d from xdr.c
making xdr_float.d from xdr_float.c
making xdr_mem.d from xdr_mem.c
making xdr_stdio.d from xdr_stdio.c
make[4]: Leaving directory `/home/Vonkad/R-2.2.1/src/extra/xdr'
make[4]: Entering directory `/home/Vonkad/R-2.2.1/src/extra/xdr'
gcc -I. -I. -I../../../src/include -I../../../src/include -I/usr/local/inclu
de -DHAVE_CONFIG_H -D__NO_MATH_INLINES  -g -O2 -c xdr.c -o xdr.o
In file included from xdr.c:59:
./rpc/types.h:63: error: conflicting types for 'malloc'
./rpc/types.h:63: error: conflicting types for 'malloc'
make[4]: *** [xdr.o] Error 1
make[4]: Leaving directory `/home/Vonkad/R-2.2.1/src/extra/xdr'
make[3]: *** [R] Error 2
make[3]: Leaving directory `/home/Vonkad/R-2.2.1/src/extra/xdr'
make[2]: *** [R] Error 1
make[2]: Leaving directory `/home/Vonkad/R-2.2.1/src/extra'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/home/Vonkad/R-2.2.1/src'
make: *** [R] Error 1
--

What could be the cause ?

Regards and thanks,
David Vonka

__
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