Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
203 views
in Technique[技术] by (71.8m points)

r - Pulling encoding UTF-8 in map_df function

Could you please try to help me. I want this with support of encoding UTF-8

full_data <- dir("path", full.names = T) %>% map_df(read.xlsx, sheetIndex = 2) it doesnt support UTF-8 encoding and it is crucial for me

Couldn't pull of encoding = "UTF-8" in map_df(), when I try to expand read.xlsx which supports encoding parameter

full_data <- dir("path", full.names = T) %>% map_df(read.xlsx(encoding = "UTF-8",sheetIndex = 2))

R claim I didn't provide the "file" argument, which is kind of true, but I don't know how to provide file here, as I am on my way to create file

Lets say I have One file where the records are

    ID      Name      Post Code
    111     C?ó??     000-00
    222     Carlos    111-00
    333     Benito    222-00

Second file

 ID      Name   Post Code
112     Juan     000-00
221     Javier   111-00

Full file

     ID      Name      Post Code
    111     C?ó??      000-00    #SPECIAL CHARACTERS AVAILABLE
    222     Carlos     111-00
    333     Benito     222-00
    112     Juan       000-00
    221     Javier     111-00
question from:https://stackoverflow.com/questions/65901555/pulling-encoding-utf-8-in-map-df-function

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...