DIFM-Brain / ofpetrial

GNU General Public License v3.0
0 stars 1 forks source link

Remove dependency to stringr in str_to_title() #21

Closed brittanikedge closed 4 months ago

brittanikedge commented 4 months ago

Create a new function to capitalize input names in figures and titles. This can also have improved behavior over the string function by recognizing names that should be all capital letters, such as UAN28 and 32.

tmieno2 commented 4 months ago

Okay, I was just working on this. I replaced that with tools::toTitleCase. Everybody has tools when R is installed. If you want to deal with special cases, you can base the function with it.

brittanikedge commented 4 months ago

That's what I am thinking. I can use the base functions to handle the fertilizer names better. That was a known problem in the past reports where UAN32 became Uan32.