假设下一个字符字符串:
test_string <- "A A B B C C C H I"
有没有办法从test_string
中提取最常见的值?
像这样:
extract_most_frequent_character(test_string)
输出:
#C