Hi Guys,
I have this part of a program:
library(survival)
Gastric <- cbind.data.frame(Gp=c(rep(1,45),rep(0,45)), ### 2nd gp 0
time=c(1,63,105,129,182,216,250,262,301,301,342,354,356,358,
380,383, 383,388,394,408,460,489,499,523,524,535,562,569,675,676,
748,778,786,797,955,968,1000,1245
Hi
How can I return the index of sort, when I use R function sort?
or any other sorting functions in R
For example, I sorted a vector, but R just return the sorted value without
giving me the original index of these data.
Thanks a lot.
[[alternative HTML version deleted]]
___
Hi Everyone,
A quick question how to store a number like 12345 to a vector or array with
size(1,5), like 1, 2, 3, 4, 5
So I can compare if the last three digits of this number is the same with
some other numbers.
Thanks a lot
[[alternative HTML version deleted]]
_
Thanks! it worked. this forum is so powerful!
On Tue, Nov 16, 2010 at 12:20 PM, Douglas Bates wrote:
> On Tue, Nov 16, 2010 at 10:30 AM, poko2000
> wrote:
>
> > Hi I am a newbie in R.
> > I have data with dim of 20.
> > How to use lm if i want to do regression with the whole design matrix? My
>
4 matches
Mail list logo