Hi i'm a french medical student,
i have some data that i import from excel. My colomn of the datafram
are the localisations of metastasis. If there is a metatsasis there is
the symbol "_". i want to exclude the row without metastasis wich
represent the NA data.
so, i wrote this
mela is the data fram
mela1=ifelse(mela[,c(11:12,14:21,23,24)]=="_",1,0) # selection of the
colomn of metastasis localisation
mela4=subset(mela3,Skin ==0 & s.c == 0 & Mucosa ==0 & Soft.ti ==0 &
Ln.peri==0 & Ln.med==0 & Ln.abdo==0 & Lung==0 & Liver==0 &
Other.Visc==0 & Bone==0 & Marrow==0 & Brain==0 & Other==0) ## selection
of the row with no metastasis localisation
nrow(mela4)
but i dont now if it is possible to make the same thin as
ifelse(mela3,Skin & s.c== 0, 0,NA) with more than colomn and after to
exclude of my data the Na with na.omit.
The last question is how can i omit only the row which are NA value for
the colomn metastasis c(11:12,14:21,23,24))
Thank you for your help
Bertrand billemont
[[alternative text/enriched version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html