[R] Suspected memory leak with R v.2.5.x and large matrices with dimnames set

2007-08-18 Thread Peter Waltman
Hi - Admittedly, this may not be the most sophisticated memory profiling performed, but when using unix's top command, I'm noticing a notable memory leak when using R with a large matrix that has dimnames set. To allow people to reproduce the problem I'm seeing, I've

[R] Restricted VAR parameter estimation

2007-08-18 Thread Megh Dal
I have a VAR model with five macro-economic variables, y[1], y[2], y[3], y[4], y[5]. They are related to each other in following manner. y[1,t] = alpha[1,0] + beta[1,1, 1]*y[1,t-1]++beta[1,1, 12]*y[1,t-12] + beta[1,2, 1]*y[2,t-1]++beta[1,2, 12]*y[2,t-12] + e[1,t]

[R] doubt about string comparison

2007-08-18 Thread ramakanth reddy
I have two large arrays of strings array1 with 18 names and array2 with 24000 names ,I want to find the common names in both of them. My arrays are for example Array1 Array2 GAP4 HIST1B-histamine MFG12

[R] Regulatory Compliance and Validation Issues

2007-08-18 Thread Cody Hamilton
As I work as a biostatistician in the medical devices industry, I have been very happy to take part in several conversations on this list regarding the use of R in a regulated environment. It was with great interest, therefore, that I read the new guidance document for the use of R in

[R] Any parser generator / code assistance for R?

2007-08-18 Thread Ali -
Hi, Is there any parser generator like www.antlr.org? Moreover, how does simple code assistance work currently in R? By 'simple code assistance' I meant things like: Object$MTAB -- Object$Method __ R-help@stat.math.ethz.ch mailing list

Re: [R] multiple colors within same line of text

2007-08-18 Thread Jim Lemon
Andrew Yee wrote: Hi, I'm interested in using mtext(), but with the option of having multiple colors in the same line of text. For example, creating a line of text where: Red is red and blue is blue How do you create a text argument that lets you do this within mtext()? You can do

Re: [R] Question about unicode characters in tcltk

2007-08-18 Thread Peter Dalgaard
R Help wrote: hello list, Can someone help me figure out why the following code doesn't work? I'm trying to but both Greek letters and subscripts into a tcltk menu. The code creates all the mu's, and the 1 and 2 subscripts, but it won't create the 0. Is there a certain set of characters

[R] rmeta package forestplot() function

2007-08-18 Thread Christie Jeon
Dear R users, I am trying to create a forest plot with a table of text using the forestplot() function in the rmeta package. I have been trying to reduce the font size of the resulting table of text, but have not been successful. I have tried adding options like 'cex' or 'font' but none of them

Re: [R] residual plots for lmer in lme4 package

2007-08-18 Thread Gregor Gorjanc
John Maindonald john.maindonald at anu.edu.au writes: ... The issue of checking for normality of effects in multi-level models has not been very much researched, as far as I can tell. The function residuals() gives residuals that adjust for all except the highest level of random effects.

Re: [R] Question about unicode characters in tcltk

2007-08-18 Thread Gavin Simpson
On Sat, 2007-08-18 at 14:40 +0200, Peter Dalgaard wrote: R Help wrote: hello list, Can someone help me figure out why the following code doesn't work? I'm trying to but both Greek letters and subscripts into a tcltk menu. The code creates all the mu's, and the 1 and 2 subscripts, but

Re: [R] doubt about string comparison

2007-08-18 Thread Charles C. Berry
rk, See ?sub ?regexp Then try sub( -, -dash-, a-b ) sub( -.*, , a-b ) Chuck On Sat, 18 Aug 2007, ramakanth reddy wrote: I have two large arrays of strings array1 with 18 names and array2 with 24000 names ,I want to find the common names in both of

[R] SVD for sparse matrices

2007-08-18 Thread Oliver Lyttelton
Dear All, I wish to compute the SVD of a matrix M which represents n rows of observations of p column measurements. The p measurements are sampled from a 2 dimensional surface, such that meaningful neighbourhood relationships exists between the p measurement columns. p is too large to compute

Re: [R] several plots on several pages - bug in par(mfg())?

