When coming from one scripting language and going to another it is usually a matter of just finding the function name that will do what you want, well R Programming doesn’t easily allow for that. The syntax is quite different since it was designed to handle nothing but data.
fileData <- read.csv( thisFilePath )
Remove columns with NULL or NA items:
# This will set cleanRows to Only have useable data # The comma at the end is required cleanRows <- fileData[complete.cases(fileData),] # If you want to count the number of Rows rowCount <- nrow(cleanRows)