https://github.com/cran/FinTS
Revision 9324580c199ed8480ac79c5e06a8886409dfd704 authored by Spencer Graves on 18 September 2008, 00:00:00 UTC, committed by Gabor Csardi on 18 September 2008, 00:00:00 UTC
1 parent 433d2c8
Tip revision: 9324580c199ed8480ac79c5e06a8886409dfd704 authored by Spencer Graves on 18 September 2008, 00:00:00 UTC
version 0.3-6
version 0.3-6
Tip revision: 9324580
url2data.Rd
\name{url2data}
\alias{url2data}
\title{ Create local copies of files read from urls. }
\description{
Call 'download.file' with each element of a vector of character
strings assumed to be URLs, create a local copy for each, and return a
character matrix summarizing what was done.
}
\usage{
url2data(url.)
}
\arguments{
\item{url.}{
a vector of character strings assumed to be URLs, whose names are
assumed to be the names to be used for local copies of the URLs.
}
}
\details{
1. fili <- names(urls.)
2. dati <- fili without its extension, i.e., the part following the
last '.'
3. for(i in 1:length(url.)try(download.file(url.[i], fili[i]));
found[i] = TRUE if something found and FALSE if not.
4. Return a character matrix with 4 columns: data = dati, file =
fili, url = url., and found.
}
\examples{
# See ~R\library\FinTS\scripts\TsayFiles.R
}
\keyword{file}
Computing file changes ...