Created
July 20, 2022 19:01
-
-
Save KaiAragaki/1ebfc00359a023be4ecf9995b97c81a4 to your computer and use it in GitHub Desktop.
Get number of Rosalind Users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(rvest) | |
library(stringr) | |
read_html("https://rosalind.info/statistics/countries/") |> | |
html_elements(".span3") |> | |
html_text(trim = T) |> | |
stringr::str_extract("[:digit:]*$") |> | |
as.numeric() |> | |
sum() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment