CasJobs.uploadDataFrameToTable {SciServer}R Documentation

Upload dataframe into a DB table.

Description

Uploads a dataframe object to a database table in CasJobs.

Usage

CasJobs.uploadDataFrameToTable(df, tableName, context="MyDB")

Arguments

df

dataframe to be uploaded.

tableName

Name of table

context

Database context

Value

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.

Author(s)

Gerard Lemson, Manuchehr Taghizadeh-Popp
Maintainer: Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>

References

http://www.sciserver.org
http://skyserver.sdss.org/casjobs
http://www.github.com/sciserver/SciScript-R

See Also

CasJobs.uploadCSVDataToTable, CasJobs.uploadCSVFileToTable.

Examples

response = CasJobs.uploadDataFrameToTable(CasJobs.executeQuery("select 1 as foo,2 as bar"), "MyNewTable")

[Package SciServer version 2.0.0 Index]