rbindSdf {SQLiteDF}R Documentation

Add Rows to a SDF

Description

Adds rows to a SQLite data frame.

Usage

rbindSdf(sdf, df)

Arguments

sdf the SQLite data frame with which to insert new data.
df the data frame to attach

Details

This is equivalent to performing an insert statement. The data frame names and the column types must match, although they may be not arranged exactly the same.

Value

Returns the 1st argument (sdf).

Note

Currently SDFs are not supported as the 2nd arg. This could be achieved by doing batch rbindSdf to chunks of another SDF.

Author(s)

Miguel A. R. Manese

Examples

    b1 <- sqlite.data.frame(iris)
    rbindSdf(b1, iris)
    nrow(b1)  # nrow(iris) * 2

[Package SQLiteDF version 0.1.32 Index]