loadZIPcsvfromURL {easycsv}R Documentation

read multiple csv files into named data frames

Description

Reads multiple files in table format and creates a data frame from them, with cases corresponding to lines and variables to fields in the file.

Usage


loadZIPcsvfromURL(urlAddress = NULL,
                              txt = FALSE ,
                           encoding = "Latin-1",
                           stringsAsFactors = FALSE,
                           header = TRUE,
                           quote = "\"",
                           fill = TRUE,
                           comment.char = "")

Arguments

urlAddress

a URL address of the zipped file, if NULL then Israeli GTFS will be downloaded and added to env.

txt

logical. if TRUE .txt files will be loaded as tables instead of .csv

encoding

character. files encoding.default is Latin-1

stringsAsFactors

logical: should character vectors be converted to factors? Note that this is overridden by as.is and colClasses, both of which allow finer control.

header

a logical value indicating whether the files contain the names of the variables as its first line. If missing, the value is determined from the file format: header is set to TRUE if and only if the first row contains one fewer field than the number of columns.

quote

the set of quoting characters. To disable quoting altogether, use quote = "". See scan for the behaviour on quotes embedded in quotes. Quoting is only considered for columns read as character, which is all of them unless colClasses is specified.

fill

logical. If TRUE then in case the rows have unequal length, blank fields are implicitly added.

comment.char

character: a character vector of length one containing a single character or an empty string. Use "" to turn off the interpretation of comments altogether.

Details

loadcsv_multi is used for uncompressed files in a single folder.it can be used either by entering the local directory the files are in, or just running it with no arguments for manual folder selection on windows OS. It receives some arguments from read.csv and they are listed in the arguments section. loadcsvfromZIP is used for comma separated tables inside of a .zip file. loadZIPcsvfromURL is used for comma separated tables inside of a .zip file on the internet, no download needed.

Value

A data.frame containing a representation of the data in the file.

See Also

loadcsvfromZIP loadcsv_multi


[Package easycsv version 1.0.8 Index]