lucas (version 1.0)

Connect_to_db: Conntect to DB

Description

connect to the db where you want to upload all LUCAS points

Usage

Connect_to_db(user, host, port, password, dbname)

Arguments

user

Character. User of the database

host

Character. Host of the DB

port

Integer. Port to connect to usually 5432

password

Character. Password to access to the DB

dbname

Character

Value

conection to the db

Examples

Run this code
# NOT RUN {
con <- Connect_to_db("andrrap", "localhost", 5432,"andrrap","andrrap")
con <- Connect_to_db("martlur", "/var/run/postgresql", 5432,"martlur","postgres")
con <- Connect_to_db("postgres", "172.15.0.10", 5432,"test","postgres")
# }

Run the code above in your browser using DataCamp Workspace