[R] Finding index of specific values in a data.frame

Kevin Kowitski k.kowitski at icloud.com
Wed Jun 10 18:41:24 CEST 2015


Hey everyone, 

  I am new to R and I am trying to find the index of all of the values in a data.frame.   I have a .csv file that outputs pass, fail, error, and indeterminate readings.  I have passed the data from the .csv to a data.frame, have performed the proper matching criteria to generate a data.frame of 0's and 1's, and am outputting the total 1's (therefore matches) found.  I would also like to find the index of these values so that I can output a matrix containing the date and data point which has produced that match. Can anyone help set me in the right direction?

here is a github link to the code I have already generated for more clarity on the project:

https://github.com/KevinKowitski/datasciencecoursera/blob/master/ErrorCount.R

Thank you, 
Kevin


More information about the R-help mailing list