Skip to content
Snippets Groups Projects
Commit 97e83108 authored by Lukas Gehrke's avatar Lukas Gehrke
Browse files

Aendert return Statement von '0' aud 'NULL' in getBirthdate.R.

parents 2aa1c5ae 44eaeeeb
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(Null)
}
}
......
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