An example data frame:
example_df = data.frame(Gene.names = c("A", "B"),
Score = c("3.69,2.97,2.57,3.09,2.94",
"3.99,2.27,2.89,2.89,2.00,2.52,2.09,2.83") )
I want to count the number of 'numbers' (values) separated by commas in each row of 'Score' column and create a new column, say 'Count'. How can I do this? I tried to google but am not getting much help there.