Skip to content

Commit

Permalink
hardcore removals. no text allowed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdamico committed Jul 16, 2014
1 parent b00988f commit dbb8edb
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ get.tsv <-
stopifnot( substr( line , 1 , 1 ) %in% c( 'H' , 'P' ) )
# ..otherwise, there's something wrong with the file!

# remove goofy special characters (that will break monetdb)
line <- gsub( "Î?" , "62" , line , fixed = TRUE )
line <- gsub( "" , " " , line , fixed = TRUE )
line <- gsub( "m99" , " 99" , line , fixed = TRUE )
line <- gsub( "" , " " , line , fixed = TRUE )
if ( line.num > 1 ){
# remove goofy special characters (that will break monetdb)
line <- gsub( "Î?" , "62" , line , fixed = TRUE )
line <- gsub( "z" , " " , line , fixed = TRUE )
line <- gsub( "m99" , " 99" , line , fixed = TRUE )
line <- gsub( "j" , " " , line , fixed = TRUE )
}

line <- gsub( "[^[:alnum:]///' ]" , " " , line )

Expand Down

0 comments on commit dbb8edb

Please sign in to comment.