[R] Label using equivalent of \mathbb{R}

2004-08-26 Thread Simon Cullen
Hi, I'm trying to label the horizontal axis of a plot with a symbol that is the equivalent of \mathbb{R} in LaTeX. I've had a look through the help pages for plotmath and for Hershey and haven't found the symbol. Could someone give me a pointer, please? Using R 1.9.1 on Win32. -- SC

Re: [R] Label using equivalent of \mathbb{R}

2004-08-26 Thread Simon Cullen
On Thu, 26 Aug 2004 15:24:33 +0200, Trenkler, Dietrich [EMAIL PROTECTED] wrote: [Dietrich Trenkler] plot(rnorm(10),xlab=expression(bold(x)),ylab=expression(bold(y))) Not quite what I am looking for, I'm afraid. \mathbb gives blackboard fonts - the capitals with two vertical parallel

Re: [R] Label using equivalent of \mathbb{R}

2004-08-26 Thread Simon Cullen
On Thu, 26 Aug 2004 16:40:09 +0200, Trenkler, Dietrich [EMAIL PROTECTED] wrote: [Dietrich Trenkler] Oh yes, I see. I was too overhasty. Maybe using psfrag http://www.ctan.org/tex-archive/macros/latex/contrib/psfrag/ is a way out. Thanks! That is exactly what I

[R] Win32 C code

2004-07-07 Thread Simon Cullen
Hi, I'm trying to get C code working with R. This is my first time writing C on Windows and I'm making a mess of it. Help! I'm following the example in Roger Peng's An Introduction to the .C interface to R. The C code is: #include R.h void hello(int *n){ int i; for(i=0; i

Re: [R] Win32 C code

2004-07-07 Thread Simon Cullen
On Wed, 7 Jul 2004 12:32:41 -0500 (CDT), Paul Roebuck [EMAIL PROTECTED] wrote: I wrote a batch file to get mine working. Change directory paths to match your setup. That batch file was exactly what I needed! Thanks. -- SC __ [EMAIL PROTECTED] mailing

[R] Improving effeciency - better table()?

2004-07-06 Thread Simon Cullen
of doing this? Anyone have any thoughts? -- SC Simon Cullen Room 3030 Dept. Of Economics Trinity College Dublin Ph. (608)3477 Email [EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Improving effeciency - better table()?

2004-07-06 Thread Simon Cullen
the density that I am working with in order to do this as it isn't standard. I know that, firstly, using a for() loop is bad but the problem didn't lend itself to vectorisation (I thought). Any help would be appreciated. -- SC Simon Cullen Room 3030 Dept. Of Economics Trinity College Dublin Ph

Re: [R] Improving effeciency - better table()?

2004-07-06 Thread Simon Cullen
4.1 0.26 4.3 ifelse 0.22 3.5 0.04 0.7 eval 0.20 3.2 0.06 1.0 paste0.20 3.2 0.10 1.7 seq 0.20 3.2 0.10 1.7 ... $sampling.time [1] 6.34 -- SC Simon

[R] Discontinuities in a simple graph (machine precision?)

2004-05-05 Thread Simon Cullen
/R/DOverDelta.eps), and it was smooth over this range (it takes ages to run, though). Is this a numerical precision problem? Any suggestions on how to improve the precision? I'm running R 1.9 on WinXP, PIII. I haven't changed any R parameters that I know of. -- SC Simon Cullen Room 3030 Dept

Re: [R] Discontinuities in a simple graph (machine precision?)

2004-05-05 Thread Simon Cullen
Thanks to Prof. Ripley, Peter Dalgaard and Uwe Ligges for pointing out that all I needed to do to improve the precision was replace inted - integrate(integrand, a, Inf) with inted - integrate(integrand, a, Inf,rel.tol = .Machine$double.eps^0.5) Thanks for the advice! -- SC Simon Cullen Room 3030

Re: R for economists (was: [R] Almost Ideal Demand System)

2004-02-19 Thread Simon Cullen
so, I think). I'll let you know if I have any useful suggestions. -- SC Simon Cullen Room 3030 Dept. Of Economics Trinity College Dublin Ph. (608)3477 Email [EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman