Hi I am new to R so am struggling with the commands here

I have one column in a table that looks like


slope (60/25/15) 
slope (90/10) 
slope (40/35/15/10) 
slope (40/25/25/10) 
I want to have 4 columns with just the number inside the parenthesis. when 
there is no number that cell can have 0. I want the output like this

60 25 15 0
90 10 0 0
40 35 15 10
40 25 25 10

Can somebody help me??
Thanks
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to