completeFun | R Documentation |
This function remove NA rows
completeFun(data, desiredCols)
data |
data that you want to remove rows containing NAs in. |
desiredCols |
column(s) to check for NAs to remove rows where NAs are, |
df<-data.frame(A=c(1,2,3,NA),
B=c("a",NA,"c","d"),
C=c("Z","Y",NA,"W"))
df_1<-completeFun(data=df,
desiredCols=c("B","C"))
df_1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.