.inspectHeader {wrMisc}R Documentation

Inspect 'matr' and check if 1st line can be used/converted as header

Description

This function inspects 'matr' and check if 1st line can be used/converted as header. If colnames of 'matr' are either NULL or 'V1',etc the 1st row will be tested if it contains any of the elements (if not, 1st line won't be used as new colnames) If 'numericCheck'=TRUE, all columns will be tested if they can be converted to numeric

Usage

.inspectHeader(
  matr,
  headNames = c("Plate", "Well", "StainA"),
  numericCheck = TRUE,
  silent = FALSE,
  debug = FALSE,
  callFrom = NULL
)

Arguments

matr

(matrix or data.frame) main input to be instected

headNames

(character) column-names t look for

numericCheck

(logical) allows reducing complexity by drawing for very long x or y

silent

(logical) suppress messages

debug

(logical) additional messages for debugging

callFrom

(character) allow easier tracking of messages produced

Value

This function returns a matrix vector or data.frame similar to input

See Also

head for looking at first few lines

Examples

ma1 <- matrix(letters[1:6], ncol=3, dimnames=list(NULL,c("ab","Plate","Well")))
.inspectHeader(ma1) 


[Package wrMisc version 1.15.1 Index]