Re: [R] Monotonic interpolation

2007-09-06 Thread Vincent Goulet
Le jeu. 6 sept. à 09:45, excalibur a écrit : Hello everybody, has anyone got a function for smooth monotonic interpolation (splines ...) of a univariate function (like a distribution function for example) ? approxfun() might be what your looking for.

Re: [R] question about ar1 time series

2007-07-16 Thread Vincent Goulet
, reproducible code. --- Vincent Goulet, Associate Professor École d'actuariat Université Laval, Québec [EMAIL PROTECTED] http://vgoulet.act.ulaval.ca __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] CDF for pareto distribution

2007-07-11 Thread Vincent Goulet
-July/ 136137.html) you quote a negative scale parameter. The Pareto I know has strictly positive shape and scale parameters. Perhaps can you retry with functions ppareto() or pgenpareto() of package actuar. --- Vincent Goulet, Associate Professor École d'actuariat Université Laval

Re: [R] CDF for pareto distribution

2007-07-11 Thread Vincent Goulet
with the pgpd() function, you should contact the maintainer of package POT, as the Posting Guide asks. HTH Vincent Goulet wrote: Le 07-07-11 à 07:56, livia a écrit : Hi, I would like to use the following codes to plot the CDF for pareto distribution. Before doing this, I have plot

[R] change the coeffcients approach on an anova

2007-07-07 Thread vincent guyader
- (lm(pression~ temp, data=rebe)) anova(rinfo2) summary(rinfo2) what can I change to obtain what I need? best regards -- _ Vincent GUYADER École nationale supérieure d'agronomie de Rennes (ENSAR) EN156 - Spécialité statistiques appliquées 06.22.85.34.27

[R] Computing time differences

2007-06-20 Thread vincent . duval
vectors of this given format. I tried around trying to change this format into any type of time serie without any succes. Could some one provide me with some useful suggestion and/or tip to know where to look? I am using R-2.4.0 under Windows XP Thanks for your help, Vincent

Re: [R] R Book Advice Needed

2007-06-14 Thread Vincent Goulet
@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 provide commented, minimal, self-contained, reproducible code. --- Vincent Goulet, Professeur agrégé École d'actuariat Université

[R] [R-pkgs] New version of actuar

2007-04-23 Thread Vincent Goulet
this version altogether.] Collaboration is welcome. Please contact me directly. -- Vincent Goulet, Associate Professor École d'actuariat Université Laval, Québec [EMAIL PROTECTED] http://vgoulet.act.ulaval.ca ___ R-packages mailing list

Re: [R] How to return more than one variable from function

2007-04-21 Thread Vincent Goulet
Le Vendredi 20 Avril 2007 11:23, vous avez écrit : From: Vincent Goulet Le Vendredi 20 Avril 2007 07:46, Julien Barnier a écrit : Hi, I have written a function which computes variance, sd, r^2, R^2adj etc. But i am not able to return all of them in return statement. You

Re: [R] How to return more than one variable from function

2007-04-20 Thread Vincent Goulet
, Julien -- Vincent Goulet, Professeur agrégé École d'actuariat Université Laval, Québec [EMAIL PROTECTED] http://vgoulet.act.ulaval.ca __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Problem installing packages

2007-04-19 Thread Vincent Goulet
code. --- Vincent Goulet, Professeur agrégé École d'actuariat Université Laval, Québec [EMAIL PROTECTED] http://vgoulet.act.ulaval.ca __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] An example of overloading [

2007-03-13 Thread Vincent Goulet
Package: http://vgoulet.act.ulaval.ca/actuar/ HTH -- Vincent Goulet, Associate Professor École d'actuariat Université Laval, Québec [EMAIL PROTECTED] http://vgoulet.act.ulaval.ca __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Accessing the class of an object with two elements.

2007-02-22 Thread Vincent Goulet
the warning. Executing your code piece by piece would tell you that. That said, you probably rather want to use inherit() for such purposes. HTH -- Vincent Goulet, Associate Professor École d'actuariat Université Laval, Québec [EMAIL PROTECTED] http://vgoulet.act.ulaval.ca

Re: [R] Extract NULL column in a matrix e.g. matrix[,-NULL]

