search for: hanson1

Displaying 1 result from an estimated 1 matches for "hanson1".

Did you mean: hanson
2023 Jul 26
1
Downloading a directory of text files into R
...x) { s <- paste0(src, x) d <- file.path(dest, x) tryCatch( download.file(url = s, destfile = d), warning = function(w) w, error = function(e) e ) }) }, source_url, dest_dir) lengths(success) # http://home.brisnet.org.au/~bgreen/Data/Hanson1/ # 84 # http://home.brisnet.org.au/~bgreen/Data/Hanson2/ # 749 # matches the question's number sum(lengths(success)) # [1] 833 Hope this helps, Rui Barradas