morbseq: Create a morbseq end of record loading

Description Usage Arguments See Also Examples

Description

A function to create a plain morbseq EOR based on a single id field

Usage

1
2
  morbseq(data, id, morbseq.name = "morbseq", safe = TRUE,
    ...)

Arguments

data

a data set (data.table or data.frame)

id

character length 1, string identifying column in data to create morbseq on

morbseq.name

the name of the created column

safe

logical check if morbseq.name column exists already, and return error if TRUE

See Also

fileseq

Examples

1
2
3
4
DF <- data.frame(ppn = c(1L,1L,2L), var1 = seq_len(3))
DT <- data.table(DF)
morbseq(DF, id = 'ppn')
morbseq(DT, id = 'ppn')

mnel/linkedEpi documentation built on May 23, 2019, 5:06 a.m.