R/read_ada.R

Defines functions read_ada

Documented in read_ada

# this function will read and relable an ada/adm file

read_ada <- function(path){
  
  df <- read.delim(file = path, header = FALSE, stringsAsFactors = FALSE)
  df = df[,3:ncol(df)]
  colnames(df)[1:9] = c("student_number", "name", "grade", "school_number",
                       "school_abbr", "entry_date", "exit_date", "membership", "attendance")
  df$grade = trimws(df$grade)
  df
}
svenhalvorson/SvenR documentation built on June 24, 2018, 9:25 a.m.