[R] ignore.case case sensitive parameter

String manipulation functions (e.g., the contains), ignore.case contain many parameters, default is T, i.e. no case, little attention will fall into the pit, the best practice is to join subconsciously this parameter.
For example:
image.png
I want to choose An columns, use the following

An <- ProFilterData %>% dplyr::select(1,contains("An")) 
#把转录本transcript_id也选进去了

image.png
The transcript can be seen that the present ID is also selected from the inside, it does not check the subsequent error occurs. So subconsciously with ignore.case parameters.

An <- ProFilterData %>% dplyr::select(1,contains("An",ignore.case = F))

image.png

Guess you like

Origin www.cnblogs.com/jessepeng/p/11361244.html