Skip to content

Commit

Permalink
Change round.ppp to conform to generic
Browse files Browse the repository at this point in the history
  • Loading branch information
baddstats committed Jul 20, 2023
1 parent 6cf1fa3 commit ff105c5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: spatstat.geom
Version: 3.2-3
Version: 3.2-4
Date: 2023-07-20
Title: Geometrical Functionality of the 'spatstat' Family
Authors@R: c(person("Adrian", "Baddeley",
Expand Down
5 changes: 4 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CHANGES IN spatstat.geom VERSION 3.2-3
CHANGES IN spatstat.geom VERSION 3.2-4

OVERVIEW

Expand All @@ -12,6 +12,9 @@ SIGNIFICANT USER-VISIBLE CHANGES
New argument 'connect' specifies the connectivity of the raster,
either 4 or 8 neighbours for each pixel.

o round.ppp, round.pp3, round.ppx
Now has ellipsis argument '...' for conformity with generic 'round'

BUG FIXES

o as.mask
Expand Down
4 changes: 2 additions & 2 deletions R/round.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#
# $Revision: 1.6 $ $Date: 2019/02/20 03:34:50 $

round.ppp <- round.pp3 <- round.ppx <- function(x, digits=0) {
coords(x) <- round(as.matrix(coords(x)), digits=digits)
round.ppp <- round.pp3 <- round.ppx <- function(x, digits=0, ...) {
coords(x) <- round(as.matrix(coords(x)), digits=digits, ...)
return(x)
}

Expand Down
1 change: 1 addition & 0 deletions inst/doc/packagesizes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ date version nhelpfiles nobjects ndatasets Rlines srclines
"2023-05-09" "3.2-1" 450 1202 0 35837 15621
"2023-07-03" "3.2-2" 450 1202 0 35864 15621
"2023-07-20" "3.2-3" 450 1203 0 35915 15747
"2023-07-20" "3.2-4" 450 1203 0 35915 15747
7 changes: 4 additions & 3 deletions man/round.ppp.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
to the spatial coordinates of a point pattern.
}
\usage{
\method{round}{ppp}(x, digits = 0)
\method{round}{ppp}(x, digits = 0, \dots)

\method{round}{pp3}(x, digits = 0)
\method{round}{pp3}(x, digits = 0, \dots)

\method{round}{ppx}(x, digits = 0)
\method{round}{ppx}(x, digits = 0, \dots)
}
\arguments{
\item{x}{
Expand All @@ -24,6 +24,7 @@
\item{digits}{
integer indicating the number of decimal places.
}
\item{\dots}{Additional arguments passed to the default method.}
}
\details{
These functions are methods for the generic function
Expand Down

0 comments on commit ff105c5

Please sign in to comment.