median(classifyforblack$Survival.months[classifyforblack$newcolumn == 'GU'])
[1] NA
Warning message: In mean.default(sort(x, partial = half + 0L:1L)[half + 0L:1L]) : argument is not numeric or logical: returning NA
I need to calculate median survival months when the value is GU but it give this error. I think that is because some values in survival months are"unknown" how to overcome that?