readSQLite: Load data frame from SQLite. This function reads a data frame...

View source: R/sqlite.R

readSQLiteR Documentation

Load data frame from SQLite. This function reads a data frame from an SQLite database file created with saveSQLite.

Description

Load data frame from SQLite. This function reads a data frame from an SQLite database file created with saveSQLite.

Usage

readSQLite(
  task,
  type,
  subdir = NULL,
  dirCreate = FALSE,
  tableName = "data",
  n = NULL,
  offset = 0
)

Arguments

task

Object of class D4TAlinkTask, as created by initTask.

type

Filename type. If the type is an array, the cocatenation of the elements is used with separator"-". Filenames have the form [task name]_[type].[ext]

subdir

(optional) Subdirectory.

dirCreate

Logical, if TRUE (by default) the directory is created.

tableName

name of the table in the SQLite database.

n

number of rows to read (if NULL, all rows are read).

offset

number of rows to skip before reading (default is 0).

Value

Data frame with requested table.


D4TAlink.light documentation built on Sept. 11, 2025, 1:07 a.m.