-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathS3-filearray.Rd
More file actions
113 lines (78 loc) · 2.84 KB
/
S3-filearray.Rd
File metadata and controls
113 lines (78 loc) · 2.84 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aaa-docs.R, R/methods-subset.R,
% R/methods-subsetAssign.R, R/methods.R
\name{S3-filearray}
\alias{S3-filearray}
\alias{[.FileArray}
\alias{[<-.FileArray}
\alias{[[.FileArray}
\alias{as.array.FileArray}
\alias{dim.FileArray}
\alias{dimnames.FileArray}
\alias{dimnames<-.FileArray}
\alias{length.FileArray}
\alias{max.FileArray}
\alias{min.FileArray}
\alias{range.FileArray}
\alias{sum.FileArray}
\alias{subset.FileArray}
\title{'S3' methods for 'FileArray'}
\usage{
\method{[}{FileArray}(
x,
i,
...,
drop = TRUE,
reshape = NULL,
strict = TRUE,
dimnames = TRUE,
split_dim = 0
)
\method{[}{FileArray}(x, i, ..., lazy = FALSE) <- value
\method{[[}{FileArray}(x, i)
\method{as.array}{FileArray}(x, reshape = NULL, drop = FALSE, ...)
\method{dim}{FileArray}(x)
\method{dimnames}{FileArray}(x)
\method{dimnames}{FileArray}(x) <- value
\method{length}{FileArray}(x)
\method{max}{FileArray}(x, na.rm = FALSE, ...)
\method{min}{FileArray}(x, na.rm = FALSE, ...)
\method{range}{FileArray}(x, na.rm = FALSE, ...)
\method{sum}{FileArray}(x, na.rm = FALSE, ...)
\method{subset}{FileArray}(x, ..., drop = FALSE, .env = parent.frame())
}
\arguments{
\item{x}{a file array}
\item{i, ...}{index set, or passed to other methods}
\item{drop}{whether to drop dimensions; see topic \code{\link[base]{Extract}}}
\item{reshape}{a new dimension to set before returning subset results; default is \code{NULL} (use default dimensions)}
\item{strict}{whether to allow indices to exceed bound; currently only accept \code{TRUE}}
\item{dimnames}{whether to preserve \code{\link[base]{dimnames}}}
\item{split_dim}{internally used; split dimension and calculate indices to
manually speed up the subset; value ranged from 0 to size of dimension minus
one.}
\item{lazy}{whether to lazy-evaluate the method, only works when assigning
arrays with logical array index}
\item{value}{value to substitute or set}
\item{na.rm}{whether to remove \code{NA} values during the calculation}
\item{.env}{environment to evaluate formula when evaluating subset margin indices.}
}
\description{
These are 'S3' methods for 'FileArray'
}
\section{Functions}{
\itemize{
\item \code{[}: subset array
\item \code{`[`(FileArray) <- value}: subset assign array
\item \code{[[}: get element by index
\item \code{as.array(FileArray)}: converts file array to native array in R
\item \code{dim(FileArray)}: get dimensions
\item \code{dimnames(FileArray)}: get dimension names
\item \code{dimnames(FileArray) <- value}: set dimension names
\item \code{length(FileArray)}: get array length
\item \code{max(FileArray)}: get max value
\item \code{min(FileArray)}: get min value
\item \code{range(FileArray)}: get value range
\item \code{sum(FileArray)}: get summation
\item \code{subset(FileArray)}: get subset file array with formulae
}}