Reading docx file with R and converting the values to numeric

Viewed 124
1 Answers

A possible solution:

library(tidyverse)
library(textreadr)

read_docx("idades.docx") %>% 
  str_split(",") %>% 
  unlist() %>% 
  str_trim() %>% 
  as.numeric()
Related