Re: [R] r-package RDCOMClient

2007-10-04 Thread Marcin Kopaczynski
the windows version on both machines is the same, namely Microsoft Windows XP Professional Version 2002 Service Pack 2 the r-version is also the same: 2.5.1 RDCOMClient-version on both machines is 0.91-0 rcom-version on both machines is 1.5-2.2 what is different, for both machines is that they

Re: [R] Windows OS, R and unicode

2007-10-04 Thread Prof Brian Ripley
Richard, At present the \u notation only works on Windows in CJK locales, and only to represent characters defined in the locale in use. Now it seems that _does_ include the signs you mention in Japanese. So it is possible that if you start R with Rgui LC_CTYPE=ja then this will work:

Re: [R] tcltk question

2007-10-04 Thread Peter Dalgaard
Tae-Hoon Chung wrote: Is there any requirement for TclTk support for R? When I tried to call the tcltk library, it failed with the following message: library(tcltk) Error in firstlib(which.lib.loc, package) : Tcl/Tk support is not available on this system Error in

Re: [R] Making a table: collapsing across sub-strings

2007-10-04 Thread Dieter Vanderelst
Hi, A sub string can occur anywhere in the main string. I think I could use TABLE and than add the numbers. But I don't know how to access the numbers in the result of table. Another problem is that there might be a hierarchy in the strings. This is, string a might be a subset of b while b

[R] what does size of a plotting character mean?

2007-10-04 Thread Prasenjit Kapat
Hi, plot(1,1, cex=2) means that the size of the plotting character (empty circle in this case) is double the default size. Now my question is: What characteristic of the symbol (circle) is double? Is it the area or the diameter? What if the symbol is not a circle, what is the generic meaning of

[R] plot from source file

2007-10-04 Thread Armin Goralczyk
Dear list Maybe someone can help with the following problem: I have a source file containing the following code for plotting: pdf(file = 'data/mario/boxplot.pdf') bwplot(sig100 ~ target | group, data = fish, main = 'Boxplot der Signale in 100 Zellen nach Gruppe', xlab = '', ylab = 'Anzahl der

[R] hessian matrix in arima

2007-10-04 Thread Di Wang
Hi, I am working or arima. I think arima uses non-linear optimisation for parameter optimisation. The standard error for parameters are computed from hessian matrix. When I use arima model, how can I see the finial hessian got from non-linear optimisation (BFGS for example). Any help is

Re: [R] what does size of a plotting character mean?

2007-10-04 Thread Prof Brian Ripley
On Thu, 4 Oct 2007, Prasenjit Kapat wrote: Hi, plot(1,1, cex=2) means that the size of the plotting character (empty circle in this case) is double the default size. Now my question is: What characteristic of the symbol (circle) is double? Is it the area or the diameter? Is it not obvious

[R] SETAR and nonlinear model estimation

2007-10-04 Thread andrew phiri
I am currently doing a research paper that requires the estimation of a thereshold model. I have gone through the reference manual for the pacjage tsdyn and i am failing to see how the the threshold models provided by R can estimate a model in which the other control variables exist or are

Re: [R] how to specify bin width in hist()

2007-10-04 Thread Jim Lemon
Abu Naser wrote: Hi all user, I have been wondering how the bin width can be specified in hist(). Hi Abu, If you want constant bin widths (e.g. from 0 to 10), it's easy: my.bin.width-2 hist(...,breaks=seq(0,10,by=my.bin.width),...) and the by argument is your width. If you want completely

Re: [R] hessian matrix in arima

2007-10-04 Thread Prof Brian Ripley
On Thu, 4 Oct 2007, Di Wang wrote: Hi, I am working or arima. I think arima uses non-linear optimisation for parameter optimisation. The standard error for parameters are computed from hessian matrix. When I use arima model, how can I see the finial hessian got from non-linear

Re: [R] Data simulation with R

2007-10-04 Thread Arne Henningsen
Hi Matiou: On Thursday 30 August 2007 13:25, Matiou wrote: Hi, I am currently on a placement here at GSK for my studies, and I'm working on Heckman Models. I have to make simulations, in order to see whether these models are efficient or not. I have to generate a dataset under the

[R] print Text on device

2007-10-04 Thread John Lande
hi BioC, I need to plot a vector of characters on a pdf device, not as a legend, but as in image by itself. I tried text but it is only related to locate text in a plot. what do you suggest? sessionInfo() R version 2.6.0 (2007-10-03) x86_64-unknown-linux-gnu locale:

Re: [R] plot from source file

2007-10-04 Thread Vladimir Eremeev
It's a FAQ #7.22 Wrap your plotting commands with print, that is, print(bwplot( )) and print(xyplot( )) Armin Goralczyk wrote: Dear list Maybe someone can help with the following problem: I have a source file containing the following code for plotting: pdf(file =

[R] Türk Patent Enstitüsü ve Moğolistan Fikri Mülkiyet Ofisi Dayanışması

2007-10-04 Thread NETMARK PATENT
Türk Patent Enstitüsü ve Moðolistan Fikri Mülkiyet Ofisi Dayanýþmasý Türk Patent Enstitüsü (TPE) ve Moðolistan Fikri Mülkiyet Ofisi (IPOM) arasýndaki teknik iþbirliði görüþmeleri 21-23 Aðustos 2007 tarihlerinde Moðolistan'ýn Ulan Batur þehrinde gerçekleþtirildi. IPOM

Re: [R] how to specify bin width in hist()

2007-10-04 Thread Abu Naser
Thanks Jim for your response. I will use constant bin width. One more question: Is there anyway I can 2d or 3d histogram calculation/count? With regards, Abu __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] Türk Patent Enstitüsü ve Moğolistan Fikri Mülkiyet Ofisi Dayanışması

