Description Usage Arguments Value
The task for this function is to read the data from the URL location and assign appropriate column names. The function will throw a warning if there are more columns in the data table than expected. If there are fewer columns than expected the function will retry up to 10 times to get the number of columns correct. If it fails after 10 tries then an error will be thrown.
1 2 | readUrl(inpUrl, columnTypes, columnNames, whichTable, removeRow, dataType,
idVar, playerLinkString, fbgUser, fbgPwd)
|
inpUrl |
The URL to get data from |
columnTypes |
A character vector describing the types of columns in the
data. Note: |
columnNames |
A character vector describing the names of the columns in
the data. Note: |
whichTable |
A number or character describing the table to get. This can be leveraged for HTML tables and spreadsheet files. |
removeRow |
A numeric vector indicating rows to skip at the top of the data.
For exampe |
dataType |
A character indicating the type of data (HTML, XML, file, xls) |
Returns a data.table with data from URL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.