Description Usage Arguments Value Examples
The input dataframe contains expression data so each cell should contain only non-negative, non-infinite, numerical characters (>=0). This function identifies if the dataframe contains character strings, NAs, negative values or infinite values that must first be removed by the user.
1 | checkInput(x)
|
x |
data frame of mean expression (cells) of genes (rows) in tissues (columns) |
Returns errors when incompatible values are found. Also returns a printout of the number of errors in each column. Nothing is returned If the dataframe is compatible with the package
1 2 3 4 5 6 7 8 9 10 | ## check example data
checkInput(meanExp)
## check data containing character strings
#df <- data.frame('col1' = c(1,'foo',3), 'col2' = c(4,5,'bar'))
#checkInput(df)
## check data containing other incompatible values
#df <- data.frame('col1' = c(1,2,Inf), 'col2' = c(-4,-Inf,6))
#checkInput(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.