File: overview.R

package info (click to toggle)
r-cran-proxy 0.4-27-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 372 kB
  • sloc: ansic: 1,247; sh: 12; makefile: 5
file content (28 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
### R code from vignette source 'overview.Rnw'

###################################################
### code chunk number 1: preliminaries
###################################################
library(proxy)
x <- summary(pr_DB, "long")
FUN <- function(index) {
    for (i in which(index)) {
        writeLines(sprintf("Aliases: %s", paste(x$names[[i]], collapse = ", ")))
        writeLines(sprintf("Type   : %s", x$type[i]))
        writeLines(sprintf("Formula: %s\n", x$formula[i]))
    }
}


###################################################
### code chunk number 2: overview.Rnw:24-25
###################################################
FUN(x$distance == FALSE)


###################################################
### code chunk number 3: overview.Rnw:29-30
###################################################
FUN(x$distance == TRUE)