I am trying to import a csv file into R in which rows are formatted as follows:
012002001 14.852DL 0000000034630100304660
012002001 84.031GG 0000001049180100304660
012002001 84.033DO 0000001297780100304660
012002001 84.042GG 0000000780000100304660
Unfortunately, the spaces do not correspond the fields. The fields are described below.
Field Data Element Positions Length
1 GU Code - State 1-2 2
GU Code - Type 3 1
GU Code - County 4-6 3
GU Code - Place 7-9 3
GU Code - Split 10-12 3
2 Program ID Code 13-18 6
3 Object Code 19-20 2
4 Funding Sign 21 1
5 Funding Amount 22-33 12
6 FIPS Code - State 34-35 2
FIPS Code - County 36-38 3
FIPS Code - Place 39-43 5
Pass-Through Flag 44 1
7 Agency Code 45-48 4
How can I import this file into R in a way that the variables are properly represented?
Thanks!