Title: Attribute(s) naming function.
Source:R/dat_col_names_horizontal.R
dat_col_names_horizontal.Rd
This function is used to name attribute(s). Attribute(s) names, in this case, are equivalent to the well labels found on the microplate reader. An attribute for a sample loaded into row A - column 1 will be named A1. In short, the function takes a clean data frame and returns attribute names that match the FLUOstar plate layout often presented as an Excel file.
Arguments
- dat
A string ("dat_1.dat") if the file is found within the present working directory (pwd) OR a path pointing directly to a ".dat" file.
- df
A data frame that requires attribute labels.
- rows_used
A character vector indicating the rows or tuples used on the microplate (usually a 96-well microplate). Initialized as NULL.
- cols_used
A numeric vector indicating the plate columns or attributes used. Initialized as NULL.
Note
This function was designed to avoid the use of stringr. This function is designed to name attributes when the read direction is specified as horizontal.
Examples
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(nocomma_dat, tnp=3, cycles=40)
n = c('A','B','C')
sample_col_names <- dat_col_names_horizontal(dat=fpath,resampled_scaled, n)