Learn R Programming

pgTools (version 1.0.2)

sqlNameWalk: Convert a column name into a PostgreSQL compatible name.

Description

Convert a column name into a PostgreSQL compatible name.

Usage

sqlNameWalk(x, double_quote = FALSE)

Value

A string, a PostgreSQL compatible column name.

Arguments

x

A string, a column name.

double_quote

TRUE/FALSE, if true, will add double quotes rather than replace non-compatible characters with underscores.

Examples

Run this code
sqlNameWalk("column 100 - sample b")

Run the code above in your browser using DataLab