2007-02-11 Thread Vincent Goulet
in -NULL : invalid argument to unary operator I know I could use ifelse, but it would complicate my model a lot. Is there a direct way to specify that the number of columns to remove is 0? Pierre Lapointe Would aa - if (n 0) aa[, -n] else aa still be too complicated? --- Vincent Goulet

Re: [R] Newbie: Acf function

2007-02-08 Thread Vincent Goulet
-- Vincent Goulet, Associate Professor École d'actuariat Université Laval, Québec [EMAIL PROTECTED] http://vgoulet.act.ulaval.ca __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] RSNPper SNPinfo and making it handle a vector

2007-02-05 Thread Vincent Carey 525-2265
I am not a card-carrying Bioinformatician or Biostatistician. At the risk of demonstrating naivete let me ask if you have reservations about snpper and its durability why not query dbSNP? : http://www.ncbi.nlm.nih.gov/projects/SNP/ That may be easy for me to say since I don't have the

Re: [R] RSNPper SNPinfo and making it handle a vector

2007-02-04 Thread Vincent Carey 525-2265
If I run an analysis which generates statistical tests on many SNPs I would naturally want to get more details on the most significant SNPs. Directly from within R one can get the information by loading RSNPer (from Bioconductor) and simply issuing a command SNPinfo(2073285). Unfortunately,

Re: [R] Bayesian inference: Poisson distribution with normal (!) prior

2007-01-26 Thread Vincent Goulet
value returned by rnorm(), etc. Am I missing what you want to do? -- Vincent Goulet, Associate Professor École d'actuariat Université Laval, Québec [EMAIL PROTECTED] http://vgoulet.act.ulaval.ca __ R-help@stat.math.ethz.ch mailing list

[R] Easy to install GNU Emacs for Windows

2007-01-24 Thread Vincent Goulet
.] -- Vincent Goulet, Associate Professor École d'actuariat Université Laval, Québec [EMAIL PROTECTED] http://vgoulet.act.ulaval.ca __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] crush in edit()

2006-10-17 Thread crazybuddy Vincent
Dear all, I am new to R system. When I tried to edit data read from a csv file, R system crushed, I got an error message as follows: edit(data) *** buffer overflow detected ***: /usr/lib/R/bin/exec/R terminated === Backtrace: = /lib/libc.so.6(__chk_fail+0x41)[0x49d020b1]

Re: [R] avoiding a loop?

2006-10-12 Thread Vincent Goulet
,Insp9 Thanks. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax:  614-455-3265 http://www.StatisticalEngineering.com paste() will do what you want. -- Vincent Goulet, Professeur agrégé École d'actuariat Université Laval, Québec [EMAIL PROTECTED] http

[R] package e1071 - class probabilities

2006-09-27 Thread Vincent Negre
there are these differences? Thank you in advance for your help. Best regards. Vincent. - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Best use of LaTeX listings package for pretty printing R code

2006-09-25 Thread Vincent Goulet
}, alsoletter={.\%},% alsoother={:_\$}} \lstset{language=Renhanced,extendedchars=true, basicstyle=\small\ttfamily, commentstyle=\textsl, keywordstyle=\mdseries, showstringspaces=false, index=[1][keywords], indexstyle=\indexfonction} with [EMAIL PROTECTED] -- Vincent Goulet

Re: [R] Building the call of an arbitrary function

2006-09-20 Thread Vincent Goulet
Le Dimanche 17 Septembre 2006 14:12, Duncan Murdoch a écrit : On 9/17/2006 12:36 PM, Vincent Goulet wrote: Hy all, Is there a direct way to build the complete function call of an arbitrary function? Here's what I want to do. A function will build a function which will itself call

[R] Building the call of an arbitrary function

2006-09-17 Thread Vincent Goulet
the whole thing as a character string. Would it be the only option? Thanks for any help. -- Vincent Goulet, Professeur agrégé École d'actuariat Université Laval, Québec [EMAIL PROTECTED] http://vgoulet.act.ulaval.ca __ R-help@stat.math.ethz.ch

[R] Connecting to a SQLBASE database with R

2006-09-08 Thread SPIESSER Vincent
to know if, using one of these package or another one, I could be able to connect with this type of database. I hope I would be understood. I am not a database specialist and, being french, my english is a little bit poor. Thanks for your response. Vincent Spiesser

