powered by
Remove rows from a data frame where a particular col is NA
removeRowsWithNAInSpecCol(df, desiredCol)
A data frame to be altered
A column name in the df (in ticks)
dfResult The input data frame with rows removed
http://healthcareai-r.readthedocs.io
healthcareai
# NOT RUN { df <- data.frame(a=c(1,2,3),b=c('Y','N',NA),c=c(NA,'Y','N')) dfResult <- removeRowsWithNAInSpecCol(df,'b') head(dfResult) # }
Run the code above in your browser using DataLab