Answers for "how to remove first row and col from data frame in R"

1

pandas delete first row

df = df.iloc[3:]
Posted by: Guest on February-24-2021
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 "how to remove first row and col from data frame in R"

Python Answers by Framework

Browse Popular Code Answers by Language