clean_dt | R Documentation |
Internal function, that checks the formatting of imported files and prepares them to be applicable for the following pcr-bias correction steps.
clean_dt(
datatable,
description = c("calibration", "experimental"),
type = 1L,
logfilename
)
datatable |
A data.table object that contains either the experimental data or the calibration data. |
description |
A character string, indicating if |
type |
A single integer. Type of data to be corrected: either |
logfilename |
A character string. Path to a file to save the log messages (default = paste0(tempdir(), "/log.txt")). |
If a valid file is provided, the function returns a cleaned data.table, suited for BiasCorrection.
logfilename <- paste0(tempdir(), "/log.txt")
cleaned_experimental <- clean_dt(
datatable = rBiasCorrection::example.data_experimental$dat,
description = "experimental",
type = 1,
logfilename = logfilename
)
dim(cleaned_experimental)
class(cleaned_experimental)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.