📜  删除前三行数据框 - R 编程语言代码示例

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

代码示例1
df = df[-1,] #Remove first line of a dataframe

remove <- 1:n
df = df[-remove,] #Remove the first n lines of a dataframe

#Always check if your object is a dataframe with class(df) e.g:
> class(df)
[1] "data.frame"