Re: [R] Query regarding linking R with Matlab

2006-12-27 Thread Henrik Bengtsson
Hi, It might be that R can't find Matlab; then you have to specify option 'matlab', see help(Matlab). Try also a different port. Try to add a line setVerbose(matlab, -2) to get more detailed output what is going on; matlab - Matlab(host=localhost, port=9998) setVerbose(matlab, -2) if

[R] fitting all models in log-lm

2006-12-27 Thread Nicolas Mazziotta
Hello, I am trying to use R to carry out loglinear analysis. So far, starting from a previous post in this list (http://finzi.psych.upenn.edu/R/Rhelp02a/archive/33698.html), I have been able to use loglm() to generate likelihood ratio. I now try to find a function that generates all the

Re: [R] how to transform string to variable name in a fuction?

2006-12-27 Thread Abhijit Dasgupta
I believe the split function should work in this case. From the help file: split(x, f, drop = FALSE, ...) split(x, f, drop = FALSE, ...) - value unsplit(value, f, drop = FALSE) Arguments |x| vector or data frame containing values to be divided into groups. |f| a “factor” in the

[R] counties in different colours using map()

2006-12-27 Thread Tord Snäll
Hi, I would like to plot a map of US counties using different colors. map() seems to be the function to use, e.g. library(maps); map('usa'); map('county', 'colorado', add=T,fill = T, col=c(1:5)) plots Colorado counties using colours 1 to 5. However, I want each color to represent a certain

Re: [R] axis and times() problem

2006-12-27 Thread Gabor Grothendieck
Try: plot(x, y, bty = n, xaxs = i, yaxs = i) Actually I think there may be a bug here since the axes do not intersect. On 12/27/06, Knut Krueger [EMAIL PROTECTED] wrote: Dear R-Group, the first example is working as expected, but I need the plot without the box, normally no problem, but I

Re: [R] slightly inconsistent behavior

2006-12-27 Thread Prof Brian Ripley
What do you think is `slightly inconsistent behavior' here? (You seem to be quite consistent in not telling us such relevant facts, including your OS and version of R!) If you think that the memory usage of R should be monotone in the size of the problem, your expectations are unfounded.

Re: [R] building R-package under windows - error - in options(deafultPackages) was not found

2006-12-27 Thread Uwe Ligges
Given the lines after Description: have been wrapped during e-mail transfer and are in one line in your DESCRIPTION file, here are two guesses: - You have some additional library added that contains a broken installation of some base package? - You have declared some non-existing default

Re: [R] plotting time series with zoo pckg

2006-12-27 Thread ahmad ajakh
Dear Gabor, sorry for not posting the code. below I have a piece of code that generates a multivariate zoo data (3 columns) and graphs it using the axis commands to generate the labels. This does not work. However, if one extracts one column the labelling works using the same commands! I cannot

[R] how to suppress a loading required package: ... message

2006-12-27 Thread jacinthe
Hi, how to suppress a loading required package:... message? Kind regards Jaci -- __ 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

Re: [R] how to suppress a loading required package: ... message

2006-12-27 Thread BBands
On 12/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, how to suppress a loading required package:... message? require(package, quiet=TRUE) jab -- John Bollinger, CFA, CMT www.BollingerBands.com If you advance far enough, you arrive at the beginning.

[R] Formatting an arry to typeset as a table

2006-12-27 Thread Greg Snow
I am writting some functions that return an array of coefficients along with confidence intetervals for each coefficient. My intent is to eventually typeset the coefficients and intervals into a table (or tables) in a document. I would like to use existing tools such as the 'latex' function in

Re: [R] plotting time series with zoo pckg

2006-12-27 Thread Gabor Grothendieck
To do it with plot.zoo one has to create a custom panel. Another approach is to use xyplot.zoo since that supports custom scales directly. Note that the ?xyplot.zoo examples contain code that is along the lines of the xyplot.zoo solution. Here are examples of both approaches: library(zoo) #

Re: [R] stacked plots

2006-12-27 Thread Gabor Grothendieck
If this is time series data try library(zoo) example(plot.zoo) example(xyplot.zoo) to see if any of those fit your requirements. On 12/27/06, BBands [EMAIL PROTECTED] wrote: Dear helpeRs, Is there a better method of producing stacked charts than par(mfrow(3,1)), plot(x), plot(y), plot(z)?

Re: [R] stacked plots

2006-12-27 Thread Dirk Eddelbuettel
John, On 27 December 2006 at 08:36, BBands wrote: | Dear helpeRs, | | Is there a better method of producing stacked charts than | par(mfrow(3,1)), plot(x), plot(y), plot(z)? What I would like to do is | produce a chart of several panes stacked vertically with no space | between them so they

Re: [R] counties in different colours using map()

2006-12-27 Thread Mihai Nica
since dr. bivand seems to be away, i will try to help a little :-) i did not work with the database that comes with maps, but with shapefiles from http://www.census.gov/geo/www/cob/co2000.html#shp. you need to merge the dataframe that you have with the shapefile. do you have access to gis

Re: [R] how to suppress a loading required package: ... message

2006-12-27 Thread Dirk Eddelbuettel
On 27 December 2006 at 08:52, BBands wrote: | On 12/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: | Hi, | | how to suppress a loading required package:... message? | | require(package, quiet=TRUE) Some packages insist on talking even when they are asked to be quiet, in which case I have

Re: [R] how to suppress a loading required package: ... message

2006-12-27 Thread Gabor Grothendieck
Or try: invisible(capture.output(library(Hmisc))) On 12/27/06, Dirk Eddelbuettel [EMAIL PROTECTED] wrote: On 27 December 2006 at 08:52, BBands wrote: | On 12/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: | Hi, | | how to suppress a loading required package:... message? | |

Re: [R] stacked plots

2006-12-27 Thread BBands
On 12/27/06, Dirk Eddelbuettel [EMAIL PROTECTED] wrote: Do you remember the bollingerBands example we worked on a few years ago and that is still at Romain's incredible R Graph Gallery at http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=65 It uses layout, you can also use

Re: [R] stacked plots

2006-12-27 Thread ahmad ajakh
Hi John, I cannot see the attached file but if you read the vignette of the zoo package there is an example with Lucent stock price (High Low Open Close) doing what you want. the command plot(z) (z being the zoo multivariate object) produces the graph that you want I guess. Also there are some

Re: [R] how to suppress a loading required package: ... message

2006-12-27 Thread Frank E Harrell Jr
Dirk Eddelbuettel wrote: On 27 December 2006 at 08:52, BBands wrote: | On 12/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: | Hi, | | how to suppress a loading required package:... message? | | require(package, quiet=TRUE) Some packages insist on talking even when they are asked

[R] How to write string dynamicly?

2006-12-27 Thread Feng Qiu
Hi everyone: I'm trying to compose a string dynamicly for the parameter input of some function. For example: In package MASS, function lda() require to input the name of predictor variable. Let's say the 16th column is the predictor variable. Then we call the function like this:

[R] Consensus Fork Index

2006-12-27 Thread Taiwo Ojurongbe
Dear All, I am trying to automate series of dendrograms for binary data in R as well as calculate the Consensus Fork Index (Colless' index). I'll appreciate any assistance with regards to this. Thank you and best regards, Taiwo __

[R] How to debug R program?

2006-12-27 Thread Feng Qiu
Hi everyone: I wrote a R program which has loops. When I run the program, it crashed. I would like to identify in which loop the pragram crashed, how can I debug ? I'm new to R, could somebody please give me a general idea about debugging in R.(I'm a C/C++ programmer and have

[R] model comparison + use of offset in glmmPQL

2006-12-27 Thread wayne hallstrom
Hi, I have 2 questions. First - is it possible to use the offset term in a glmmPQL formula rather than transforming the variables in the dataset beforehand? Second - how do you compare the output/fit of 2 models produced through glmmPQL if you can't use the Anova(model1, model2,

[R] Question about predict function

2006-12-27 Thread Thomas L Jones
I am working with a non-parametic smoothing operation using a Generalized Additive Model. It is a bivariate data set. I know how to do the smooth, and out comes a nice smooth curve. Now I want to find the value of the smoothed curve for several values of x (the abscissa). This can be done

Re: [R] R-help Digest, Vol 46, Issue 27

2006-12-27 Thread Grant Izmirlian
On Wednesday 27 December 2006 06:00, [EMAIL PROTECTED] wrote: jingjiangyan I agree, you can use 'assign'. To be more explicit, you could use the following function. jingjiangyan - function(formula, data) { m - match.call() %,% - function(x,y)paste(x,y,sep=) d.nm - as.character(m$data)

Re: [R] How to write string dynamicly?

2006-12-27 Thread Gabor Grothendieck
Try: lda(iris[-5], iris[,5]) On 12/26/06, Feng Qiu [EMAIL PROTECTED] wrote: Hi everyone: I'm trying to compose a string dynamicly for the parameter input of some function. For example: In package MASS, function lda() require to input the name of predictor variable. Let's say the

Re: [R] vectorizing an iterative process.

2006-12-27 Thread Martin Maechler
Geoffrey == Geoffrey Zhu [EMAIL PROTECTED] on Tue, 26 Dec 2006 10:05:55 -0600 writes: Geoffrey I meant x[i] - x[i-1] + y[i-1] and Y[i] - y[i-1] + x[i] below. Geoffrey The mailing list software just keep adding 3D's. Sorry. It's not the mailing list software - not per se at least.

Re: [R] plotting time series with zoo pckg

2006-12-27 Thread ahmad ajakh
Thank you Gabor. This is very helpful. AA. - Original Message From: Gabor Grothendieck [EMAIL PROTECTED] To: ahmad ajakh [EMAIL PROTECTED] Cc: r-help@stat.math.ethz.ch Sent: Wednesday, December 27, 2006 12:08:41 PM Subject: Re: [R] plotting time series with zoo pckg To do it with

Re: [R] Question about predict function

2006-12-27 Thread Chuck Cleland
Thomas L Jones wrote: I am working with a non-parametic smoothing operation using a Generalized Additive Model. It is a bivariate data set. I know how to do the smooth, and out comes a nice smooth curve. Now I want to find the value of the smoothed curve for several values of x (the

Re: [R] counties in different colours using map()

2006-12-27 Thread Earl F. Glynn
The following example shows how to get/display the county names: library(maps) # Get County Data m - map('county', 'colorado', plot=FALSE) names(m) m$names # State,County names # The names appear to be in alphabetical order by state, e.g.: m$names[1:3] [1] colorado,adamscolorado,alamosa

[R] Google Desktop Search and R script files

2006-12-27 Thread Farrel Buchinsky
I want to be able to search my saved R script files on my hard drive. Thankfully the files are all saved with the .R filename extension which means that filetype:R in the Google Desktop Search (GDS) box limits the search to those files. Unfortunately if I put any other term in the search box (for

Re: [R] Google Desktop Search and R script files

2006-12-27 Thread bogdan romocea
If you're on Windows switch to http://www.copernic.com/en/products/desktop-search/index.html , last time I looked it was quite a lot better than Google Desktop Search. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Farrel Buchinsky Sent: Wednesday,

[R] Help with histograms

2006-12-27 Thread sloan jones
I would like to make one histogram combining two value vectors. One vector has more than 50 entries and the other only has 16. Both vectors contain dates in the POSIXct format. I need to be able to highlight the 16 entries from the smaller data set. Is it possible to do this with the hist

Re: [R] Google Desktop Search and R script files

2006-12-27 Thread Richard M. Heiberger
Go to the gooogle desktop preferences page and install Larry's Any Text File Indexer 1.00 by Larry Gadea (Index any file extension specified as plaintext) then tell it to search the .R and other extensions as plaintext. Google will then index all indicated files on your harddisk and will find

Re: [R] Google Desktop Search and R script files

2006-12-27 Thread Farrel Buchinsky
Wonderful. I did it and it works perfectly. Thanks a lot. Richard M. Heiberger [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Go to the gooogle desktop preferences page and install Larry's Any Text File Indexer 1.00 by Larry Gadea (Index any file extension specified as plaintext)

Re: [R] Google Desktop Search and R script files

2006-12-27 Thread Farrel Buchinsky
Thank you for your advice. I have read quite a bit about Copernic Desktop Search. Nevertheless, I chose not to download yet another indexing program. I am very happy with Google Desktop Search and particularly how well it integrates with many other features. Therefore, when I saw the reply to

Re: [R] Help with histograms

2006-12-27 Thread Greg Snow
If you look at the help for the tkBrush function in the TeachingDemos package, the examples show the definition of a function called colhist. That function may do what you want. Hope this helps, -Original Message- From: [EMAIL PROTECTED] on behalf of sloan jones Sent: Wed 12/27/2006

[R] how to test difference in my case?

2006-12-27 Thread Xu Yuan
hello all, I wonder if anyone could give me a hint on which statistical technique I should use and how to carry it out in R in my case. Thanks in advance. My data is composed of two columns, the same numerical variable (continuous) from actual measurement and model prediction. My objective is to

Re: [R] Query regarding linking R with Matlab

2006-12-27 Thread Henrik Bengtsson
Hi. From what you tell me you manage to start Matlab in the background by calling: Matlab$startServer() but that R fails to connect to Matlab by: matlab - Matlab(host=localhost, port=9998) if (!open(matlab)) throw(Matlab server is not running: waited 30 seconds.) Sorry for not being

Re: [R] R.matlab question

2006-12-27 Thread Henrik Bengtsson
Hi, a follow up after realizing that you might not have started the Matlab application to listen on port 9998. Try: Matlab$startServer(port=9998) and then matlab - Matlab(host=localhost, port=9998) if (!open(matlab)) throw(Matlab server is not running: waited 30 seconds.) Does this help?

Re: [R] How to write string dynamicly?

2006-12-27 Thread talepanda
Generally, you can create formula from string: lda(formula(paste(names(iris)[5],~.)),iris) On 12/28/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: Try: lda(iris[-5], iris[,5]) On 12/26/06, Feng Qiu [EMAIL PROTECTED] wrote: Hi everyone: I'm trying to compose a string dynamicly

Re: [R] how to suppress a loading required package: ... message

2006-12-27 Thread Dirk Eddelbuettel
Frank, On 27 December 2006 at 12:30, Frank E Harrell Jr wrote: | Dirk Eddelbuettel wrote: | On 27 December 2006 at 08:52, BBands wrote: | | On 12/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: | | how to suppress a loading required package:... message? | | | | require(package,

[R] Dates in R

2006-12-27 Thread Brian Edward
Hello all, Can somebody point me to references or provide some code on dealing with this date issue. Basically, I have two vectors of values that represent dates. I want to convert these values into a date format and subtract the differences to show elapsed time in days. More specifically,

Re: [R] Dates in R

2006-12-27 Thread jim holtman
Try this: x - 'Date1 Date2 + 032398061585 + 032398061585 + 111694101994 + 111694101994 + 062695021595 + 051898111597 + 072495040195 + 072495040195' data.in - read.table(textConnection(x), header=TRUE, colClasses=c('character', 'character')) data.in$Date1 -

Re: [R] Dates in R

2006-12-27 Thread talepanda
Try: as.date(Date1)-as.date(Date2) On 12/28/06, Brian Edward [EMAIL PROTECTED] wrote: Hello all, Can somebody point me to references or provide some code on dealing with this date issue. Basically, I have two vectors of values that represent dates. I want to convert these values into a

Re: [R] Dates in R

2006-12-27 Thread Don MacQueen
See the documentation for as.Date Something like (untested): as.Date(Date1, '%m%d%y) - as.Date(Date2,%m%d%y) That's assuming Date1 and Date2 have already been loaded into R, and are character vectors. They would have to be character vectors in order to display the leading zero, as in

Re: [R] how to suppress a loading required package: ... message

2006-12-27 Thread Frank E Harrell Jr
Dirk Eddelbuettel wrote: Frank, On 27 December 2006 at 12:30, Frank E Harrell Jr wrote: | Dirk Eddelbuettel wrote: | On 27 December 2006 at 08:52, BBands wrote: | | On 12/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: | | how to suppress a loading required package:... message? |

Re: [R] Colored Dendrogram

2006-12-27 Thread Richard C. Yeh
In your colLab function, you are assigning the label colors using the mycols 4-element vector, which you generated using the rainbow() function. So, to pick colors using the values in vector c, normalize c and then try the colorRamp function. I don't know how to use that function, myself,

[R] importing bitmap images to R

2006-12-27 Thread Michael Wolosin
All - I'm creating some plots in R that I would like to overlay on images that are created outside of R. I've used image before to plot image-like data within R, and have added vector plots on top of them, but I can't find a way to read in an external bitmap file into R and use that.

[R] Re : how to test difference in my case?

2006-12-27 Thread justin bem
How about fitted statistics of the model ? Justin BEM Elève Ingénieur Statisticien Economiste BP 294 Yaoundé. Tél (00237)9597295. - Message d'origine De : Xu Yuan [EMAIL PROTECTED] À : r-help@stat.math.ethz.ch Envoyé le : Jeudi, 28 Décembre 2006, 1h14mn 35s Objet : [R] how to test