R
Ramthebuffs
I've made a query to get some info off a webpage and have come to
problem I'm not exactly sure how to get what I want. What I'm doing i
getting baseball box scores from websites and then organising the dat
into my own little database. My problem is that some of the stats ar
presented in a string format. Heres an example of what is in the cel
after the query
HR - Derek Jeter (3, Bonderman), Alfonso Soriano 2 (17, Sparks), Jorg
Posada (13, Sparks), Todd Zeile (6, Roney)
What I was thinking of doing is counting the "(" as that represents
home run. The problem is when it comes to Alfonso Soriano, the 2 afte
his name means he hit 2. The part that says (17, Sparks) simply state
his total homerun count for the season and the pitcher who threw th
HR, both are of no use to what I'm doing. In the above example ther
are 5 home runs, which is the result I am wanting.
It can get a little more complicated because it could read somethin
like this
HR - Derek Jeter (3, Bonderman), Alfonso Soriano 2 (17, Sparks), Jorg
Posada 3 (13, Sparks), Todd Zeile (6, Roney)
where multiple players hit multiple home runs. This example has 7 hom
runs. Anybody know how I can get what I need here
problem I'm not exactly sure how to get what I want. What I'm doing i
getting baseball box scores from websites and then organising the dat
into my own little database. My problem is that some of the stats ar
presented in a string format. Heres an example of what is in the cel
after the query
HR - Derek Jeter (3, Bonderman), Alfonso Soriano 2 (17, Sparks), Jorg
Posada (13, Sparks), Todd Zeile (6, Roney)
What I was thinking of doing is counting the "(" as that represents
home run. The problem is when it comes to Alfonso Soriano, the 2 afte
his name means he hit 2. The part that says (17, Sparks) simply state
his total homerun count for the season and the pitcher who threw th
HR, both are of no use to what I'm doing. In the above example ther
are 5 home runs, which is the result I am wanting.
It can get a little more complicated because it could read somethin
like this
HR - Derek Jeter (3, Bonderman), Alfonso Soriano 2 (17, Sparks), Jorg
Posada 3 (13, Sparks), Todd Zeile (6, Roney)
where multiple players hit multiple home runs. This example has 7 hom
runs. Anybody know how I can get what I need here