CasJobs.uploadDataFrameToTable {SciServer} | R Documentation |
Uploads a dataframe object to a database table in CasJobs.
CasJobs.uploadDataFrameToTable(df, tableName, context="MyDB")
df |
dataframe to be uploaded. |
tableName |
Name of table |
context |
Database context |
Returns TRUE if the table was uploaded successfully. Throws an exception if the user is not logged into SciServer (use Authentication.login
for that purpose). Throws an exception if the HTTP request to the CasJobs API returns an error.
Gerard Lemson, Manuchehr Taghizadeh-Popp
Maintainer: Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>
http://www.sciserver.org
http://skyserver.sdss.org/casjobs
http://www.github.com/sciserver/SciScript-R
CasJobs.uploadCSVDataToTable
, CasJobs.uploadCSVFileToTable
.
response = CasJobs.uploadDataFrameToTable(CasJobs.executeQuery("select 1 as foo,2 as bar"), "MyNewTable")