Displaying 2 results from an estimated 2 matches for "weddingdate".
2007 Mar 26
1
data-frame adding/deleting column
...- data.frame(df)
> colnames(df) <- c("Father", "Mother", "Child.Age")
> df
Father Mother Child.Age
1 Fred Mary 4
2 Fred Mary 7
3 Fred Mary 9
4 Barney Liz 3
5 Barney Liz 5
I want to add a column named weddingdate. How does this work and how can
I save the corresponding dates in the cells? (Fred-Mary: 12.12.1980,
Barney-Liz: 3.3.2003)
How can I delet a whole column or row if it is needed?
Thanks, Corinna
2007 May 07
4
creating a new column
hie l would like to create a 6th column "actual surv time" from the following data
the condition being
if censoringTime>survivaltime then actual survtime =survival time
else actual survtime =censoring time
the code l used to create the data is
s=2
while(s!=0){ n=20
m<-matrix(nrow=n,ncol=4)