The R Project SVN R-packages

Rev

Rev 3509 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3509 Rev 3808
Line 1... Line 1...
1
\name{sqlite.matrix}
1
\name{sqlite.matrix}
2
\alias{sqlite.matrix}
2
\alias{sqlite.matrix}
3
\title{SQLite Matrix}
3
\title{SQLite Matrix}
4
\description{
4
\description{
5
EXPERIMENTAL: Creates a sqlite matrix (SMAT) from ordinary data frames.
5
EXPERIMENTAL: Creates a SQlite Matrix (SMAT) from data frames, matrices
-
 
6
and SQLite Data Frames.
6
}
7
}
7
\usage{
8
\usage{
8
sqlite.matrix(data, name = NULL)
9
sqlite.matrix(data, name = NULL)
9
}
10
}
10
\arguments{
11
\arguments{
11
  \item{data}{ a data vector, data frame or SQLite Data Frame }
12
  \item{data}{ a data frame, matrix or SQLite Data Frame }
12
  \item{name}{ the name of the SQLite Matrix }
13
  \item{name}{ the name of the SQLite Matrix }
13
}
14
}
14
\details{
15
\details{
15
Creates an SDF with 1 column named V1. The \emph{mode} of the matrix
16
Creates an SDF with 1 column named V1. The \emph{mode} of the matrix
16
is determined from the data, much like \code{as.matrix} does. It
17
is determined from the data, much like \code{as.matrix} does. It
Line 25... Line 26...
25
\value{
26
\value{
26
A S3 object representing the SQLite Matrix.
27
A S3 object representing the SQLite Matrix.
27
}
28
}
28
\author{Miguel A. R. Manese}
29
\author{Miguel A. R. Manese}
29
%\note{ }
30
%\note{ }
-
 
31
\seealso{\code{\link[SQLiteDF]{sqlite.vector}}
30
\seealso{\code{\link[SQLiteDF]{sqlite.data.frame}}}
32
         \code{\link[SQLiteDF]{sqlite.data.frame}}}
31
\examples{
33
\examples{
32
    iris.sdf <- sqlite.data.frame(iris)
34
    iris.sdf <- sqlite.data.frame(iris)
33
    im <- sqlite.matrix(iris.sdf[,1:4])
35
    im <- sqlite.matrix(iris.sdf[,1:4])
34
    dim(im)   # c(150, 4)
36
    dim(im)   # c(150, 4)
35
}
37
}