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.
, 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
-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
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
- (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
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
@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é
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
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
,
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
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
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
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
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
--
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
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
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,
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
.]
--
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
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]
,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
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
},
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
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
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
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
=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
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
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
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
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
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
?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.
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
:
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
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
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
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
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
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
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,
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,
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.
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
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
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(...,
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()
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
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.
.
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
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
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
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!
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
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
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
/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
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
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
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
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
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
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
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
))),
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
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
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
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
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
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
?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
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
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
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?
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
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!
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
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
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
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!
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
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
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
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,
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.
__
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
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
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
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
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
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
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
?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
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
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
. 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
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
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
: 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
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 - 100 of 228 matches
Mail list logo