2007-10-04 Thread NETMARK PATENT
Türk Patent Enstitüsü ve Moðolistan Fikri Mülkiyet Ofisi Dayanýþmasý Türk Patent Enstitüsü (TPE) ve Moðolistan Fikri Mülkiyet Ofisi (IPOM) arasýndaki teknik iþbirliði görüþmeleri 21-23 Aðustos 2007 tarihlerinde Moðolistan'ýn Ulan Batur þehrinde gerçekleþtirildi. IPOM

[R] Bug or just a problem with the computer precision?

2007-10-04 Thread Renger van Nieuwkoop
Hi I have the following problem: I have a lot of numbers that identify import goods according to the Harmonised System (8 numbers in two groups with a dot in between). I want to move to the 6 numbers (4 numbers, dot, two numbers). My trick to do this works for all the numbers in the Harmonised

Re: [R] Making a table: collapsing across sub-strings

2007-10-04 Thread jim holtman
How many strings are there? Now you could use 'outer' and 'regexpr' to determine which strings are subsets of another and then group them. So knowing the possible number of strings that you will be searching with and how you might want a hierarchy printed out would help in coming up with a

Re: [R] Bug or just a problem with the computer precision?

2007-10-04 Thread jim holtman
You are getting round-off problems (I think it is FAQ 7.33). Use characters since thats what the numbers really are. Convert the characters and then use substring. Also sprintf works: sprintf(%.2f, A*100) [1] 470990.00 sprintf(%.2f, A) [1] 4709.90 On 10/4/07, Renger van Nieuwkoop [EMAIL

Re: [R] Contour plot (level curves)

2007-10-04 Thread Prof Brian Ripley
On Thu, 4 Oct 2007, Caio Azevedo wrote: Hi all, I have a sample of n values from a bivariate distribution (from a MCMC procedure). How could I draw a contour plot of the joint density based on that sample ? You need to estimate the density, and contour that estimate. MASS has examples

Re: [R] Bug or just a problem with the computer precision?

2007-10-04 Thread Peter Dalgaard
jim holtman wrote: You are getting round-off problems (I think it is FAQ 7.33). Use characters since thats what the numbers really are. Convert the characters and then use substring. Also sprintf works: sprintf(%.2f, A*100) [1] 470990.00 sprintf(%.2f, A) [1] 4709.90

Re: [R] Updating packages for R 2.6.0

2007-10-04 Thread Gabor Csardi
You need to install the libc6-dev ubuntu package to be able to compile programs. sudo apt-get install libc6-dev Gabor On Thu, Oct 04, 2007 at 09:54:26AM -0400, Ricardo Pietrobon wrote: I must be making some really basic mistake, since I keep getting an error message when using

Re: [R] print Text on device

2007-10-04 Thread jim holtman
Can you provide an example of what your data looks like and how you might want it plotted. 'text' does 'put' data on your plot. What else do you want? On 10/4/07, John Lande [EMAIL PROTECTED] wrote: hi BioC, I need to plot a vector of characters on a pdf device, not as a legend, but as in

Re: [R] Bug or just a problem with the computer precision?

2007-10-04 Thread Prof Brian Ripley
First, I think you are misusing numbers for what are probably character strings. But with numbers, A - 4709.9000 sprintf(%7.2f, A) [1] 4709.90 R will never print a single number as 4709.90: it will drop the trailing zero. With strings: A - 4709.9000 substr(A, 1, 7) [1] 4709.90 On Thu,

Re: [R] Updating packages for R 2.6.0

2007-10-04 Thread Ricardo Pietrobon
I must be making some really basic mistake, since I keep getting an error message when using update.packages(checkBuilt=TRUE, ask=FALSE) - an example for MASS is below. I am running ubuntu 7.04, with a clean install done today of version 2.6.0 straight from the R repository. here is the message:

Re: [R] Updating packages for R 2.6.0

2007-10-04 Thread Dirk Eddelbuettel
On Thu, Oct 04, 2007 at 09:54:26AM -0400, Ricardo Pietrobon wrote: I must be making some really basic mistake, since I keep getting an error message when using update.packages(checkBuilt=TRUE, ask=FALSE) - an example for MASS is below. I am running ubuntu 7.04, with a clean install done today

[R] Invitation to my Viadeo network

2007-10-04 Thread Sophie Plantieux
Sophie Plantieux invites you to join the Viadeo network Hi, I'd like to invite you to be part of my Viadeo network. I use Viadeo to manage my professional contacts and get in touch with other people in my industry. Give it

[R] RMySQL dbConnect

2007-10-04 Thread Giusy
Hello, I have a problem.. I'm trying to make R communicate with MySQL, but I always receive an error.. My code is: library(DBI) library(RMySQL) drv - dbDriver(MySQL) conn-dbConnect(drv,username=,password=,dbname=prova,host=localhost) and I receive this message: Errore in function

Re: [R] plot from source file

2007-10-04 Thread Thomas Lumley
It's a FAQ (7.22) -thomas On Thu, 4 Oct 2007, Armin Goralczyk wrote: Dear list Maybe someone can help with the following problem: I have a source file containing the following code for plotting: pdf(file = 'data/mario/boxplot.pdf') bwplot(sig100 ~ target | group, data = fish, main

Re: [R] what does size of a plotting character mean?

2007-10-04 Thread Prasenjit Kapat
Hi, Thank you Prof Ripley for the response. On 10/4/07, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Thu, 4 Oct 2007, Prasenjit Kapat wrote: Hi, plot(1,1, cex=2) means that the size of the plotting character (empty circle in this case) is double the default size. Now my question is:

[R] Problem with .libPaths Rterm.exe (under Vista)

2007-10-04 Thread Wolfgang Raffelsberger
Dear list, I’m using R embedded in another program (coded in tcl/tk) under Windows Vista. In this context I don’t launch Rgui.exe but rather Rtem.exe. Now I have a problem finding libraries not specifically installed as administrator (and which are not in the path ‘program files’ but in

Re: [R] A rebel boxplot question

2007-10-04 Thread ONKELINX, Thierry
I've altered the code slightly so one group has no data in one month. library(ggplot2) dataset - data.frame(Month = factor(rep(1:12, 20)), Value = c(rnorm(120) + 1:12, rnorm(120) + 12:1), Group = gl(2, 120, labels = LETTERS[1:2])) dataset - dataset[dataset$Month != 2 | dataset$Group != A,

Re: [R] Contour plot (level curves)

2007-10-04 Thread hadley wickham
On 10/4/07, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Thu, 4 Oct 2007, Caio Azevedo wrote: Hi all, I have a sample of n values from a bivariate distribution (from a MCMC procedure). How could I draw a contour plot of the joint density based on that sample ? You need to estimate

Re: [R] Problem with .libPaths Rterm.exe (under Vista)

2007-10-04 Thread Prof Brian Ripley
On Thu, 4 Oct 2007, Wolfgang Raffelsberger wrote: Dear list, I?m using R embedded in another program (coded in tcl/tk) under Windows Vista. In this context I don?t launch Rgui.exe but rather Rtem.exe. Now I have a problem finding libraries not specifically installed as administrator (and

Re: [R] print Text on device

2007-10-04 Thread John Lande
I would like to print on a pdf a table with element coming from a vector. such as example=c(a, b) pdf(table.pdf) print(example) dev.off() On 10/4/07, jim holtman [EMAIL PROTECTED] wrote: Can you provide an example of what your data looks like and how you might want it plotted. 'text' does

[R] grep in filename

2007-10-04 Thread Alberto Monteiro
Is there any version of grep that gets information from the filename? For example: x - myfile.txt y - grep.file(my text, x) should return in y the lines with my text. I know that x - myfile.txt y - grep(my text, readLines(x)) will probably work, but maybe there's a more direct (and less memory

[R] [R-pkgs] Amap new release

2007-10-04 Thread Antoine
A new major version of Amap package is available on CRAN. For this major release, all clustering code has been rewritten in C++. Amap implements several tools in the field of clustering and robust statistics. New features are: * clustering possible in float precision (less memory needs)

Re: [R] ggplot2: problem with geom_errorbar and geom_abline

2007-10-04 Thread James D Forester
Ben Bolker wrote: In http://www.nabble.com/plot-graph-with-error-bars-trouble-tf4535734.html Hadley Wickham says that this is a bug, fixed in the development version. However, I don't see that the update has propagated to my usual CRAN mirror yet ... The error-bar issue is mentioned

Re: [R] Updating packages for R 2.6.0

2007-10-04 Thread Ricardo Pietrobon
you got it. works perfectly now. thanks On 10/4/07, Gabor Csardi [EMAIL PROTECTED] wrote: You need to install the libc6-dev ubuntu package to be able to compile programs. sudo apt-get install libc6-dev Gabor On Thu, Oct 04, 2007 at 09:54:26AM -0400, Ricardo Pietrobon wrote: I must be

[R] R2.6 + Error saving plots as PDF

2007-10-04 Thread Pedro Mardones
Dear R users; After installing R 2.6.0 I got the following error when I try to save a plot as PDF or PS from the windows plot: Error: Invalid font type In addition: Warning messages: 1: font family not found in PostScript font database 2: font family not found in PostScript font database However

Re: [R] grep in filename

2007-10-04 Thread Charles C. Berry
On Thu, 4 Oct 2007, Alberto Monteiro wrote: Is there any version of grep that gets information from the filename? For example: x - myfile.txt y - grep.file(my text, x) should return in y the lines with my text. I know that x - myfile.txt y - grep(my text, readLines(x)) will probably

Re: [R] combining vectors on unequal length

2007-10-04 Thread John Kane
--- Nair, Murlidharan T [EMAIL PROTECTED] wrote: If I have two vectors X-1:10 Y-1:5 When I combine them using cbind, the shorter one is repeated and both are made of the same length. Is there a methods that does this without duplicating the shorter one. I want to use this to store the

Re: [R] combining vectors on unequal length

2007-10-04 Thread Don MacQueen
Something like this, perhaps: cbind( X, c(Y, rep(NA,length(X)-length(Y))) ) This just extends Y with NA instead of recycling Y. If you are going to cbind() the vectors must be the same length. You *must* have something there. -Don At 1:51 PM -0400 10/4/07, Nair, Murlidharan T wrote: If I

Re: [R] Windows OS, R and unicode

2007-10-04 Thread Greg Snow
An alternative is to use the my.symbols function from the TeachingDemos package (improvements are welcome). -Original Message- From: Richard Rowe [EMAIL PROTECTED] To: R-help@r-project.org R-help@r-project.org Sent: 10/3/07 5:42 PM Subject: [R] Windows OS, R and unicode I'm trying to

Re: [R] combining vectors on unequal length

2007-10-04 Thread Julian Burgos
Well, if you bind two vectors you form an array with dimensions 2 x length of the longest vector. So you need to decide how to fill up the 'empty' spacies corresponding to the shorter vector. Recycling the shorter vector is the default action. If you just want to save the data, you could

[R] [R-pkgs] New version of GillespieSSA package uploaded to CRAN

2007-10-04 Thread Mario Pineda-Krch
Dear useRs, A new version of the package GillespieSSA (0.3-1) has been uploaded to CRAN. The GillespieSSA package (Gillespie's Stochastic Simulation Algorithm) provides a simple to use, versatile, and extensible interface to a number of Monte Carlo implementations of the stochastic simulation

Re: [R] R2.6 + Error saving plots as PDF

2007-10-04 Thread Prof Brian Ripley
On Thu, 4 Oct 2007, Prof Brian Ripley wrote: Pedro Mardones wrote: After installing R 2.6.0 I got the following error when I try to save a plot as PDF or PS from the windows plot: Error: Invalid font type In addition: Warning messages: 1: font family not found in PostScript font database

[R] Convergence problem in gam(mgcv)

2007-10-04 Thread Ariyo Kanno
Dear all, I'm trying to fit a pure additive model of the following formula : fit - gam(y~x1+te(x2, x3, bs=cr)) ,with the smoothing parameter estimation method magic(default). Regarding this, I have two questions : Question 1 : In some cases the value of mgcv.conv$fully.converged becomes FALSE,

Re: [R] Matrix bar plot

2007-10-04 Thread Todd A. Gibson
On Thu, Oct 04, 2007 at 06:15:34PM -0500, hadley wickham wrote: Why would you want a plot that looks like that? Half the bars are hidden behind other bars! I would rotate it such that all bars are visible. -TAG __ R-help@r-project.org mailing list

Re: [R] Matrix bar plot

2007-10-04 Thread Deepayan Sarkar
On 10/4/07, Todd A. Gibson [EMAIL PROTECTED] wrote: On Thu, Oct 04, 2007 at 06:15:34PM -0500, hadley wickham wrote: Why would you want a plot that looks like that? Half the bars are hidden behind other bars! I would rotate it such that all bars are visible. If you are really, really, sure

Re: [R] Matrix bar plot

2007-10-04 Thread Bert Gunter
On Thu, Oct 04, 2007 at 06:15:34PM -0500, hadley wickham wrote: Why would you want a plot that looks like that? Half the bars are hidden behind other bars! I would rotate it such that all bars are visible. -TAG -- thus distorting the perspective even more so that you can not make accurate

[R] plotting region

2007-10-04 Thread array chip
Hi, I have been playing with graphic parameters to meet my specific plot requirement. I would like to draw a plot in the top right region of the plot region, I can do that with a number of parameters such as plt, mar or oma. For example setting the parameters: par(plt=c(0.28,0.956,0.25,0.9)) or

Re: [R] plotting region

2007-10-04 Thread Rolf Turner
On 5/10/2007, at 12:07 PM, array chip wrote: Hi, I have been playing with graphic parameters to meet my specific plot requirement. I would like to draw a plot in the top right region of the plot region, I can do that with a number of parameters such as plt, mar or oma. For example setting

[R] Sklyar's inline package: how to return a list?

2007-10-04 Thread Feng, Ken
Hi, Below I have a mickey-mouse example using Oleg Sklyar's wonderful inline package. The question I have is, how do I return multiple values, say in a list? Inside the C code, I've also calculated 'sum'. How do I return this along with 'res'? Ultimately, I want to return multiple matrix

[R] Confused about Tukey mult. comp. after ANCOVA

2007-10-04 Thread Chabot Denis
Hi, I had a first occasion to try multiple comparisons (of intercepts, I suppose) following a significant result in an ANCOVA. As until now I was doing this with JMP, I compared my results and the post-hoc comparisons were different between R and JMP. I chose to use an example data set

Re: [R] Matrix bar plot

2007-10-04 Thread jim holtman
check out the 'rgl' package On 10/4/07, Todd A. Gibson [EMAIL PROTECTED] wrote: Hello, Does R have any facility to create a plot that looks similar to this: http://www.augustcouncil.com/~tgibson/barmatrix.jpg Thank you, -TAG Todd A. Gibson __

Re: [R] plotting region

2007-10-04 Thread jim holtman
check out the 'grid' package On 10/4/07, array chip [EMAIL PROTECTED] wrote: Hi, I have been playing with graphic parameters to meet my specific plot requirement. I would like to draw a plot in the top right region of the plot region, I can do that with a number of parameters such as plt,

[R] discrepancy in the result of R and SAS on same data in logistics regression

2007-10-04 Thread Atul Malik
Dear Members, Greetings! I have come across a discrepancy shown by R and SAS results on same data for logistics regression.. When I processed the above csv file(1000.csv) for predicting the Action (i/c) by Age Group(1-7,Na) and Gender(M,F,Na) with GLM of R I get: R result Call: