Specify the targetted cell rectangle via an upper left anchor cell and the
rectangle's row and column extent. The extent can be specified directly via
dims or indirectly via the input object. Specification via
input anticipates a write operation into the spreadsheet. If
input is one-dimensional, the byrow argument controls whether
the rectangle will extend down from the anchor or to the right. If
input is two-dimensional, the col_names argument controls
whether cells will be reserved for column or variable names. If
col_names is unspecified, default behavior is to set it to TRUE
if input has columns names and FALSE otherwise.
anchored(anchor = "A1", dim = c(1L, 1L), input = NULL, col_names = NULL,
byrow = FALSE)character, specifying the upper left cell in "A1" or "R1C1" notation
integer vector, of length two, holding the number of rows and
columns of the targetted rectangle; ignored if input is provided
a one- or two-dimensioanl input object, used to determine the extent of the targetted rectangle
logical, indicating whether a row should be reserved for the
column or variable names of a two-dimensional input; if omitted, will be
determined by checking whether input has column names
logical, indicating whether a one-dimensional input should run down or to the right
a cell_limits object
anchored()
#> Error in loadNamespace(x): there is no package called ‘rematch’
as.range(anchored())
#> Error in loadNamespace(x): there is no package called ‘rematch’
dim(anchored())
#> Error in loadNamespace(x): there is no package called ‘rematch’
anchored("Q24")
#> Error in loadNamespace(x): there is no package called ‘rematch’
as.range(anchored("Q24"))
#> Error in loadNamespace(x): there is no package called ‘rematch’
dim(anchored("Q24"))
#> Error in loadNamespace(x): there is no package called ‘rematch’
anchored(anchor = "R4C2", dim = c(8, 2))
#> Error in loadNamespace(x): there is no package called ‘rematch’
as.range(anchored(anchor = "R4C2", dim = c(8, 2)))
#> Error in loadNamespace(x): there is no package called ‘rematch’
as.range(anchored(anchor = "R4C2", dim = c(8, 2)), fo = "A1")
#> Error in loadNamespace(x): there is no package called ‘rematch’
dim(anchored(anchor = "R4C2", dim = c(8, 2)))
#> Error in loadNamespace(x): there is no package called ‘rematch’
(input <- head(iris))
#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species
#> 1 5.1 3.5 1.4 0.2 setosa
#> 2 4.9 3.0 1.4 0.2 setosa
#> 3 4.7 3.2 1.3 0.2 setosa
#> 4 4.6 3.1 1.5 0.2 setosa
#> 5 5.0 3.6 1.4 0.2 setosa
#> 6 5.4 3.9 1.7 0.4 setosa
anchored(input = input)
#> Error in loadNamespace(x): there is no package called ‘rematch’
as.range(anchored(input = input))
#> Error in loadNamespace(x): there is no package called ‘rematch’
dim(anchored(input = input))
#> Error in loadNamespace(x): there is no package called ‘rematch’
anchored(input = input, col_names = FALSE)
#> Error in loadNamespace(x): there is no package called ‘rematch’
as.range(anchored(input = input, col_names = FALSE))
#> Error in loadNamespace(x): there is no package called ‘rematch’
dim(anchored(input = input, col_names = FALSE))
#> Error in loadNamespace(x): there is no package called ‘rematch’
(input <- LETTERS[1:8])
#> [1] "A" "B" "C" "D" "E" "F" "G" "H"
anchored(input = input)
#> Error in loadNamespace(x): there is no package called ‘rematch’
as.range(anchored(input = input))
#> Error in loadNamespace(x): there is no package called ‘rematch’
dim(anchored(input = input))
#> Error in loadNamespace(x): there is no package called ‘rematch’
anchored(input = input, byrow = TRUE)
#> Error in loadNamespace(x): there is no package called ‘rematch’
as.range(anchored(input = input, byrow = TRUE))
#> Error in loadNamespace(x): there is no package called ‘rematch’
dim(anchored(input = input, byrow = TRUE))
#> Error in loadNamespace(x): there is no package called ‘rematch’