Answers for "delete n rows of dataframe in r"

R
3

r remove row dataframe

myData[-c(2, 4, 6), ]   # remove rows 2, 4, 6
Posted by: Guest on July-08-2020
0

How to remove rows with inf from a dataframe in R

df <- df[!is.infinite(rowSums(df)),]
Posted by: Guest on May-30-2020

Browse Popular Code Answers by Language