ecto_query: Querying the Database

Description Usage Arguments Value Examples

View source: R/DBI_wrapper_funcs.R

Description

Query the Van Der Linde 2018 database and return results. Uses Postgres SQL.

Usage

1

Arguments

sql

A string corresponding to a postgres SQL query statement, which will be executed on the database.

Value

A dataframe containing the results of the executed SQL query

Examples

1
2
french_seqs <- ecto_query('SELECT sample_ID, sample_seq FROM seq_data  WHERE ICP_country_code = 1;');
all_country_codes <- ecto_query('SELECT DISTINCT Country, code_country FROM plot_metadata;');

blex-max/ectosearchR documentation built on Dec. 19, 2021, 10:41 a.m.