The R Project SVN R-packages

Rev

Rev 3281 | Rev 3324 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3281 Rev 3282
Line 17... Line 17...
17
name \emph{data}<n> is used. Names will be appended with numbers to prevent
17
name \emph{data}<n> is used. Names will be appended with numbers to prevent
18
duplicates. E.g. if name arg is \emph{iris}, and it already exists, then the
18
duplicates. E.g. if name arg is \emph{iris}, and it already exists, then the
19
new SDF will have a name \emph{iris1}. If it still exists, then the name
19
new SDF will have a name \emph{iris1}. If it still exists, then the name
20
will be \emph{iris2}, and so on.
20
will be \emph{iris2}, and so on.
21
}
21
}
-
 
22
}
22
\references{ ~put references to the literature/web site here ~ }
23
\references{ ~put references to the literature/web site here ~ }
23
\author{Miguel A. R. Manese}
24
\author{Miguel A. R. Manese}
24
\note{
25
\note{
25
A SDF is created by creating a sqlite database, with the specified name
26
A SDF is created by creating a sqlite database, with the specified name
26
as the filename with a db extension (e.g. data1.db). Each SDF is contained in
27
as the filename with a db extension (e.g. data1.db). Each SDF is contained in
27
a separate database. The name of the stored in the SDF.
28
a separate database. The name of the stored in the SDF.
28
}
29
}
29
\seealso{ ~~objects to See Also as \code{\link{help}}, ~~~ }
30
\seealso{ ~~objects to See Also as \code{\link{help}}, ~~~ }
30
\examples{
31
\examples{
-
 
32
    library(datasets)
31
    iris.sdf <- sqlite.data.frame(iris)
33
    iris.sdf <- sqlite.data.frame(iris)
32
    names(iris.sdf)
34
    names(iris.sdf)
33
    class(iris.sdf)
35
    class(iris.sdf)
34
    iris.sdf\$Petal.Length[1:10]
36
    iris.sdf$Petal.Length[1:10]
35
    iris.sdf[["Petal.Length"]][1:10]
37
    iris.sdf[["Petal.Length"]][1:10]
36
    iris.sdf[1,c(T,F)]
38
    iris.sdf[1,c(TRUE,FALSE)]
37
    #apply(iris.sdf[1:4], 2, mean)
39
    #apply(iris.sdf[1:4], 2, mean)
38
}
40
}