Answers for "delete first three lines dataframe R"

R
0

delete first three lines dataframe 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"
Posted by: Guest on February-16-2021

Code answers related to "delete first three lines dataframe R"

Browse Popular Code Answers by Language