Browse Source

Omitting dots from censored and followup columns

Andrej 1 day ago
parent
commit
5def1c4b6d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      R/km.R

+ 2 - 2
R/km.R

@@ -65,8 +65,8 @@ kaplan.meier.plot.gg<-function(x,var,...){
 
  
 	#x should have followup and censored columns	
-	surv.obj<-survival::Surv(x$.followup,x$.censored)
-   m=base::max(x$.followup)
+	surv.obj<-survival::Surv(x$followup,x$censored)
+   m=base::max(x$followup)
 
 	f<-stats::as.formula(paste('surv.obj',var,sep='~'))
    #need survfit2