Displaying 4 results from an estimated 4 matches for "glen_b".
Did you mean:
len_b
2009 Jul 28
1
Cumulative row sums, row differences
...[,-1]-cy[,-nrow(cy)])
1 2 3 4
21 3 4 8 5 5
22 3 6 8 6 NA
23 4 5 11 4 3
24 4 2 1 4 6
25 6 4 4 6 6
However, if I use that I lose the first column label. Is there a way to do
something like this without
losing that label? (again, if possible, that also works for data frames?)
thanks!
Glen_B.
--
View this message in context: http://www.nabble.com/Cumulative-row-sums%2C-row-differences-tp24692986p24692986.html
Sent from the R help mailing list archive at Nabble.com.
2009 Jul 30
2
z[i,j] = x[i,j] * y(i+j) ?
For the life of me I couldn't work out what to searc
I have an m*n numeric matrix x and a numeric vector y (of length m+n-1)
How do I do a calculation like this?
z[i,j] = x[i,j] * y[i+j] ?
Well, one can write a pair of loops, or write a single loop
within which we calculate a vector at a time, but ...
is there a "neat" way to do it?
tiny example:
2009 Aug 03
2
fitting a truncated power law
Dear all,
How can I fit a truncated power law to a vector? I can't find a function to do that. If the function provides an AIC, even better.
John
2009 Jul 28
4
How to do poisson distribution test like this?
Dear R-listers,
I want to reperfrom a poisson distribution test that presented in a
recent-published biological research paper (Plant Physiology 2008, vol 148,
pp. 1189-1200). That test is about the occurrence number of a kind of gene
in separate chromosomes.
For instance:
The observed gene number in chromosome A is 36.
The expected gene number in chromosome A is 30.
Then, the authors got a