rmOrganism: Remove duplicate entries which only differ by HCAI organism...

Description Usage Arguments Author(s) Examples

View source: R/removeFns.R

Description

Within an organism group take the first incidence of infection i.e earliest specimen time and remove the rest.

Usage

1

Arguments

data

Patient record data with approriate fields.

Author(s)

N Green

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
##---- 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 (data) 
{
    data.drop <- subset(data, select = -c(adm_diff_specdate, 
        dis_diff_specdate, lab_Specimendate, lab_opieid, lab_organismname, 
        lab_group, Gram))
    !duplicated(data.drop)
  }

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