package_management/contribution_guide.md

Basic Style Guidelines

@examples \dontrun{
print("Test Examples - NOT automatically executed")
}
#' Expand a list of icd9 code ranges. 
#' 
#' Expand a list of icd9 code ranges into a data.table with all (valid) codes falling into the specified ranges.
#' 
#' @details Maintained by: Clara Marquardt
#' 
#' @export
#' @import icd
#' @import data.table
#' 
#' @param range_table data.table containing a column with icd9 code ranges and code range names (data.table).
#' @param code_col name of the column containing the icd9 code ranges (see the below example) 
#' @param name_col name of the column containing the code range names (character).  
#' @param decimal whether or not the icd9 codes are in decimal format (logical - TRUE/FALSE) [default: TRUE]. 
#' @param validate see (\source{rdocumentation.org/packages/icd/......}) (logical - TRUE/FALSE).
#' 
#' @return data.table with the expanded icd9 code list and the associated code range names. 
#' 
#' @examples 
#' orig_table <- copy(gagne_code) 
#' print(orig_table$code)        
#' code_table <- clean_icd_list(range_table=orig_table, code_col="code", 
#'          name_col="condition", decimal=FALSE, validate=FALSE) 
#' print(code_table)


ClaraMarquardt/ehR documentation built on May 6, 2019, 12:02 p.m.