clean_data: clean_data

Description Usage Arguments Details Value Author(s)

Description

Clean data to be passed on to the model function

Usage

1
clean_data(df = sample_data(), country)

Arguments

df

The dataframe containing the samples

country

An country to subset the data by

Details

This function takes a dataset that has the Structure :

id: A number or character that is the identifier of the individual sample. This is actually not used by the function, but required as it is passed onto the modelling tool.

country: A character or factor of the county of origin that the analysis should be compleated for. If the dataset only has one country just supply a variable with one repeated value.

group: Must be a factor. The first level of the factor must be the reference group. This will frequently be humans.

ST: An integer value repersenting the type identifier

ASP, GLN, GLT, GLY, PGM, TKT, UNC: Integer values representing the type identifier for each of the 7 MLST genes.

Value

A list of which the first item goes to bugs

Author(s)

Thomas Rosendal


SVA-SE/kilde documentation built on May 9, 2019, 11:44 a.m.