Skip to content
Snippets Groups Projects
Commit 44eaeeeb authored by Lucas Schons's avatar Lucas Schons
Browse files

Add missing library and fix typo

parent 39ae3a9e
No related branches found
No related tags found
1 merge request!21Resolve "R-Skript für Birthdate erstellen"
......@@ -5,6 +5,7 @@
library(rvest)
library(stringr)
library(data.table)
library(xml2)
#' Extract birthdate from infobox
#' Will try to get infobox as table and extract birthdate
......@@ -25,7 +26,7 @@ getBirthdate <- function(article) {
# Remove parentheses
birthdate <- substring(birthdate, 2, nchar(birthdate)-1)
} else {
# Retrun Null if there is no birthdate
# Return Null if there is no birthdate
return(0)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment