[R] job advertisement - finance - London based

2007-02-12 Thread john.gavin
Hi, We are looking for a skilled statistician/programmer seeking a career at the intersection of finance, applied statistics and computer science. This position requires a person with a strong background in - data analysis, - design and implementation of algorithms, - software development -

Re: [R] Rconsole - setting the size and location of Windows help files (Rgui)

2007-02-06 Thread john.gavin
Hi, # Dimensions(in characters) of the internal pager. pgrows = 48 pgcolumns = 128 Thanks, that worked. Regards, John. -Original Message- From: talepanda [mailto:[EMAIL PROTECTED] Sent: 06 February 2007 06:37 To: Gavin, John Cc: R-help@stat.math.ethz.ch Subject: Re: [R]

[R] Rconsole - setting the size and location of Windows help files (Rgui)

2007-02-05 Thread john.gavin
Hi, Using the Rconsole file I can specify the size and location of the Rgui windows on NT. e.g. # Dimensions (in characters) of the console. rows = 51 columns = 100 How can I specify the size of the help windows that popups when I ask for help? e.g. '?help' I would like the popup window to

Re: [R] calling R from within Java, using jri

2006-10-06 Thread john.gavin
Hi, (I addressed the JRI issues I had in my previous email below http://article.gmane.org/gmane.comp.lang.r.general/70322 by working with the precompiled version of JRI that is part of the rJava package.) So I can now run the JRI examples as expected but am having difficulty getting the Rengine

[R] calling R from within Java, using jri

2006-09-28 Thread john.gavin
Hi, I want to call R from within Java, using jri as per http://www.rosuda.org/software/jri/ So I am following the instructions in the README file for JRI 0.2-4. I have run 'sh configure.win' and 'make' and they seemed to be successful. (See below for the output from make, for example.) But when

Re: [R] lattice xyplot - aligning date labels so that they align with the grid lines in panel.grid

2006-06-20 Thread john.gavin
Hi Deepayan, You will need to do it manually, e.g.: xyplot(value ~ date, data = x, panel = function(x, y, subscripts, ...) { panel.grid(h = -1, v = 0, col = grey, lwd = 1, lty = 1) panel.abline(v = as.Date(c(2005/01/01, 2006/01/01)),

[R] lattice xyplot - aligning date labels so that they align with the grid lines in panel.grid

2006-06-19 Thread john.gavin
Hi, I have a basic question about aligning date labels for the x-axis in an xyplot so that they align with the grid lines from the panel.grid argument. For example, with x - data.frame( date = seq(as.Date(2005/01/01), as.Date(2006/06/01), length.out = 20), value = runif(20)) xyplot(value ~

[R] compiling a package on a pc - process is stalling

2006-04-11 Thread john.gavin
Hi, On a new pc, I am trying to 'CHECK' an R package containing only R code but the process is hanging and I cant see why. The 00check.log file shows * using log directory 'c:/temp/opRisk.Rcheck' * using R version 2.2.1, 2005-12-20 * checking for file 'opRisk/DESCRIPTION' ... OK * this is

Re: [R] elements in each row of a matrix to the left.

2006-02-28 Thread john.gavin
Hi Patrick/Jeff, Does t(apply(z, 1, sort, na.last=TRUE)) do what you want? Not quite. t(apply(z, 1, sort, na.last=TRUE)) [,1] [,2] [,3] [1,]11 NA [2,]11 NA [3,]11 NA [4,]1 NA NA [5,]1 NA NA [6,] NA NA NA Row 2 is the problem. I

Re: [R] elements in each row of a matrix to the left.

2006-02-28 Thread john.gavin
Hi Patrick, Yes, that works. Thanks for your time. Regards, John. -Original Message- From: Patrick Burns [mailto:[EMAIL PROTECTED] Sent: 28 February 2006 10:28 To: Gavin, John Cc: [EMAIL PROTECTED]; r-help@stat.math.ethz.ch Subject: Re: [R] elements in each row of a matrix to the

[R] elements in each row of a matrix to the left.

2006-02-27 Thread john.gavin
Hi, Given a matrix like (z - matrix(c( 1, 1, NA, NA, NA, NA, 1, NA, 1, NA, 1, NA, NA, 1, 1, 1, NA, NA), ncol = 3)) [,1] [,2] [,3] [1,]11 NA [2,]1 NA1 [3,] NA11 [4,] NA NA1 [5,] NA1 NA [6,] NA NA NA is there a vectorised way to

[R] lapply with argument X

2004-10-06 Thread john.gavin
Gavin john.gavin at ubs.com, Quantitative Risk Models and Statistics, UBS Investment Bank, 6th floor, 100 Liverpool St., London EC2M 2RH, UK. Phone +44 (0) 207 567 4289 Fax +44 (0) 207 568 5352 Visit our website at http://www.ubs.com This message contains confidential information and is intend

RE: [R] defining a template for functions via do.call and substitute.

2004-09-30 Thread john.gavin
files and Bill Venables' R-news article (June 2002), I have tried various permutations with substitute without success. e.g. do.call(substitute, list(fun, list(a = as.name(x), b = as.name(y Regards, John. John Gavin john.gavin at ubs.com, Quantitative Risk Models and Statistics, UBS Investment

[R] defining a template for functions via do.call and substitute.

2004-09-29 Thread john.gavin
(a = as.name(x), b = as.name(y Regards, John. John Gavin john.gavin at ubs.com, Quantitative Risk Models and Statistics, UBS Investment Bank, 6th floor, 100 Liverpool St., London EC2M 2RH, UK. Phone +44 (0) 207 567 4289 Fax +44 (0) 207 568 5352 Visit our website at http://www.ubs.com

[R] formatting tables with long column names via package:xtable within Sweave

2004-07-15 Thread john.gavin
like: long column \\ Column heading \\ Heading with\\ spaces \\ What is the best way to do this or something similar? I am on XP with R 1.9.1 (using XEmacs and ESS). Regards, John. John Gavin john.gavin at ubs.com, Quantitative Risk Models and Statistics, UBS

[R] summary - controling x-labels in xyplot (lattice) when x is POSIX object

2003-10-21 Thread john.gavin
Hi, The solution to my problem is to use lattice:::calculateAxisComponents to calculate appropriate labels for the time axis in trellis plots. # For example, given x - seq.POSIXt(strptime(2003/01/01, format = %Y/%m/%d), strptime(2003/10/01, format = %Y/%m/%d), by = month) y -

[R] controling x-labels in xyplot (lattice) when x is POSIX object

2003-10-20 Thread john.gavin
Hi, V1.8.0 seems to allow DateTimeClasses as the x argument in xyplots (lattice). For example: x - seq.POSIXt(strptime(2003/01/01, format = %Y/%m/%d), strptime(2003/10/01, format = %Y/%m/%d), by = month) y - rnorm(length(x)) dat - data.frame(x= x, y = y) xyplot(y ~ x, data = dat,