I'm having some problems in the following data frame:
Treat.Name HWAH
P_Control_1 2918.000
P_Control_2 2818.536
P_Control_3 2619.036
P_EMFL10_1 2740.786
P_EMFL10_2 2616.893
P_EMFL10_3 2395.964
I'm trying to break the character names in Treat.Name right at the "_" and create two new columns called "Cult" and "Num.", like in the example below:
Cult Treat.Name Num. HWAH
P Control 1 2918.000
P Control 2 2818.536
P Control 3 2619.036
P EMFL10 1 2740.786
P EMFL10 2 2616.893
P EMFL10 3 2395.964
I was searching for some examples of how to do that, but I'm not finding something close to what I'm looking for.