Description Usage Arguments Value Author(s) See Also Examples
Reads a dChip DCP file.
1 2 |
con |
A |
fields |
A |
cells |
An |
units |
An |
.nbrOfUnits |
A |
... |
Not used. |
Returns a list
structure containing the file header and the
requested data fields.
Henrik Bengtsson
To read only the DCP file header, see readDcpHeader
().
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | path <- system.file("exData", package="dChipIO")
filename <- "Test3-1-121502.dcp"
pathname <- file.path(path, filename)
hdr <- readDcpHeader(pathname)
print(hdr)
data <- readDcp(pathname)
str(data)
# Read a subset of the units
units <- c(10:11, 15:20, 150:105, 2,2,2)
dataT <- readDcp(pathname, units=units)
str(dataT)
# Assert correctness
for (ff in c("calls", "thetas", "thetaStds", "excludes")) {
stopifnot(length(dataT[[ff]]) == length(units))
stopifnot(identical(dataT[[ff]], data[[ff]][units]))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.