follow up question: the vector created = digits.0 has length of 4132 with each entry indicating the row location in column 1 of the input file where the digit 0 was found.
The input file digits is 42,000 rows and 785 columns.
the first 10 entries in digits0 are:
head(digits.0,10)
[1] 2 5 6 18 24 55 64 70 99 109
Here is the rbind command (again):
digits.0data<- rbind(digits[digits.0,-1])
As i understand this the rbind should go to the first entry in digits.0 =2, and then use that as the reference in the input file digits and then populate digits.0data with the row =2 column data from the input file digits (skipping the first column).
Question, is R performing the row bind for every row that is populated in digits.0 without a loop?
Thus the digits.0data vector is 4132 rows and is a 784 columns per row?
Or since a loop is not specified, it is only performing the rbind command once and only reading row 2 of the input file to populate digits.0data with just the 784 columns values?
Thanks,
John2