Re: [R] triangular matrices input/output

2012-05-16 Thread Rui Barradas
Hello, I needed this once. upper.diag - function(x, byrow=FALSE){ m - sqrt(1 + 8*length(x)) if(abs(m - floor(m)) .Machine$double.eps^0.5) m - (m - 1)/2 else{ warning(length of 'x' is not a triangular number.) m - floor((m

[R] extract data from square cracket

2012-05-16 Thread Min Wang
Dear Sir or Madam, I have a question like this. I want to extract the following data from the square bracket: 1bandband[0.86] 2bandband[0.93] 3noband noband [0.95] 4

Re: [R] survival survfit with newdata

2012-05-16 Thread David Winsemius
On May 16, 2012, at 5:08 PM, Damjan Krstajic wrote: Dear all, I am confused with the behaviour of survfit with newdata option. Yes. It has the same behavior as any other newdata/predict from regression. You need to supply a dataframe with the same names as in the original formula.

Re: [R] extract data from square cracket

2012-05-16 Thread Marc Girondot
Le 17/05/12 03:37, Min Wang a écrit : Dear Sir or Madam, I have a question like this. I want to extract the following data from the square bracket: 1 bandband[0.86] 2 bandband[0.93] 3 noband

<    1   2