삭제 첫 번째 세인 데이터 프레임 R
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"
처음 세 줄 데이터 프레임 R 삭제
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"