Displaying 8 results from an estimated 8 matches similar to: "reshape: duplicate rows to multiple cols"
2002 Oct 17
4
Newbie Time Series Questions
I have a data set of monthly river flows from 1960-2000, which are
similar in structure to the nottem data:
> klam.flow
Oct Nov Dec Jan Feb Mar Apr May Jun Jul Aug Sep
1961 1461 1716 2524 1773 1906 2005 1756 1575 1387 983 1094 1382
1962 1907 2253 1985 1907 1769 1676 2634 1386 929 766 968 1309
...
I tried plotting with
> ts.plot(klam.flow)
Which quickly led me to
2014 May 14
1
large integer values
Dear devels,
I need to create a (short) vector in C, which contains potentially very
large numbers, exponentially to the powers of 2.
This is my test example:
lgth = 35;
int power[lgth];
power[lgth - 1] = 1;
for (j = 1; j < lgth; j++) {
power[lgth - j - 1] = 2*power[lgth - j];
}
Everything works ok until it reaches the limit of 2^32:
power: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024,
2010 Apr 01
2
Adding regression lines to each factor on a plot when using ANCOVA
Dear R users,
i'm using a custom function to fit ancova models to a dataset. The data are
divided into 12 groups, with one dependent variable and one covariate. When
plotting the data, i'd like to add separate regression lines for each group
(so, 12 lines, each with their respective individual slopes). My 'model1'
uses the group*covariate interaction term, and so the coefficients
2002 Aug 09
3
ANOVA type III sum of squares?
Hello,
I'm a neurophysiologist, and actually quite new to R. In fact, to analyse
the responses of my neurons, I would like to have R doing an non-orthogonal
ANOVA with a type III sum of squares.
Could anybody help me?
Thank you a lot in advance.
Francois
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2010 Oct 12
0
Stripes in the plot
I'm trying to plot the spatial distribution of the precipitation within an area. However, I think some thing wrong with the way to create the matrix for the precipitation data, so it came out lots of stripes. Could somebody help to see what's the problem?
Here's the code:
library(maptools);gpclibPermit()
KSR <-
2008 Nov 25
2
calculating an N50
Given a set of integers of different values how do I calculate the
minimum number of the largest of integers that are required, when
summed, to equal 50% of the total sum of the the set?
For example,
> length(myTable$lgth)
[1] 303403
> sum(myTable$lgth)
[1] 4735396
I know through brute force that the N50 of the following set is 42 but
I don't know how to solve this without iteration
2007 May 23
0
rsync files differ
The same file on different servers synchronized from LDWO with rsync:
File |Server| cksum | file info
===============================================================================================================
/data/DWG//E/0090/01/20046784E.a LDWO 152479055 669939 -rw-rw-rw- mb at 669939 Dec 11 2002
2011 Jan 20
1
Problems with ecodist
Dear Dr.Goslee and anyone may intrested in matrix manipulate,
I am using your ecodist to do mantel and partial mantel test, I have
locality data and shape variation data, and the two distance matrixs are
given as belowings. When I run the analysis, it is always report that the
matrix is not square, but I didn't know what's wrong with my data. Would you
please help me on this. I am quite