📜  子集行 r - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:40.539000             🧑  作者: Mango

代码示例1
# df[row,column]

df[1, ]   # select first row and all columns from df
df[ ,8]   # select all rows for column 8 from df
df[2,5]   # select row 2, column 5 from df 
df[1:5, ] # select rows 1 to 5 and all columns from df