R/utilities.R
remove_NA_rows.Rd
Removes rows with more than thresh NA's from matrix
remove_NA_rows(obj, thresh = 0)
matrix or dataframe
- maximum number of NA's / row - if more the row will be removed
matrix
Other utilities: INTERNAL_FUNCTIONS_BY_FAMILY, get_UniprotID_from_fasta_header(), matrix_to_tibble(), multigroup_volcano(), names_to_matrix(), pairs_smooth(), pairs_w_abline(), panel_cor(), panel_hist(), table_facade()
INTERNAL_FUNCTIONS_BY_FAMILY
get_UniprotID_from_fasta_header()
matrix_to_tibble()
multigroup_volcano()
names_to_matrix()
pairs_smooth()
pairs_w_abline()
panel_cor()
panel_hist()
table_facade()
obj = matrix(rnorm(10*10),ncol=10) dim(obj) #> [1] 10 10 obj[3,3] = NA x1 = remove_NA_rows(obj, thresh=0) stopifnot(all(c(9,10)==dim(x1))) x2 = remove_NA_rows(obj, thresh=1) stopifnot(all(c(10,10)==dim(x2)))