Does anyone has any idea about importing the below data into R in an appropriate form? I tried strsplit function as: test <- strsplit(test,"[[:space:]]+") where test is the name of the file including the following messy data. Somehow I ended up with only one character variable. I would like to have eight different variable in appropriate form. Could you please help me?
Black Eagles 01/12 - 12/11 1500 W 7.0 420 48 Away +3
Blue State 02/18 - 04/21 1293 L 8.0 490 48 Home +1
Hawks 01/13 - 02/17 1028 L 4.0 46 460 Away
New Apple 09/23 - 11/23 563 L 3.0 470 47 Home +2
Black White 07/05 - 09/26 713 L 5.2 500 45 Home +4
PBO 10/24 - 10/30 1495 L 1.9 47 410 Away
How is this?
Here is the code that was used to get the above table: