Cijfers na de komma bij π

Log in om je oplossingen te testen.
# needed library library(dplyr) # downloading 100 000 digits of pi url <- "https://www.angio.net/pi/digits/100000.txt" getalpi.raw<-readr::read_file(url) # splitting string into single characters getalpi <- data.frame(strsplit(getalpi.raw, "")[1]) # removing the "." i.e. 2nd row getalpi <- data.frame(getalpi[-c(1,2),]) data <- as.data.frame(table(getalpi[,1], dnn = list("cijfer")), responseName = "aantal") # Noteer hieronder je code
Je kunt zo vaak indienen als je wenst. Er wordt enkel rekening gehouden met je laatst ingediende oplossing.
Log in om je oplossingen te testen.