Learn R Programming

ibmdbR (version 1.42.2)

as.ida.data.frame: Convert an R object to a IDA data frame

Description

This function creates a IDA data frame ida.data.frame from a local R data.frame by creating a table in the data base.

Usage

as.ida.data.frame(x,table=NULL,clear.existing=FALSE,case.sensitive=TRUE)

Arguments

x
The name of the input object that is to be converted to a IDA data frame.
table
The name of the database table that is to be created to hold the contents of the IDA data frame. The specified name is folded to uppercase. If this parameter is not specified, a name is generated automatically.
clear.existing
If the table parameter is specified and a table with the specified name already exists, this parameter specifies whether the existing table is to be dropped (TRUE) or whether the as.ida.data.frame statement is to be ignor
case.sensitive
If the table parameter is specified for an existing table, this parameter specifies whether the column names in that table name are to be treated as case-sensitive (TRUE) or not case-sensitive (FALSE).

Value

  • A IDA data frame that points to the newly created table.

See Also

as.data.frame

Examples

Run this code
#Add an ID column to iris
iris2 <- iris
iris2$ID <- 1:150

#Upload it and overwrite if already exists
idf <- as.ida.data.frame(iris2,"IRIS",clear.existing=T)

Run the code above in your browser using DataLab