forked from miller-christopher/Dallas_Open_Data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
importPersons.R
21 lines (20 loc) · 1.05 KB
/
importPersons.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#library(readr)
getPersons <- function(fpath){
print('importing Persons...')
intmp <- read_csv(fpath, trim_ws=TRUE, na = nalist,
col_types = cols(Address = col_skip(),
AptNum = col_skip(), DRLicNum = col_skip(),
EDate = col_datetime(format = " %m/%d/%Y %H:%M:%S %p "),
FirstName = col_skip(), LastName = col_skip(),
MiddleName = col_skip(), Name = col_skip(),
UpDatedOn = col_datetime(format = " %m/%d/%Y %H:%M:%S %p "),
WeaponMake = col_skip(),
WeaponModel = col_skip(),
'ServNum' = col_skip(),
'ServiceNum' = col_skip(),
'ETime1' = col_skip(),
'ETime2' = col_skip(),
'DRLicSt' = col_skip()
))
return(intmp)
}