'i want to know how to Create a data frame from exciting one by dropping the following rows: 2, 4, 5, 8, and 9

i tried to use subset and tried to specify the rows but it gives me all the 11 rows i had in my data frame

examQual <- subset(examDF, nrow = c(2,4,5,8,9), select = c("name","score", "attempts", "qualify"))

if you can help to fix and solve this thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source