.inspectHeader | R Documentation |
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
.inspectHeader(
matr,
headNames = c("Plate", "Well", "StainA"),
numericCheck = TRUE,
silent = FALSE,
debug = FALSE,
callFrom = NULL
)
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 |
This function returns a matrix vector or data.frame similar to input
head
for looking at first few lines
ma1 <- matrix(letters[1:6], ncol=3, dimnames=list(NULL,c("ab","Plate","Well")))
.inspectHeader(ma1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.