Search
 
SCRIPT & CODE EXAMPLE
 

R

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"
Comment

PREVIOUS NEXT
Code Example
R :: dplyr colnames r 
R :: size of ticks labels in r ggplot 
R :: normalization in r 
R :: i have library(dplyr) but i still get Error in select(., 
R :: tbale() in R 
R :: read csv in r 
R :: r test normality 
R :: sort R 
R :: how to group by 2 variables in r 
R :: write to csv in r 
R :: sort dataframe dplyr 
R :: combine columns in r 
R :: correlation matrix in r 
R :: how to convert negative values to positive in R 
R :: convert string to lowercase R 
R :: how to summarise data but keep columns R 
R :: rnorm in r 
R :: r dot product 
R :: r count list 
R :: remove name of a column 
R :: Hello Shiny Server Logic 
R :: correlation matrix using factors r 
R :: r ggplot variable name 
R :: dummify data in r 
R :: parent folder for working directory in r 
Rust :: rustlang error: linker `link.exe` not found 
Rust :: ignore #[warn(dead_code)] 
Rust :: ..= in rust 
Rust :: rust char array 
Rust :: rust comment types 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =