library(readtext)
readtext("/data/several_files/*.docx|/data/several_files/*.pdf"),
readtext("/data/several_files/*.docx"),
readtext("/data/several_files/*.docx|/data/several_files/*.pdf",
docvarsfrom = "filenames",
docvarnames = c("type", "date", "initials", "region"),
dvsep = "_",
encoding = "ISO-8859-1")
readtext("/data/several_files/*.docx",
docvarsfrom = "filenames",
docvarnames = c("type", "date", "initials", "region"),
dvsep = "_",
encoding = "ISO-8859-1")
readtext("/data/several_files/*.docx",
docvarsfrom = "filenames",
docvarnames = c("type", "date", "initials", "region"),
dvsep = "_",
encoding = "ISO-8859-1")
readtext("/data/several_files/*.docx",
docvarsfrom = "filenames",
docvarnames = c("type", "date", "initials", "region"),
dvsep = "_",
encoding = "ISO-8859-1")
readtext("/data/several_files/*.docx",
docvarsfrom = "filenames",
docvarnames = c("type", "date", "initials", "region"),
dvsep = "_",
encoding = "ISO-8859-1")
readtext("data/several_files/*.docx",
docvarsfrom = "filenames",
docvarnames = c("type", "date", "initials", "region"),
dvsep = "_",
encoding = "ISO-8859-1")
readtext("data/several_files/*.docx",
docvarsfrom = "filenames",
docvarnames = c("type", "date", "initials", "region"),
dvsep = "_",
encoding = "ISO-8859-1") -> interviews
interviews
library(lubridate)
library(lubridate)
interviews %>%
mutate(date = dmy(date)) %>%
# after the date column is changed into the date-datatype we can arrange the dataset chronologically
arrange(date)
library(tidyverse)
library(readtext)
#Tidyverse is alway good to load
library(tidyverse)
library(lubridate)
interviews %>%
mutate(date = dmy(date)) %>%
# after the date column is changed into the date-datatype we can arrange the dataset chronologically
arrange(date)
interviews %>%
mutate(date = dmy(date)) %>%
# after the date column is changed into the date-datatype we can arrange the dataset chronologically
arrange(date) %>%
select(date, everything())
install.packages(c("BH", "bit", "boot", "broom", "callr", "checkmate", "class", "cli", "crosstalk", "curl", "data.table", "DBI", "digest", "dplyr", "drake", "DT", "fansi", "farver", "forcats", "foreign", "fs", "ggimage", "ggplot2", "ggplotify", "ggraph", "ggrepel", "gh", "glue", "graphlayouts", "gridGraphics", "haven", "Hmisc", "hms", "htmlTable", "igraph", "ISOcodes", "jsonlite", "knitr", "lattice", "latticeExtra", "lifecycle", "magick", "MASS", "mime", "modelr", "nlme", "nnet", "pillar", "plyr", "prettyunits", "processx", "ps", "R6", "raster", "Rcpp", "RcppArmadillo", "RcppEigen", "readtext", "rematch2", "rJava", "rlang", "rmarkdown", "rstudioapi", "rtweet", "rvcheck", "rvest", "scales", "selectr", "shiny", "sp", "stationaRy", "stringi", "styler", "survival", "tibble", "tidyr", "tidyselect", "tidytext", "tidyverse", "tinytex", "vctrs", "xfun", "xlsx", "XML", "xml2", "yaml"))
install.packages(c("BH", "bit", "boot", "broom", "callr", "checkmate", "class", "cli", "crosstalk", "curl", "data.table", "DBI", "digest", "dplyr", "drake", "DT", "fansi", "farver", "forcats", "foreign", "fs", "ggimage", "ggplot2", "ggplotify", "ggraph", "ggrepel", "gh", "glue", "graphlayouts", "gridGraphics", "haven", "Hmisc", "hms", "htmlTable", "igraph", "ISOcodes", "jsonlite", "knitr", "lattice", "latticeExtra", "lifecycle", "magick", "MASS", "mime", "modelr", "nlme", "nnet", "pillar", "plyr", "prettyunits", "processx", "ps", "R6", "raster", "Rcpp", "RcppArmadillo", "RcppEigen", "readtext", "rematch2", "rJava", "rlang", "rmarkdown", "rstudioapi", "rtweet", "rvcheck", "rvest", "scales", "selectr", "shiny", "sp", "stationaRy", "stringi", "styler", "survival", "tibble", "tidyr", "tidyselect", "tidytext", "tidyverse", "tinytex", "vctrs", "xfun", "xlsx", "XML", "xml2", "yaml"))
install.packages(c("BH", "bit", "boot", "broom", "callr", "checkmate", "class", "cli", "crosstalk", "curl", "data.table", "DBI", "digest", "dplyr", "drake", "DT", "fansi", "farver", "forcats", "foreign", "fs", "ggimage", "ggplot2", "ggplotify", "ggraph", "ggrepel", "gh", "glue", "graphlayouts", "gridGraphics", "haven", "Hmisc", "hms", "htmlTable", "igraph", "ISOcodes", "jsonlite", "knitr", "lattice", "latticeExtra", "lifecycle", "magick", "MASS", "mime", "modelr", "nlme", "nnet", "pillar", "plyr", "prettyunits", "processx", "ps", "R6", "raster", "Rcpp", "RcppArmadillo", "RcppEigen", "readtext", "rematch2", "rJava", "rlang", "rmarkdown", "rstudioapi", "rtweet", "rvcheck", "rvest", "scales", "selectr", "shiny", "sp", "stationaRy", "stringi", "styler", "survival", "tibble", "tidyr", "tidyselect", "tidytext", "tidyverse", "tinytex", "vctrs", "xfun", "xlsx", "XML", "xml2", "yaml"))
install.packages(c("BH", "bit", "boot", "broom", "callr", "checkmate", "class", "cli", "crosstalk", "curl", "data.table", "DBI", "digest", "dplyr", "drake", "DT", "fansi", "farver", "forcats", "foreign", "fs", "ggimage", "ggplot2", "ggplotify", "ggraph", "ggrepel", "gh", "glue", "graphlayouts", "gridGraphics", "haven", "Hmisc", "hms", "htmlTable", "igraph", "ISOcodes", "jsonlite", "knitr", "lattice", "latticeExtra", "lifecycle", "magick", "MASS", "mime", "modelr", "nlme", "nnet", "pillar", "plyr", "prettyunits", "processx", "ps", "R6", "raster", "Rcpp", "RcppArmadillo", "RcppEigen", "readtext", "rematch2", "rJava", "rlang", "rmarkdown", "rstudioapi", "rtweet", "rvcheck", "rvest", "scales", "selectr", "shiny", "sp", "stationaRy", "stringi", "styler", "survival", "tibble", "tidyr", "tidyselect", "tidytext", "tidyverse", "tinytex", "vctrs", "xfun", "xlsx", "XML", "xml2", "yaml"))
install.packages(c("BH", "bit", "boot", "broom", "callr", "checkmate", "class", "cli", "crosstalk", "curl", "data.table", "DBI", "digest", "dplyr", "drake", "DT", "fansi", "farver", "forcats", "foreign", "fs", "ggimage", "ggplot2", "ggplotify", "ggraph", "ggrepel", "gh", "glue", "graphlayouts", "gridGraphics", "haven", "Hmisc", "hms", "htmlTable", "igraph", "ISOcodes", "jsonlite", "knitr", "lattice", "latticeExtra", "lifecycle", "magick", "MASS", "mime", "modelr", "nlme", "nnet", "pillar", "plyr", "prettyunits", "processx", "ps", "R6", "raster", "Rcpp", "RcppArmadillo", "RcppEigen", "readtext", "rematch2", "rJava", "rlang", "rmarkdown", "rstudioapi", "rtweet", "rvcheck", "rvest", "scales", "selectr", "shiny", "sp", "stationaRy", "stringi", "styler", "survival", "tibble", "tidyr", "tidyselect", "tidytext", "tidyverse", "tinytex", "vctrs", "xfun", "xlsx", "XML", "xml2", "yaml"))
install.packages(c("BH", "bit", "boot", "broom", "callr", "checkmate", "class", "cli", "crosstalk", "curl", "data.table", "DBI", "digest", "dplyr", "drake", "DT", "fansi", "farver", "forcats", "foreign", "fs", "ggimage", "ggplot2", "ggplotify", "ggraph", "ggrepel", "gh", "glue", "graphlayouts", "gridGraphics", "haven", "Hmisc", "hms", "htmlTable", "igraph", "ISOcodes", "jsonlite", "knitr", "lattice", "latticeExtra", "lifecycle", "magick", "MASS", "mime", "modelr", "nlme", "nnet", "pillar", "plyr", "prettyunits", "processx", "ps", "R6", "raster", "Rcpp", "RcppArmadillo", "RcppEigen", "readtext", "rematch2", "rJava", "rlang", "rmarkdown", "rstudioapi", "rtweet", "rvcheck", "rvest", "scales", "selectr", "shiny", "sp", "stationaRy", "stringi", "styler", "survival", "tibble", "tidyr", "tidyselect", "tidytext", "tidyverse", "tinytex", "vctrs", "xfun", "xlsx", "XML", "xml2", "yaml"))
library(readtext)
#Tidyverse is always good to load
library(tidyverse)
readtext("data/several_files/*.docx",
docvarsfrom = "filenames",
docvarnames = c("type", "date", "initials", "region"),
dvsep = "_",
encoding = "ISO-8859-1") -> interviews
interviews
library(lubridate)
interviews %>%
mutate(date = dmy(date)) %>%
# after the date column is changed into the date-datatype we can arrange the dataset chronologically
arrange(date) %>%
select(date, everything())
knit_with_parameters('~/Documents/workspace/2020/ImportingTextFiles/ImportingTextFiles.Rmd')
unlink('ImportingTextFiles_cache', recursive = TRUE)
library(lubridate)
interviews %>%
mutate(date = dmy(date)) %>%
# after the date column is changed into the date-datatype we can arrange the dataset chronologically
arrange(date) %>%
select(everything(), text)
unlink('ImportingTextFiles_cache', recursive = TRUE)
library(lubridate)
interviews %>%
mutate(date = dmy(date)) %>%
# after the date column is changed into the date-datatype we can arrange the dataset chronologically
arrange(date) %>%
select(everything(), text)
interviews %>%
mutate(date = dmy(date)) %>%
# after the date column is changed into the date-datatype we can arrange the dataset chronologically
arrange(date) %>%
select(date, -text, everything())
library(lubridate)
interviews %>%
mutate(date = dmy(date)) %>%
# after the date column is changed into the date-datatype we can arrange the dataset chronologically
arrange(date) %>%
select(date, everything())
unlink('ImportingTextFiles_cache', recursive = TRUE)
