I have tried to find an answer for this from previous questions, and the closest I found was for removing rows that contain a blank element, or an NA. This should have worked for mine but I cannot get it to do what I would like.
I have a dataframe imported from excel that I am manipulating to fix the layout for efficient statistical analysis. The equipment I am using returns data in a strange format.
Every second row in the dataframe contains the RSD values, which are the calculated errors from the software. In the column "Sample_Id", every second row has the Id "RSD".
I would like to modify the dataframe by removing the rows containing "RSD". To do this I have tried:
DTA <- DTA[!(DTA$Sample_Id == "RSD"),]
With "DTA" being my dataframe. This is similar to what was posted as the solution for the question regarding blanks and "NA", but for some reason does not work for my purpose.
My is made up of four columns containing 176 entries, but this varies for each experiment.
I would rather not omit the rows by row number.