Please view the image Please view the attached image.I want to delete the rows containing NA in airsystemdelay,securitydelay,airlinedelay,lateaircraftdelay,waeatherdelay
Asked
Active
Viewed 2,496 times
-1
-
using `sum`, if the result is `NA` just remove – BENY Jul 02 '17 at 01:10
-
2I'm voting to close this question as off-topic because SO is here to help with code you wrote but SO is not here to write code for you. – Rob Jul 02 '17 at 02:41
1 Answers
1
Assuming you want to remove rows where any of columns 3 to 7 are NA:
df <- df[complete.cases(df[,c(3:7)]),]

user124543131234523
- 273
- 2
- 12