RToCausataNames: Converts R-friendly causata column names to the corresponding...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Converts R-friendly causata column names to the corresponding Causata system name

Usage

1
RToCausataNames(name.vector)

Arguments

name.vector

A character vector of column names.

Details

Causata variables follow two naming conventions. The first is found in data exported from within Causata using the "R Formated CSV" option:

variable.name_Time.Domain_id where id is a number, e.g. variable.name_Time.Domain_123

The second convention is found in data exported from the SQL interface:

variable.name__Time.Domain

Example conversions:

variable.name__Time.Domain becomes variable-name$Time Domain

variable.name_Time.Domain_123 is unchanged.

Variables that do not conform to these conventions will be mapped to "No Causata Name" and a warning will be triggered.

Value

An character vector of mapped variable names.

Author(s)

David Barker <support@causata.com>

See Also

CausataData, CausataVariable, CausataToRNames.

Examples

1
2
RToCausataNames(c("variable.name__Time.Domain", "variable.name_Time.Domain_123"))
RToCausataNames("bad-name-doesn't fit convention")


Search within the Causata package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.