contrast2comp_dev | R Documentation |
Convert contrast to short-form comp, convert comp to contrast (DEV)
contrast2comp_dev(contrast_names, verbose = FALSE, ...)
This method is developmental and is being tested as potentially
faster version of contrast2comp()
.
Other jamses utilities:
choose_annotation_colnames()
,
fold_to_log2fold()
,
intercalate()
,
list2im_opt()
,
log2fold_to_fold()
,
make_block_arrow_polygon()
,
mark_stat_hits()
,
matrix_normalize()
,
point_handedness()
,
point_slope_intercept()
,
shortest_unique_abbreviation()
,
shrinkDataFrame()
,
shrink_df()
,
shrink_matrix()
,
sort_samples()
,
strsplitOrdered()
,
sub_split_vector()
,
update_function_params()
,
update_list_elements()
contrast_names1 <- c("(A_c-B_c)-(A_d-B_d)",
"A_c-B_c",
"GroupA-GroupB",
"((A_c_J-B_c_J)-(A_d_J-B_d_J))-((A_c_W-B_c_W)-(A_d_W-B_d_W))")
contrast2comp_dev(contrast_names1)
# Note: this function fails when contrasts are not balanced
contrast2comp_dev(c("(A_c-B_c)-(A_d-C_d)"), verbose=TRUE)
contrast2comp(c("(A_c-B_c)-(A_d-C_d)"), verbose=TRUE)
contrast2comp_dev(c(contrast_names1[1:2], "(A_c-B_c)-(A_d-C_d)"), verbose=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.