I have a data frame like this:
x1 x2 x3
271 3 5 2
553 2 4 1
563 2 5 3
When I try to select a row based on the row name, e.g. 271, it errors:
df[271, ]
# Error in xj[i, , drop = FALSE] : subscript out of bounds
How can I select these rows based on the row names (e.g. 271, 553, 563)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…