Search
 
SCRIPT & CODE EXAMPLE
 

R

find row with na r

# Never use =='NA' to test for missing values. Use is.na() instead. This should do it:
new_DF <- DF[rowSums(is.na(DF)) > 0,]

# or in case you want to check a particular column, you can also use
new_DF <- DF[is.na(DF$Var),]

#In case you have NA character values, first run
Df[Df=='NA'] <- NA
Comment

finding all rows with na values in r

df[!complete.cases(df),]
Comment

PREVIOUS NEXT
Code Example
R :: how to replace values with na in r 
R :: ggplot abline thickness 
R :: how many pairwise combinations 
R :: r as.numeric all columns except 
R :: Reorder bars in geom_bar ggplot2 by value 
R :: extract pc1 and pc2 in r 
R :: r delete rowif number higher than 
R :: autoplot confusion matrix 
R :: r remove regex from string 
R :: read xlsx in r 
R :: unite r function how to include in dataframe 
R :: R check object dimensions 
R :: R view memory size of variables 
R :: Use regex to extract row in R (solution 1) 
R :: créer un vecteur sur r 
R :: interquartile in r 
R :: ggplot - subset top 10 in a stack bar plot 
R :: timestamp conversion from excel R 
R :: select number of row dataframe r 
Rust :: rust string to char array 
Rust :: rust nesting loops 
Rust :: hello world latex 
Rust :: rust const string 
Rust :: How to print out a variable in rust 
Rust :: rust language 
Rust :: armanriazi•rust•error•E0277•the size for values of type `str` cannot be known at compilation time 
Rust :: rust absolute path 
Rust :: Vector with multiple types in rust 
Rust :: create a rust project Inside the folder 
Lua :: lua 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =