contrast2comp_dev: Convert contrast to short-form comp, convert comp to contrast...

contrast2comp_devR Documentation

Convert contrast to short-form comp, convert comp to contrast (DEV)

Description

Convert contrast to short-form comp, convert comp to contrast (DEV)

Usage

contrast2comp_dev(contrast_names, verbose = FALSE, ...)

Details

This method is developmental and is being tested as potentially faster version of contrast2comp().

See Also

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()

Examples

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)


jmw86069/jamses documentation built on Nov. 4, 2024, 9:25 p.m.