Where are you setting `nrows` to a high enough number to ensure that you read the whole file?