Extracts a dataset from a database or csv
data_extraction(
type,
data_connection = NULL,
sql_name = NULL,
csv_path = NULL,
time_period = NULL,
country = NULL,
vessel_type = NULL,
vessel_type_select = NULL,
ocean = NULL,
csv_output = FALSE
)
character expected. dabase or csv.
list expected. Output of the function postgresql_dbconnection, which must be done before using the data_extraction function.
character. Name of the sql file, in fishi.
character. Path of the csv.
integer expected. Period identification in year.
integer expected. Country codes identification. [Country referentials]
integer expected. Vessel type codes identification. [Vessel_type referentials]
character expected. engin or vessel_type.
integer expected. Ocean codes identification. [Oscean referentials]
TRUE to obtain a csv document. FALSE by default.
The function return ggplot R plot.