Remove First Row of DataFrame in R Last Updated : 23 Aug, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article, we are going to see how to remove the first row from the dataframe. We can remove first row by indexing the dataframe. Syntax: data[-1,] where -1 is used to remove the first row which is in row position Example 1: R program to create a dataframe with 2 columns and delete the first row R # create dataframe with names and id data=data.frame(names=c("sravan","boby","ojaswi","gnanesh", "rohith"),id=c(1,2,3,4,5)) # display data # remove first row data=data[- 1, ] print("------") # display data Output: Example 2: R program to create dataframe with 4 columns and delete the first row R # create dataframe with names ,id,phone and address data = data.frame(names=c("sravan", "boby", "ojaswi", "gnanesh", "rohith"), id=c(1, 2, 3, 4, 5), phone=c("91834567450", "2222222222", "333333333333", "5555555555555", "333333333333"), address=c("hyd", "kol", "patna", "bikat", "guntut")) # display data # remove first row data = data[- 1, ] print("------") # display data Output: Comment More infoAdvertise with us Next Article Remove First Row of DataFrame in R G gottumukkalabobby Follow Improve Article Tags : R Language R Programs R-DataFrame R DataFrame-Programs Similar Reads How to Remove Rows in R DataFrame? In this article, we will discuss how to remove rows from dataframe in the R programming language. Method 1: Remove Rows by Number By using a particular row index number we can remove the rows. Syntax: data[-c(row_number), ] where. data is the input dataframerow_number is the row index position Exam 2 min read How to Remove Duplicate Rows in R DataFrame? In this article, we will discuss how to remove duplicate rows in dataframe in R programming language. Dataset in use:Method 1: Using distinct() This method is available in dplyr package which is used to get the unique rows from the dataframe. We can remove rows from the entire which are duplicates a 2 min read Removing display of row names from dataframe in R The dataframe rows and columns are referenced using unique row and column names for the elements. The dataframe method has an attribute row.names that don't make any modification to the existing structure of the dataframe, it just ignores the names assigned to rows. As a result, the first column con 3 min read How to remove empty rows from R dataframe? A dataframe can contain empty rows and here with empty rows we don't mean NA, NaN or 0, it literally means empty with absolutely no data. Such rows are obviously wasting space and making data frame unnecessarily large. This article will discuss how can this be done. To remove rows with empty cells w 1 min read Remove rows with NA in one column of R DataFrame Columns of DataFrame in R Programming Language can have empty values represented by NA. In this article, we are going to see how to remove rows with NA in one column. We will see various approaches to remove rows with NA values.ApproachCreate a data frameSelect the column based on which rows are to 2 min read Like