Learn R Programming

normfluodbf (version 1.5.2)

resample_dat_scale_alt_na: Title: A function to create an attribute or column for each sample loaded into the microplate wells.

Description

A function that takes tuples or rows consisting of several samples and perform a putative resampling to yield another data frame with a separate attribute for each sample. NA values are retained.

Usage

resample_dat_scale_alt_na(df, tnp, cycles)

Value

A new data frame where separated samples are assigned a separate attribute or column.

Arguments

df

A clean data frame with attributes or tuples containing a mixture of samples.

tnp

A numeric value indicating the number of rows used. TNP is used as an acronym for Test, Negative, Positive.

cycles

A numeric value indicating the number of cycles selected by the user when running the FLUOstar instrument.

Author

Tingwei Adeck

See Also

resample_dat_alt()

Examples

Run this code
fpath <- system.file("extdata", "dat_1.dat", package = "normfluodbf", mustWork = TRUE)
dat_df <- read.table(file=fpath)
nocomma_dat <- clean_odddat_optimus(dat_df)
resampled_scaled <- resample_dat_scale_alt_na(nocomma_dat, tnp=3, cycles=40)

Run the code above in your browser using DataLab