SkyServer.sqlSearch {SciServer} | R Documentation |
Executes a SQL query to the SDSS database, and retrieves the result table as a dataframe. Maximum number of rows retrieved is set currently to 500,000.
SkyServer.sqlSearch(sql, dataRelease=NULL)
sql |
a string containing the sql query |
dataRelease |
SDSS data release. E.g, 'DR13'. Default value already set in Config.DataRelease |
Returns the results table as a dataframe. Throws an exception if the HTTP request to the SkyServer API returns an error.
Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>
http://www.sciserver.org
http://skyserver.sdss.org
http://www.github.com/sciserver/SciScript-R
CasJobs.executeQuery
, CasJobs.submitJob
.
df = SkyServer.sqlSearch(sql="select 1")