Skip to content

Commit

Permalink
fixed for windows freq()
Browse files Browse the repository at this point in the history
  • Loading branch information
qinwf committed Sep 27, 2015
1 parent 3cdc8f6 commit a825ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/words_freq.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ freq <- function(x){
if("character" %in% class(x) != TRUE){
stop("Please give me a character vector.")
}
if(Encoding(x)=="unknown" && .Platform$OS.type=="windows"){
if(.Platform$OS.type=="windows"){
x=enc2utf8(x)
}

Expand Down

0 comments on commit a825ff5

Please sign in to comment.