choose_annotation_colnames | R Documentation |
Choose interesting annotation colnames from a data.frame
choose_annotation_colnames(
df,
min_reps = 2,
min_values = 2,
max_values = Inf,
keep_numeric = FALSE,
simplify = TRUE,
max_colnames = 20,
...
)
df |
|
min_reps |
|
min_values |
|
max_values |
|
keep_numeric |
|
simplify |
|
max_colnames |
|
... |
additional arguments are ignored. |
character
vector of colnames in df
that meet the criteria.
If no colnames meet the criteria, this function returns NULL
.
Other jamses utilities:
contrast2comp_dev()
,
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()
df <- data.frame(
threereps=paste0("threereps_", letters[c(1,1,1,3,5,7,7)]),
time=paste0("time_", letters[c(1:7)]),
tworeps=paste0("tworeps_", letters[c(12,12,14,14,15,15,16)]),
num=sample(1:7),
class=paste0("class_", LETTERS[c(1,1,1,3,5,7,7)]),
blah=rep("blah", 7),
maxvalues=c("one", "two", "three", "four", "five", "six", "six"))
df
choose_annotation_colnames(df)
df[,choose_annotation_colnames(df)]
choose_annotation_colnames(df, max_values=5)
df[,choose_annotation_colnames(df, max_values=5)]
choose_annotation_colnames(df, simplify=FALSE)
df[,choose_annotation_colnames(df, simplify=FALSE)]
choose_annotation_colnames(df, min_reps=3)
choose_annotation_colnames(df, min_reps=1)
choose_annotation_colnames(df, keep_numeric=TRUE)
choose_annotation_colnames(df, min_reps=1)
choose_annotation_colnames(df, min_reps=1, keep_numeric=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.