How to delete the first row of a dataframe in R?
Keep the labels from your original file like this: df = read.table(‘data.txt’, header = T) If you have columns named x and y, you can address them like this: df$x df$y If you’d like to actually delete the first row from a data.frame, you can use negative indices like this: df = df[-1,] If you’d … Read more