Re: [R] Sweave and the [ function

2006-09-04 Thread Vincent Goulet
=FALSE= [(women,1) @ echo=FALSE, eval=TRUE= [(women,1) @ I often end up doing similar things. HTHVincent -- Vincent Goulet, Professeur agrégé École d'actuariat Université Laval, Québec [EMAIL PROTECTED] http://vgoulet.act.ulaval.ca __ R

Re: [R] separate row averages for different parts of an array

2006-08-16 Thread vincent
Spencer Jones a écrit : I have an array with 44800 columns and 24 rows I would like to compute the row average for the array 100 columns at a time, so I would like to end up with an array of 24 rows x 448 columns. I have tried using apply(dataset, 1, function(x) mean(x[])), but I am not sure

Re: [R] Auto-save possible in R?

2006-08-12 Thread vincent
John Morrow a écrit : Hello fellow R'ers, I have a simple calculation with a very large data set being generated (34.9 million values) on a somewhat unreliable XP box that will likely take ~ 74hrs. I wanted to know if there is a way to have my script automatically save.image() throughout the

Re: [R] Colour-coding intervals on a line

2006-08-12 Thread vincent
Sara-Jane Dunn a écrit : I need to know if there is any way of using different colours for different intervals of a line on a graph. Eg. If I plot the line y=x for x=1:10, and split this line into 106 intervals (i.e. not a 'nice' number of intervals) how could I colour different intervals

Re: [R] debug print() commands not showing during file write loop

2006-08-09 Thread vincent
Richard Evans a écrit : can it be changed such that the print() output is echoed to the screen when it is processed? ?flush.console hih __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Is there a function in R can help me to plot such a figure?

2006-08-07 Thread vincent
Jiantao Shi a écrit : i want to plot figure like this, http://www.cis.hut.fi/projects/somtoolbox/download/pics2/shotvs2_colorcode.png So is there a function or package in R can help me to do this. Any suggestion will be appreciated. Thanks in advance have a look here

Re: [R] How to access a column by its label?

2006-08-03 Thread vincent
?colnames hih __ 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 provide commented, minimal, self-contained, reproducible code.

Re: [R] Log color scale

2006-07-30 Thread vincent
Kartik Pappu a écrit : However I need to plot my data in a log transformed color scale. Is this possible? I will be happy to explain further, but basically I need to do this because there are large variations in the max and min values of my raw data and I am trying to highlight the

Re: [R] Follow Up To: Splitting the left and right hand terms of a formula

2006-07-25 Thread Vincent Goulet
: f - ~ x | y + z f[[2]] x | y + z f[[2]][[2]] x f[[2]][[3]] y + z Bye!Vincent -- Vincent Goulet, Associate Professor École d'actuariat Université Laval, Québec [EMAIL PROTECTED] http://vgoulet.act.ulaval.ca __ R-help@stat.math.ethz.ch

Re: [R] R and DDE (Dynamic Data Exchange)

2006-07-18 Thread vincent
Thanks Gabor and Philippe. Special thanks to Philippe for his tcltk2 nice job. I'm testing differents approaches for my problem. I'll return info if I use DDE + tcltk2. Vincent __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] CFD Plots in R and Other Things

2006-07-17 Thread vincent
Lorenzo Isella a écrit : Tipically, these sets of data are plotted in 2D with r and z as axis and the velocity field represented by using colours explained by a legenda. Can R do anything like this? ?image hih __ R-help@stat.math.ethz.ch mailing

Re: [R] Correlation Mapping

2006-07-17 Thread vincent
justin rapp a écrit : On the cover of Zivot and Wang's Modeling Financial Time Series with S Plus, there is a correlation plot that seems to indicate the strength of correlation with color-coded squares, so that more highly correlated stocks appear darker red. If anybody out there is

[R] R and DDE (Dynamic Data Exchange)

2006-07-17 Thread vincent
I will try to go deeper. I would be very thankful for any info, pointer or advice about the good ways to make R program get online data from a DDE server. Thanks Vincent __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Misunderstanding with lines (or elsewhere)

2006-07-12 Thread vincent
Thanks for the hints. __ 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

[R] Misunderstanding with lines (or elsewhere)

2006-07-11 Thread vincent
Misunderstanding with lines(...) : http://7d4.com/r/ I would like the y coordinate of the horizontal line to be 1/4, and also the line to begin at x=0 and end at y=1. I'm obviously missing something ... so if anybody could help. Many thanks. test = function() { bmp('test.bmp', width=100,

Re: [R] Misunderstanding with lines (or elsewhere)

2006-07-11 Thread vincent
Prof Brian Ripley a écrit : Think about the coordinate system you are using: if you don't set the margins to zero you will see what it is. I suggest you supply x and y to image() to set the coordinate system to what you want it to be. Thank you for your answer. If I have well understood,

[R] removing for loop

2006-07-04 Thread vincent
Dear Rusers, Trying to reduce my for loops addiction, could somebody tell me if there are ways to simplify (and perhaps accelerate ?) the following line for (i in 1:N) for (j in 1:N) m[i,j] = b[i]-b[j]; (where m is a NxN matrix and b a vector of length N) Thanks for any hint.

Re: [R] removing for loop

2006-07-04 Thread vincent
Thank you very much to everybody for your answer. __ 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

[R] function call

2006-06-19 Thread vincent
Dear R-users, When a function f1() is called, is there a way to know, from inside the function f1(), if f1() is directly called from the R console, or indirectly from another function f2() ? Of course, I may add an argument to f1(..., callbyf2=FALSE) only used by f2() giving explicitely this

Re: [R] function call

2006-06-19 Thread vincent
Peter Dalgaard a écrit : [EMAIL PROTECTED] writes: Dear R-users, When a function f1() is called, is there a way to know, from inside the function f1(), if f1() is directly called from the R console, or indirectly from another function f2() ? Of course, I may add an argument to f1(...,

Re: [R] function call

2006-06-19 Thread vincent
Gabor Grothendieck a écrit : Perhaps you what you want to do is to return an object that has a print method like this: f1 - function(x) structure(c(x, x^2), class = f1) print.f1 - function(x) cat(x is, x[1], x squared is, x[2], \n) Thank you Gabor for this idea. For the moment interactive()

Re: [R] Fitting Distributions Directly From a Histogram

2006-06-18 Thread Vincent Goulet
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Vincent Goulet, Professeur agrégé École d'actuariat Université Laval, Québec [EMAIL PROTECTED] http://vgoulet.act.ulaval.ca __ R-help@stat.math.ethz.ch mailing

Re: [R] matrix selection return types

2006-06-16 Thread vincent
jim holtman a écrit : z1 - m[m[,1] == 2,, drop=FALSE] What is the problem you are trying to solve? It was not really a big problem. Just that without the drop argument, The changing returned type complicated the next computations. drop=TRUE makes it homogeneous, which is what I needed.

[R] matrix selection return types

2006-06-15 Thread vincent
. Thanks Vincent __ 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

Re: [R] R usage for log analysis

2006-06-11 Thread vincent
Gabriel Diaz a écrit : why not? i know nothing about R but that is a statistical tool, so if I want statistics about the events in a log file, is still a bad choice to use R? Before knowing R, I wrote some gawk soft to realize log file analysis (internet web pages visit statistics). If I

Re: [R] R usage for log analysis

2006-06-11 Thread vincent
Gabriel Diaz a écrit : hello and what is the correct path to do it? I mean, put logs files in a mysql or somehting like that, and then make R use that data, using the data from the files directly? pre-parse the log files to accomodate them to R? I need faqs, manuals, books, whatever

Re: [R] making matrix monotonous

2006-06-08 Thread vincent
Thanks to everybody for your help. Thanks for the coding improvements and thanks for the very interesting paper. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] making matrix monotonous

2006-06-07 Thread vincent
is optimal, but on this little example it helps the matrix being more readable. Vincent __ 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

[R] making matrix monotonous

2006-06-05 Thread vincent
Dear all, I'm currently working on correlation matrix. The function image() is quite useful for visualization. Before using image(), I'd like to sort the matrix rows/columns, in order to make the matrix the more monotonous/smooth possible. Before reinventing the wheel, is there somebody here

[R] panel.abline() and trellis.focus() on multipage plots

2006-04-13 Thread vincent david
difference if I pass the result of my bwplot() call to a trellis object and manipulate this before plotting? with kind regards Vincent [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo

[R] bwplot vs boxplot$stats

2006-04-13 Thread vincent david
/quantiles myself to use it for further statistical evaluation (such hierarchical clustering). All kind of help/hints would be appreciated. regards Vincent [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https

[R] range and bwplot

2006-03-26 Thread vincent david
Hi, is there an equivalent to the 'range' option of the boxplot function to be found in the bwplot function of the trellis package? regards Vincent [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https

[R] Accessing specific values of linear regression model

2006-03-23 Thread Kelly Vincent
I am just starting to learn R, and I'm struggling with a lot of the basic stuff. The online documentation is generally good, but I have been unable to find the answer for my problem this time. I am running linear regression on a particular set of data and plotting it. I've got the regression

[R] lattice tick marks

2006-03-16 Thread vincent david
on a bwplot() earlier without any mixups. cheers Vincent [[alternative HTML version deleted]] __ 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

[R] lattice tick marks

2006-03-16 Thread vincent david
on a bwplot() earlier without any mixups. cheers Vincent [[alternative HTML version deleted]] __ 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

[R] lattice tick marks

2006-03-16 Thread vincent david
on a bwplot() earlier without any mixups. cheers Vincent [[alternative HTML version deleted]] __ 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

[R] bwplot and outlier symbols

2006-03-14 Thread vincent david
to do this for outliers. Obviously the outpch of the bxp-function is not implemented. Any clue how to do this? Any documentation reference at hand? cheers Vincent [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

[R] bwplot and outlier symbols

2006-03-14 Thread vincent david
to do this for outliers. Obviously the outpch of the bxp-function is not implemented. Any clue how to do this? Any documentation reference at hand? cheers Vincent [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

Re: [R] bwplot and outlier symbols

2006-03-14 Thread vincent david
))), panel=function(x,y) { panel.bwplot(x,y, horizontal=FALSE, pch=-, outlty=1, outpch=NA) }, horizontal=FALSE) The symbol for the outliers don't get changed wheras the pch changes the symbol for the median. Which parameter changes the outliers? cheers Vincent

Re: [R] bwplot and outlier symbols

2006-03-14 Thread vincent david
doesn't change anything!? thanks again Vincent [[alternative HTML version deleted]] __ 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

Re: [R] [Q] BIC as a goodness-of-fit stat

2006-03-08 Thread Vincent Zoonekynd
http://www.stat.washington.edu/tech.reports/bic.ps Regards, -- Vincent On 06/03/06, Young-Jin Lee [EMAIL PROTECTED] wrote: Dear R-List I have a question about how to interpret BIC as a goodness-of-fit statistic. I was trying to use EMclust and other mclust library and found that BIC was used

[R] qqplot

2006-02-07 Thread Vincent Negre
Hello, I would like to use qqplot() to compare two experimental distributions. But I do not understand how qqplot() compute quantiles. In fact, quantile() do not return the same results. Thank you for your help. Vincent. __ R-help@stat.math.ethz.ch

[R] How to get all the data in a specific column from a dataframe?

2006-02-03 Thread Vincent Deng
Dear R-helpers: Suppose I have a datafram called test_frame like this col1 col2 col3 col4 r1 xxx x r2 xxx x r3 xxx x ..xxx x rn xxx x I know I can get data of col3 by using

[R] Announce: Contributed Documentation

2006-01-30 Thread Vincent Goulet
prepare an English version of the document. The document is published under the GNU Free Documentation License. In the hope the document may be useful, -- Vincent Goulet, Associate Professor École d'actuariat Université Laval, Québec [EMAIL PROTECTED] http://vgoulet.act.ulaval.ca

Re: [R] [Q] extracting lower diagonal elements of a matrix

2006-01-26 Thread vincent
?lower.tri hih __ 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

Re: [R] [Rd] Display an Image on a Plane

2006-01-23 Thread Labbe, Vincent (AEREX)
Thanks to all for the answers. I needed something quickly for a report so I used Gimp (as proposed by François Pinard) but I will look at the links given by Barry Rowlingson if I want something more fancy. Thanks also to Ben Bolker. Vincent -Original Message- From: François Pinard

[R] packages about microarray analysis

2006-01-19 Thread Vincent Deng
Dear R-helpers, Can anybody suggest me some common packages for standard microarray analysis, either from CRAN or Bioconductor? Many thanks... [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

[R] Question about plotting a hclust tree

2006-01-10 Thread Vincent Deng
Dear R-helpers, While plotting a hclust tree, is it possible to mark group information on it? Suppose I have a hclust tree ClusTree, and I use cutree to cut the tree into different groups as following a=cutree(ClusTree,h=10) How do I mark the grouping info stored in a while I plot ClusTree?

Re: [R] paste tab and print

2006-01-09 Thread vincent
Prof Brian Ripley a écrit : cat(info, \n) Thank you very much. It works. __ 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

[R] How to plot legend to the margin area of the graph?

2006-01-09 Thread Vincent Deng
Dear R-helpers, When plotting a graph, what command should I use to mark legend to the margin area of that graph? __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] paste tab and print

2006-01-08 Thread vincent
the point, and apologize about that. So if somebody could tell me how to insert a tab inside strings under R.2.2.0., it would be very kind. Thanks Vincent __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] Questions about cbind

2006-01-03 Thread Vincent Deng
Dear R-helpers I have a stupid question about cbind function. Suppose I have a dataframe like this Frame: A 10 C 20 B 40 and a numeric matrix like this Matrix: A 1 B 2 C 3 cbind(Frame[,2],Matrix[,1]) simply binds these two columns without checking the order, I mean, the result will be A 10 1 B

[R] Error in X11(paste(png::, filename, sep = ), width, height, pointsize unable to start device PNG

2005-12-30 Thread Vincent Deng
Hi, I got this error while using png() function in RedHat 9.0. Error in X11(paste(png::, filename, sep = ), width, height, pointsize unable to start device PNG It looks like the system lacks some library for graphics. Can anyone tell me which rpm I should install to have png() function work with

[R] Which cluster function can be used to cluster a correlaiton matrix?

2005-12-28 Thread Vincent Deng
Hi, I'd got a matrix of correaltion values. Which cluster method can I use to cluster it? Best Regards... __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] How to plot curves with more than 8 colors

2005-12-27 Thread Vincent Deng
of abc color codes repeatedly to draw the diagram Any helps? Best Regards... On 12/27/05, Uwe Ligges [EMAIL PROTECTED] wrote: Vincent Deng wrote: Hi, I'm a new hand in R language. I have about 20 groups of data[x,y] and want to plot them on a graph. To do this, I write a for-loop

Re: [R] How to plot curves with more than 8 colors

2005-12-27 Thread Vincent Deng
be identified clearly? Thanks again and again ... On 12/27/05, Uwe Ligges [EMAIL PROTECTED] wrote: Vincent Deng wrote: Dear Uwe, Sorry, I did not describe my question clearly. I created a matrix to store color code using rgb function. abc = rgb(6:36,0,0,maxColorValue = 255

[R] How to plot curves with more than 8 colors

2005-12-26 Thread Vincent Deng
Hi, I'm a new hand in R language. I have about 20 groups of data[x,y] and want to plot them on a graph. To do this, I write a for-loop as following: (some codes are omitted for simplicity) for (i in c(1:20)) { points(...,...,col=i) lines(...,col=i) } The problem is R only plot them with 8

Re: [R] Name conflict between Epi and ROC packages

2005-12-15 Thread Vincent Carey 525-2265
we can use name spaces. i will try to put one in for ROC ASAP. best regards --- Vince Carey, PhD Assoc. Prof Med (Biostatistics) Harvard Medical School Channing Laboratory - ph 6175252265 fa 6177311541 181 Longwood Ave Boston MA 02115 USA [EMAIL PROTECTED] On Thu, 15 Dec 2005, Tuszynski,

Re: [R] Name conflict between Epi and ROC packages

2005-12-15 Thread Vincent Carey 525-2265
apparently there is already a namespace for ROC. so whenever you need disambiguation and want to select the function defined in ROC, use ROC::f where f names a function in ROC package, and f is also used in another package on the searchlist. __

Re: [R] R coding style (was R is GNU S, not C....)

2005-12-08 Thread vincent
Prof Brian Ripley a écrit : I had already posted this in this thread: it is in sections 3.1 and Appendix B of `Writing R Extensions'. Dear Prof Ripley, I am certainly missing something. I did read http://cran.r-project.org/doc/manuals/R-exts.html#Tidying-R-code which is section 3.1 of

Re: [R] how to extract row col names from a matrix

2005-12-06 Thread vincent
shanmuha boopathy a écrit : a-matrix(1:6,2) ro-c(aa,bb) co-c(dd,ee,ff) dimnames(a)-list(ro,co) (Not sure I fully understand the question), but : rn = rownames(a); cn = colnames(a); __ R-help@stat.math.ethz.ch mailing list

Re: [R] how to get or store the intermediate v?lues while running a function

2005-12-06 Thread vincent
shanmuha boopathy a écrit : a-function(a,b,c,d) { k=a+b l=c+d m=k+l } in this example the function will return only the value of m ...But I like to extract the values of l k also. which command to use for storing or for extracting those intermediate

Re: [R] R is GNU S, not C.... [was how to get or store .....]

2005-12-06 Thread vincent
Martin Maechler a écrit : please, please, these trailing ; are *so* ugly. This is GNU S, not C (or matlab) ! but I'll be happy already if you could drop these ugly empty statements at the end of your lines... May I disagree ? I find missing ; at end of lines *so* ugly. Ugly/not ugly

Re: [R] R is GNU S, not C.... [was how to get or store .....]

2005-12-06 Thread vincent
ronggui a écrit : I think it is NOT just for historical reason. see the following example: rm(x) mean(x=1:10) [1] 5.5 x Error: object x not found x is an argument local to mean(), did you expect another answer ? mean(x-1:10) [1] 5.5 x [1] 1 2 3 4 5 6 7 8 9 10 What is the goal

Re: [R] R is GNU S, not C.... [was how to get or store .....]

2005-12-06 Thread vincent
Patrick Burns a écrit : We get questions on R-help often enough about why code like: if(x 0) y - 4 else y - 4.5e23 doesn't work. If people habitually used semi-colons, those sorts of questions would probably multiply. I wrote end of line in my first message, but in fact I did mean

Re: [R] R is GNU S, not C.... [was how to get or store .....]

2005-12-06 Thread vincent
Philippe Grosjean a écrit : So, who said there is an R style war? There is one set of rules to follow. Point. I quite agree with your message, but as far as I understood today, there is no official R style chart, (official = from the R core dev team). http://www.maths.lth.se/help/R/RCC/ is

Re: [R] Output of row and column names

2005-11-22 Thread vincent
?which __ 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

Re: [R] matrix subset

2005-11-14 Thread vincent
also to the authors of the function, Peter Dalgaard and prof Ripley (I suspect prof Ripley is responsible for the matrix improvment ?). Many thanks also to all the contributors to the last version of this wonderful software. Vincent __ R-help

[R] matrix subset

2005-11-12 Thread vincent
but in fact I would appreciate m1 to be also a matrix, and thus would like to get : m1 [,1] [,2] [,3] [,4] [2,]258 11 [3,]369 12 ... but I don't find how to do ? (probably it is very simple ! double shame.). Thanks for any hint or pointer. Vincent

Re: [R] matrix subset

2005-11-12 Thread vincent
. They are only generally used if you wish to place more than one R statement on a single line. I'm an old C programmer ... and it's an old (good) behavior. Without semicolons at the end of lines I feel naked like a worm in the desert. (I'll keep them). Thanks for your kind help. Vincent

Re: [R] matrix subset

2005-11-12 Thread vincent
Kristel Joossens a écrit : Do you mean simply m[m[,2]=5,] ? yes. Arghh !!! Thanks to all of you for your helpful answers. Vincent __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] how to write and read an array ?

2005-10-28 Thread vincent
Francisco J. Zagmutt a écrit : check ?dput and ?dget Thanks for the answer. dput and dget work well (even if the internal data writing is not as directly readable as with write.table()) (When I'll be grown-up with R, I'll write a write.3dtable() function.) Thanks. Vincent

[R] numeric index of a matrix column name ?

2005-10-28 Thread vincent
: the numeric index of the column colnameindex = function(M , colname0) { colsnames = names(M[1,]); theindex = which(colsnames==colname0); return(theindex); } Thanks Vincent __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] numeric index of a matrix column name ?

2005-10-28 Thread vincent
Dimitris Rizopoulos a écrit : probably you need match(colname0, colnames(M)) I hope it helps. Best, Dimitris yes. (why do simple ...) Thanks Dimitris. Have a good we. Vincent __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

  1   2   3   >