2007-08-18 Thread ONKELINX, Thierry
Dear Rainer, Your could try something like this. test - try( plot(runif(ff)) ) if(class(test) == try-error){ #put here code for an empty plot } Cheers, Thierry ir. Thierry Onkelinx Instituut voor natuur- en

Re: [R] Any parser generator / code assistance for R?

2007-08-18 Thread Martin Maechler
A- == Ali - [EMAIL PROTECTED] on Sat, 18 Aug 2007 00:40:52 +0100 writes: A- Hi, A- Is there any parser generator like www.antlr.org? Moreover, how does simple A- code assistance work currently in R? By 'simple code assistance' I meant A- things like: A- Object$MTAB

Re: [R] Suspected memory leak with R v.2.5.x and large matrices with dimnames set

2007-08-18 Thread Seth Falcon
Hi Peter, Peter Waltman [EMAIL PROTECTED] writes: Admittedly, this may not be the most sophisticated memory profiling performed, but when using unix's top command, I'm noticing a notable memory leak when using R with a large matrix that has dimnames set. I'm not sure I

[R] Question about lme and AR(1)

2007-08-18 Thread Francisco Redelico
Dear R users, As far as I know, EM algorithm can be only applied to estimate parameter from a regular exponential family. A multivariate normal distribution with an AR(1) matrix as covariance matrix does not belong to a regular exponential family, it is belong to a curved exponential

[R] number precision

2007-08-18 Thread pieterprovoost
Hi, I'm trying to find a way to determine how many digits a number has. I tried using nchar(paste(number)), but unfortunately paste will reduce 8.00 to 8. Any thoughts? Pieter -- This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com

Re: [R] names not inherited in functions

2007-08-18 Thread david dav
Thank you to all. And thank you for the extra tips. I had a kind of feeling my names(data.frame(var)) would seem awkward! David __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Suspected memory leak with R v.2.5.x and large matrices with dimnames set

2007-08-18 Thread Peter Waltman
Hi Seth - Thanks for the follow up. I'll definitely check out the devel version at some point since while I've come up with a workaround, this is causing problems for me as it uses up so much memory on some systems that R starts throwing malloc errors and has to be killed from the command

[R] recommended combo of apps for new user?

2007-08-18 Thread Martin Brown
Hi there, I would like some advice, not so much about how to use R, but about software that I need to complement R. I've rooted around in the FAQ's and done a few searches on this mailing list but haven't quite found the perspective I need. I am an experienced data analyst in my field (forest

Re: [R] recommended combo of apps for new user?

2007-08-18 Thread Martin Brown
[i sent this message earlier but apparently should have sent it plain text, as follows..] Hi there, I would like some advice, not so much about how to use R, but about software that I need to complement R. I've rooted around in the FAQ's and done a few searches on this mailing list but haven't

Re: [R] Problem Connecting to Oracle with R from Windows XP

2007-08-18 Thread Adrian Dragulescu
You also need the ROracle package. On 8/15/07, Song, Alex [EMAIL PROTECTED] wrote: Hello, I installed RGui 2.5.1 and package DBI on Windows XP and tried to connect to Oracle database which is on a Linux server. When I tried to use dbDriver(Oracle), I got an error as follows: drv -

[R] Installing Rstem on Mac Intel

2007-08-18 Thread Walter Rojas
Hi all. How do I install Rstem on my mac os X, with Intel processor? I need Rstem in order to run de lsa package. When I run the following command in the R interface: install.packages(Rstem, repos = http://www.omegahat.org/R;, type = source), I get a whole bunch of errors, most of which

Re: [R] Suspected memory leak with R v.2.5.x and large matrices with dimnames set

2007-08-18 Thread Luke Tierney
Seth's analysis is correct. R does return what it can to the malloc system by calling free. When and how much memory malloc releases back to the OS varies with OS and malloc system and also depends on the sizes of allocations. R curently allocates its memory for small objects in pages of about

Re: [R] number precision

2007-08-18 Thread Duncan Murdoch
[EMAIL PROTECTED] wrote: Hi, I'm trying to find a way to determine how many digits a number has. I tried using nchar(paste(number)), but unfortunately paste will reduce 8.00 to 8. I think your problem is that the number of digits a number has is not a property of the number (since the

Re: [R] recommended combo of apps for new user?

2007-08-18 Thread Duncan Murdoch
Martin Brown wrote: [i sent this message earlier but apparently should have sent it plain text, as follows..] Hi there, I would like some advice, not so much about how to use R, but about software that I need to complement R. I've rooted around in the FAQ's and done a few searches on this

[R] Problem with lsa package (data.frame) on Windows XP

2007-08-18 Thread Walter Rojas
Dear R team, The following piece of code (to use the lsa package) works fine on my mac os x, but when I run the same code on Windows XP, it doesn't work any more. ### code: library(lsa) matrix1 = textmatrix(C:\\Documents and Settings\\tine stalmans.TINE. 000\\LSA\\cuentos\\, stemming=TRUE,

Re: [R] recommended combo of apps for new user?

2007-08-18 Thread John Kane
I'm just starting to get a grasp on how R works so don't take my words too seriously but have a look at http://addictedtor.free.fr/graphiques/ for some idea of what R can do for publication quality graphics. It is always possible that you might need another graphics package as well but I think

Re: [R] number precision

2007-08-18 Thread pieterprovoost
I had the impression that when using read.table the number of digits was somehow preserved, but that doesn't make much sense of course. I just discovered I can assign types to columns while doing read.table (colClasses), so my problem is solved. Thanks Pieter -- This message was sent on

Re: [R] recommended combo of apps for new user?

2007-08-18 Thread Gabor Grothendieck
On 8/18/07, Martin Brown [EMAIL PROTECTED] wrote: Hi there, I would like some advice, not so much about how to use R, but about software that I need to complement R. I've rooted around in the FAQ's and done a few searches on this mailing list but haven't quite found the perspective I need.

Re: [R] recommended combo of apps for new user?

2007-08-18 Thread Prof Brian Ripley
Some additional comments on the DBMS front. (a) SPSS is not a DBMS, so it is not clear that you need this. But if you do and are storing valuable data in a DBMS a lot of further questions come into play, like how you are going to do backups. I'd say PostgreSQL was really only for