Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/library/base/man/Extract.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ x$name <- value

\code{\link{Syntax}} for operator precedence, and the
Section \manual{R-lang}{Indexing}.
\code{\link{replace}} for replacing without modyfying the original object.

\code{\link{NULL}} for details of indexing null objects.
}
Expand Down
3 changes: 3 additions & 0 deletions src/library/base/man/append.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ append(x, values, after = length(x))
\references{
\bibshow{R:Becker+Chambers+Wilks:1988}
}
\seealso{
\code{\link{c}} for combining vectors.
}
\examples{
append(1:5, 0:1, after = 3)
}
Expand Down
2 changes: 1 addition & 1 deletion src/library/base/man/asplit.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
asplit(x, MARGIN, drop = FALSE)
}
\arguments{
\item{x}{an array, including a matrix.}
\item{x}{an \link{array}, including a \link{matrix}.}
\item{MARGIN}{a vector giving the margins to split by.
E.g., for a matrix \code{1} indicates rows, \code{2} indicates
columns, \code{c(1, 2)} indicates rows and columns.
Expand Down
2 changes: 2 additions & 0 deletions src/library/base/man/c.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ c(\dots)
\seealso{
\code{\link{unlist}} and \code{\link{as.vector}} to produce
attribute-free vectors.

\code{\link{append}} to add values to a vector.
}
\examples{
c(1, 7:9)
Expand Down
2 changes: 2 additions & 0 deletions src/library/base/man/connections.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,8 @@ socketTimeout(socket, timeout = -1)

To flush output to the Windows and macOS consoles, see
\code{\link{flush.console}}.

\code{\link{socketSelect}} for picking an available socket connection.
}

\examples{
Expand Down
2 changes: 1 addition & 1 deletion src/library/base/man/det.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ det(x, \dots)
determinant(x, logarithm = TRUE, \dots)
}
\description{
\code{det} calculates the determinant of a matrix. \code{determinant}
\code{det} calculates the determinant of a \link{matrix}. \code{determinant}
is a generic function that returns separately the modulus of the determinant,
optionally on the logarithm scale, and the sign of the determinant.
}
Expand Down
2 changes: 1 addition & 1 deletion src/library/base/man/dots.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
\R, see \code{\link{Reserved}}.

\manual{R-intro}{The ... argument},
and \code{?\link[methods]{dotsMethods}} for its use in formal (S4) methods.
and \code{?\link[methods]{dotsMethods}} for its use in formal (S4) methods and \code{\link{chkDots}} for S3 methods.
}
\examples{
tst <- function(n, ...) ...elt(n)
Expand Down
3 changes: 2 additions & 1 deletion src/library/base/man/mat.or.vec.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ mat.or.vec(nr, nc)
\item{nr, nc}{numbers of rows and columns.}
}
\description{
\code{mat.or.vec} creates an \code{nr} by \code{nc} zero matrix if
\code{mat.or.vec} creates an \code{nr} by \code{nc} zero \link{matrix} if
\code{nc} is greater than 1, and a zero vector of length \code{nr} if
\code{nc} equals 1.
}
\value{A vector or a matrix filled with 0.}
\examples{
mat.or.vec(3, 1)
mat.or.vec(3, 2)
Expand Down
4 changes: 4 additions & 0 deletions src/library/base/man/matrix.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,12 @@ is.matrix(x)
\code{\link{data.matrix}}, which attempts to convert to a numeric
matrix.


A matrix is the special case of a two-dimensional \code{\link{array}}.
\code{\link{inherits}(m, "array")} is true for a \code{matrix} \code{m}.

\code{\link{mat.or.vec}} for creating numeric vectors or matrices.
\code{\link{\%*\%}}, \code{\link{det}} for operations with numeric matrices.
}
\examples{
is.matrix(as.matrix(1:10))
Expand Down
2 changes: 2 additions & 0 deletions src/library/base/man/regex.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@
\code{\link{glob2rx}}, \code{\link{help.search}}, \code{\link{list.files}},
\code{\link{ls}}, \code{\link{strsplit}} and \code{\link{agrep}}.

Examples of regular expressions used by R \code{\link{.standard_regexps}}.

The \href{https://html-preview.github.io/?url=https://raw.githubusercontent.com/laurikari/tre/master/doc/tre-syntax.html}{\I{TRE} regexp syntax}.

The POSIX 1003.2 standard at
Expand Down
14 changes: 13 additions & 1 deletion src/library/base/man/replace.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If necessary, the values in \code{values} are recycled.
}
\arguments{
\item{x}{a vector.}
\item{list}{an index vector.}
\item{list}{an index \link{vector}.}
\item{values}{replacement values.}
}
\value{
Expand All @@ -28,4 +28,16 @@ If necessary, the values in \code{values} are recycled.
\note{
\code{x} is unchanged: remember to assign the result.
}
\seealso{
\link{Extract} to replace in objects.
}
\value{
x <- 1:5
(y <- replace(x, c(2, 5), c(8, 9)))
x # Not modified

# Works with any vector
z <- list(A = "a", B = 2, C = diag(5))
replace(z, c(1, 2, 3), list(5, diag(3), "A"))
}
\keyword{manip}
5 changes: 4 additions & 1 deletion src/library/base/man/split.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
split(x, f, drop = FALSE, \dots)
\method{split}{default}(x, f, drop = FALSE, sep = ".", lex.order = FALSE, \dots)

split(x, f, drop = FALSE, \dots) <- value
split(x, f, drop = FALSE, \dots) <- values
unsplit(value, f, drop = FALSE)
}
\arguments{
Expand Down Expand Up @@ -84,6 +84,9 @@ unsplit(value, f, drop = FALSE)
\code{\link{cut}} to categorize numeric values.

\code{\link{strsplit}} to split strings.

\code{\link{asplit}} to split matrices and arrays.

}
\references{
\bibshow{R:Becker+Chambers+Wilks:1988}
Expand Down
3 changes: 3 additions & 0 deletions src/library/base/man/zutils.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@
\code{valid_package_version} with the obvious meanings. The regexps
are not anchored.
}
\examples{
.standard_regexps()
}
\keyword{utilities}
Loading