Displaying 5 results from an estimated 5 matches for "ruffel1".
Did you mean:
ruffell
2008 Aug 13
5
subsetting matrix according to columns with character index
Hi,
I have a long matrix of the following form which I would like to subset according to the third column:
[x y z]:
a1 c1 1
a1 c1 2
a2 c1 1
a1 c2 1
a1 c2 2
. . .
The first two columns a characters ai and cj.
I would like to keep all the rows where there are two entries for z, 1 and 2.
That is, I want:
a1 c1 1
a1 c1 2
a1 c2 1
a1 c2 2
. . .
I try to use something like
2008 Jul 22
2
Cannot re-start R after bus error
Hi,
I ran a program that was exhausting the (unix) server's available memory. I got a bus error and then chose to save and quit workspace (option 4).
That may not have been a smart idea - when I try to use R now, I get the error message:
Error in load(name, envir = .GlobalEnv) :
ReadItem: unknown type 0, perhaps written by later version of R
Fatal error: unable to restore saved data in
2008 Sep 05
2
algorithm to create unique identifiers
Hi all,
I am trying to create a unique identifier for each row, combining numbers from three columns.
Do you know if there is a general formula to do this (or some manual where I can read about this)?
I figure I can use the numeric entries of the columns as "coordinates" and multiply them with different coefficients (different magnitudes) to get the unique ID - but it would be nice to
2008 Mar 20
1
Cointegration no constant
Hi,
I am trying to estimate a VECM without constant using the following code:
data(finland)
sjf <- finland
sjf.reg<-ca.jo(sjf, type = c("eigen"), ecdet = c("none"), K = 2,spec=c("transitory"), season = NULL, dumvar = NULL)
cajools(sjf.reg)
While the cointegration test does not use a constant, it is used in the cajools which I do not want. I am sure I am
2008 Jul 19
1
replicate matrix blocks different numbers of times into new matrix
Hi,
I am trying to replicate blocks of a matrix (defined by factors) into another matrix, but an unequal, consecutive number of times for each factor.
I need to find an elegant and fast way to do this, so loops will not work.
An example of what I am trying to do is the following:
# the data - first column entries are both data and the two factors
x<-matrix(c(1,2,3,4),2,2)
> x
[,1]