Dear Mailing List,
If I wanted a data set of twenty standard normal results, I would type:
x-rnorm(20)
If I then wanted to make all the negative results in that data set to be
listed as zero I would then type in:
x[x0]-0
However, I now want to discard the values that are zero, but I want to
James,
I think you want to try using index vectors.
index - c(1:length(x))
negs - index[x0]
nonnegs - index[x=0]
Then, if you want the negative values, just use
negativevalues - x[negs]
HTH
steve
[EMAIL PROTECTED] wrote:
Dear Mailing List,
If I wanted a data set of twenty standard normal
Thanks for your note Doug!
I had no idea how strange the XPORT format really is. I really hope that someone will
step forward to enhance and maintain read.xport and lookup.xport, as it would be of
great benefit to many users.
Following Duncan Temple Lang's suggestion I am contacting one of
Hi! I am starting to use the R system. Till now I have been using SAS
and SPSS, as my university and department has licences of them.
I would like to know if there is a mail list in Spanish (this is my
native language), and if there is some kind of tutorial specially
oriented to people used to
On Sat, 2003-01-18 at 07:45, Frank E Harrell Jr wrote:
I had no idea how strange the XPORT format really is.
Like the fact that the IBM double precision representation used in XPORT
uses 7 bits for the exponent and 56 bits for the mantissa, whereas IEEE
format uses 11 bits for the exponent and
I am attempting to replicate what Cluster 3.0 and Treeview (both by Mike
Eisen) to cluster both microarray genes and arrays does using R with
hclust. I basically utilized the plot.mat function in sma library with
some layout() and hclust().
1. Can I know if some has already written such a