This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ## Write a function that reads a directory full of files and reports the number of completely observed cases in each data file. | |
| ## The function should return a data frame where the first column is the name of the file and the second column is the number | |
| ## of complete cases. A prototype of this function follows | |
| complete <- function(directory, id = 1:332) { | |
| ## 'directory' is a character vector of length 1 indicating | |
| ## the location of the CSV files | |
| ## 'id' is an integer vector indicating the monitor ID numbers | |
| ## to be used | |
| ## Return a data frame of the form: |