Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Can't get multiple rows using filter in R

First off, brand new to R. Here is the dataframe I am working with:
enter image description here

I am trying to filter OUT the first row and keep the rest. I have tried using the code shown here:

>finaldata[finaldata$Date == '2010',]

Obviously, it is doing the opposite of what I want, and only showing the first row. This made sense to me after using it, but how can I go the other way, ridding the first row while keeping the rest in a data frame?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Tried various iterations of filter() and other recommendations found online.

>Solution :

To filter out first row you can use finaldata = finaldata [-1,]

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading