File: last.updated.Rd

package info (click to toggle)
r-cran-data.table 1.14.8%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 15,936 kB
  • sloc: ansic: 15,680; sh: 100; makefile: 6
file content (32 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (3)
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
\name{.Last.updated}
\alias{.Last.updated}
\alias{Last.updated}
\title{ Number of rows affected by last update }
\description{
    Returns number of rows affected by last \code{:=} or \code{set()}.
}
\usage{
    .Last.updated
}
\value{
    Integer.
}
\details{
  Be aware that in the case of duplicate indices, multiple updates occur (duplicates are overwritten);
  \code{.Last.updated} will include \emph{all} of the
  updates performed, including duplicated ones. See examples.
}
\seealso{
  \code{\link{:=}}
}
\examples{
d = data.table(a=1:4, b=2:5)
d[2:3, z:=5L]
.Last.updated

# updated count takes duplicates into account #2837
DT = data.table(a = 1L)
DT[c(1L, 1L), a := 2:3]
.Last.updated
}
\keyword{ data }