R では、Tabulizer ライブラリを使用して Pdf テーブルからデータを抽出しています。名前はネパール語で、抽出後、このテーブルを取得します [1]: https://i.stack.imgur.com/Ltpqv.png
しかし今、私はその列 2 の名前を英語の同等のものに変更したい
Rでこれを行う方法はありますか
私が書いたRコードは
library(tabulizer)
location <- "https://citizenlifenepal.com/wp-content/uploads/2019/10/2nd-AGM.pdf"
out <- extract_tables(location,pages = 113)
##write.table(out,file = "try.txt")
final <- do.call(rbind,out)
final <- as.data.frame(final) ### creating df
col_name <- c("S.No.","Types of Insurance","Inforce Policy Count", "","Sum Assured of Inforce Policies","","Sum at Risk","","Sum at Risk Transferred to Re-Insurer","","Sum At Risk Retained By Insurer","")
names(final) <- col_name
final <- final[-1,]
write.csv(final,file = "/cloud/project/Extracted_data/Citizen_life.csv",row.names = FALSE)
View(final)```