Connect_to_db: Conntect to DB

Description Usage Arguments Value Examples

View source: R/lucas.r

Description

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

Usage

1
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

1
2
3
4
5
## 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")
## End(Not run)

lucas documentation built on Oct. 23, 2020, 7:55 p.m.

Related to Connect_to_db in lucas...