catcodes: Concatenate codes

Description Usage Arguments Examples

View source: R/tableFns.R

Description

Rearrange the reference look-up table so that codes in a single column.

Usage

1

Arguments

codes

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (codes) 
{
    codes$Code <- clean.ref(codes$Code)
    x <- aggregate(codes, by = list(codes$Group), paste, collapse = ",")[, 
        1:2]
    write.table(x, file = ".\Reference_tables\matchcodesGrouped.txt", 
        sep = "\t")
  }

n8thangreen/HESmanip documentation built on March 21, 2020, 12:20 a.m.