Re: [R] Can not install fCalendar package under R 2.6.2

2008-03-23 Thread Prof Brian Ripley
I suspect you have a rather old version of the fCalendar package (or possibly of one of the packages it loads). The current version is 262.73 and does not use putenv or Sys.putenv. (Packages really should not be using global system settings but the current version does .currentYear function

[R] scaling problems in optim

2008-03-23 Thread kathie
Dear R users, I am trying to figure out the control parameter in optim, especially, fnscale and parscale. In the R docu., -- fnscale An overall scaling to be applied to the value of fn and gr during optimization. If negative, turns the

Re: [R] More elegant multiplication or division of a data frame with avector

2008-03-23 Thread Tribo Laboy
Hi Gabor and Greg, I thought there might be a more ?intuitive way to it, but any of those will just work fine. Thanks a lot, TL On Sat, Mar 22, 2008 at 3:06 PM, Greg Snow [EMAIL PROTECTED] wrote: sweep( rawdata, 2, sens, '/' ) hope this helps,

Re: [R] spreading out a numeric vector

2008-03-23 Thread Jim Lemon
Levi Waldron wrote: I am creating a timeline plot, but running into a problem in positions where the values to plot are too close together to print the text without overlap... Hi Levi, This may not be what you want, but spread.labels in the plotrix package tries to evenly space labels for

Re: [R] scaling problems in optim

2008-03-23 Thread Peter Dalgaard
kathie wrote: Dear R users, I am trying to figure out the control parameter in optim, especially, fnscale and parscale. In the R docu., -- fnscale An overall scaling to be applied to the value of fn and gr during optimization. If

Re: [R] Draw Circles

2008-03-23 Thread ermimi
Thank you very much for the help!!! Felix Andrews wrote: help.search(circle) should point you to grid.circle in the grid package, at least in my R version 2.6.1 (grid package version 2.6.1). On Sun, Mar 23, 2008 at 8:44 AM, Gabor Grothendieck [EMAIL PROTECTED] wrote: Look at

Re: [R] Draw Circles

2008-03-23 Thread Gabor Csardi
May i ask what was the problem with symbols()? G. On Sun, Mar 23, 2008 at 04:10:38AM -0700, ermimi wrote: Thank you very much for the help!!! Felix Andrews wrote: help.search(circle) should point you to grid.circle in the grid package, at least in my R version 2.6.1 (grid

[R] ggplot2 - legend for fill coulours

2008-03-23 Thread Pedro de Barros
Dear All, I am trying to build a stacked bar plot, where I define the colours to use. I have asked this before, and I was using a solution in http://thread.gmane.org/gmane.comp.lang.r.general/100649/focus=100673 (thanks, Thierry). However, it looks this works only when the data are in the

[R] Transforming data

2008-03-23 Thread jenny
My data look like this: Col1 1 2 3 4 5 6 ... My questions are: (1) How do I get it in the following format? Col1 Col2 12 34 56 ... (2) How do I transform the data in 2 column format above back to the single column format? Thanks in advance for your reply!

Re: [R] Transforming data

2008-03-23 Thread jim holtman
Here are some examples of the transformations that you can do: x - 1:6 x [1] 1 2 3 4 5 6 (z - matrix(x, ncol=2, byrow=TRUE)) [,1] [,2] [1,]12 [2,]34 [3,]56 as.vector(z) [1] 1 3 5 2 4 6 as.vector(t(z)) [1] 1 2 3 4 5 6 On Sun, Mar 23, 2008 at 8:12 AM, jenny

[R] How to debug Repeated formal argument error

2008-03-23 Thread s_pushparaj
Dear list I am having trouble with handling a downloaded R Code. I tried to run the code using File\Source R Code...\ after loading values for the variables mentioned in the argument. Now I am getting the error message as follows: Repeated formal argument. Kindly help me solve this problem. It is

Re: [R] intraday OHLC plot

2008-03-23 Thread Thomas Steiner
Dear Gabor and Jeff, thanks for your hint! I tried it out and played around but could not succeed completely: library(quantmod) raw=read.table(file=eurusd-id.csv,sep=\t,dec=,,header =T) date.d=as.POSIXct(raw$Date..GMT) z=zoo(cbind(raw$Open,raw$High,raw$Low,raw$Close),order.by=date.d) q -

[R] Exporting of R dendrogram object in the format of Eisen´s Cluster

2008-03-23 Thread Jiří Voller
Dear R-users, I would like to use Cluster 3.0 for my data because of its zooming, link out and copy (gene)labels into clipboard options. Unfortunately the program doesnt allow use of the distance metrics I would like to use. I would like to ask if there is some library, that allows saving

[R] mapply

2008-03-23 Thread Mark Leeds
In an earlier post, a person wanted to divide each of the rows of rawdata by the row vector sens so he did below but didn't like it and asked if there was a better solution. rawdata - data.frame(rbind(c(1,2,2), c(4,5,6))) sens - c(2,4,6) temp - t(rawdata)/sens temp - t(temp)

Re: [R] mapply

2008-03-23 Thread Gabor Csardi
On Sun, Mar 23, 2008 at 11:06:05AM -0400, Mark Leeds wrote: In an earlier post, a person wanted to divide each of the rows of rawdata by the row vector sens so he did below but didn't like it and asked if there was a better solution. rawdata - data.frame(rbind(c(1,2,2), c(4,5,6)))

Re: [R] Draw Circles

2008-03-23 Thread ermimi
Hello, the problem is that... in my plot there are other things as text... and when I change the size of the windows (for example I do more big the width) the circle is done more big in the width and in the heigth, but I only need change the width of the circle to the text is well situated. I

Re: [R] Draw Circles

2008-03-23 Thread Gabor Grothendieck
Use plot(..., asp = 1) to get an aspect ratio of 1. On Sun, Mar 23, 2008 at 11:57 AM, ermimi [EMAIL PROTECTED] wrote: Hello, the problem is that... in my plot there are other things as text... and when I change the size of the windows (for example I do more big the width) the circle is done

Re: [R] intraday OHLC plot

2008-03-23 Thread Jeff Ryan
Hi Thomas, The issue is probably the quantmod package being outdated. Try to install this version: http://r-forge.r-project.org/R/?group_id=125 The second issue is that xlab and ylab are no longer being applied - they had some issue, and I haven't settled on a way to address yet. I will make

[R] Mean in bwplot

2008-03-23 Thread Plantky
Hi everyone, Is there a way to include both mean and median in a bwplot? And what should I do to convert the median dots into lines? Thanks! Plantky __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] scaling problems in optim

2008-03-23 Thread Spencer Graves
ALL: Can anyone explain why optim returns c(0.75, 2) for what I think should be the maximum of a bivariate normal density with mean = 1:2? KATHIE: Apart from 'optim' giving an answer I don't understand, the following should illustrate the use of 'fnscale' and 'parscale' --

Re: [R] counting values on one colum only

2008-03-23 Thread Felipe Carrillo
I was able to figure it out. I used daysSamp- na.omit(weekly) daysSamp- nrow(daysSamp) daysSamp 4 I ommited the NA's and then counted the number of rows. Thanks for your time Mark I'm not an R expert but if you show me the str(weekly) output, i think I can answer your question.

Re: [R] Can not install fCalendar package under R 2.6.2

2008-03-23 Thread Yan Wang
Dear Prof Brian Ripley and other R guru: Very happy to receive your help. Actually what I use is 262.73. In detail, what I have been doing is the following: First I have a not-up-to-dated R 2.4.0 under ubuntu 7.04, then I tried to install fCalendar(what I really want to use is fGarch, but

Re: [R] Mean in bwplot

2008-03-23 Thread Charilaos Skiadas
On Mar 23, 2008, at 1:37 PM, Charilaos Skiadas wrote: panel.points(mean(x), y, col=red, ...) Correction, this should have probably been: panel.points(tapply(x, y, mean), y, col=red, ...) All this assuming you want horizontal boxplots. Haris Skiadas Department of Mathematics and

[R] Bug check (possibly in seq()). RGui 2.6.2 (2008-02-08)

2008-03-23 Thread SET Eric Brendan
Hello All, I'm new to R, but I can't account for the results from the simple script below and it looks simple enough. Description: When A is generated by seq(), A[A==x] incorrectly returns numeric(0) for some values of x (in A) but not others. ## A-seq(0,1,by=.05)

Re: [R] Bug check (possibly in seq()). RGui 2.6.2 (2008-02-08)

2008-03-23 Thread John Kane
See the R-FAQ 7.31 Why doesn't R think these numbers are equal? for the likely reason. --- SET Eric Brendan [EMAIL PROTECTED] wrote: Hello All, I'm new to R, but I can't account for the results from the simple script below and it looks simple enough. Description: When A is generated by

[R] MDS

2008-03-23 Thread Sharma, Manju
hello what is the function for multidimensional scaling in R? cheers manju [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] MDS

2008-03-23 Thread Chuck Cleland
On 3/23/2008 2:28 PM, Sharma, Manju wrote: hello what is the function for multidimensional scaling in R? cheers manju Here are two ways to search for specific functionality in R: RSiteSearch(multidimensional scaling, restrict=functions) help.search(multidimensional scaling)

Re: [R] Error in function (classes, fdef, mtable): unable to find an inherited method for function indexProbes, for signature exprSet, character

2008-03-23 Thread Suprabhath
Thankyou Martin Morgan, i will post this question in Bioconductor mailing list [EMAIL PROTECTED] Suprabhath wrote: Hello Everyone, I am writing programs in R from 7 months and I am able to solve most of the errors/issues except for this current post. My Task is to read a Microsoft

[R] (no subject)

2008-03-23 Thread Donna Tucker
Is there any way to use more than one color or shape in the same plot. I would like to make the points different colors for various levels of a variable. I have tried a simple 'if' statement in the plot command, but I get an error message. Here is what I have tried and the error message I

Re: [R] (no subject)

2008-03-23 Thread Charilaos Skiadas
As you have not given us a reproducible example (namely we don't really know what test is), there are likely better ways to do this than what I am about to suggest, and you can find examples in the relevant plot functions likely, but I think what you want can be achieved using ifelse:

[R] Error using augPred with nlme grouped data

2008-03-23 Thread Pamela Allen
Hello all, I am having a problem using augPred after I have created an nlme object. My data is 3933 rows long with no NA's, and is grouped with this function: vanfem-groupedData(mass~age.years|name, data=av.mex, labels=list(x=Age, y=Mass), units=list(x=(years), y=(kg))) Under the grouping

Re: [R] Exporting of R dendrogram object in the format of E isen´s Cluster

2008-03-23 Thread Julian Lee
Hi You can try using the ctc package to export your dendrogram objects and use Cluster to open them. This package is part of biocondutor. source(http://bioconductor.org/biocLite.R;) biocLite('ctc') regards Julian Lee - Original Message - From: Jiří Voller [EMAIL PROTECTED] To:

[R] Inverse t-distribution

2008-03-23 Thread Felipe Carrillo
Hello all: Is there a function in R to estimate the Inverse t-distribution(tif in Systat).If so how can I see an example on how is used? Thanks Felipe D. Carrillo Fishery Biologist Department of the Interior US Fish Wildlife Service California, USA

Re: [R] Inverse t-distribution

2008-03-23 Thread Bert Gunter
Yes. And, amazingly, one can find out about it by typing help.search(t distribution) . Why don't you try it for yourself? -- Bert Gunter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Felipe Carrillo Sent: Sunday, March 23, 2008 6:18 PM To: [EMAIL

[R] Fwd: Partition data into clusters

2008-03-23 Thread Suhaila Zainudin
Hello, Referring to your email, I attaced a rar file containing a sample data file and the R script for clustering the data. After I finished the clustering process, I write the clustering result into a csv file. To partition the data, I open the csv file in Excel, sort the data according to

Re: [R] Inverse t-distribution(TINV function in Excel)

2008-03-23 Thread Felipe Carrillo
I can't actually tell which function in R is the equivalent to TINV function in Excel. Anyone familiar with that function? Thanks Yes. And, amazingly, one can find out about it by typing help.search(t distribution) . Why don't you try it for yourself? -- Bert Gunter