Skip to content

Commit

Permalink
Minor code polish
Browse files Browse the repository at this point in the history
  • Loading branch information
RLumSK committed Feb 28, 2025
1 parent d09c095 commit 97d535c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions R/RLum-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,11 @@ setMethod(
"replicate_RLum",
"RLum",
definition = function(object, times = NULL) {

##The case this is NULL
if (is.null(times)) {
if (is.null(times))
times <- 1
}

lapply(1:times, function(x) {
object

})

## replicate
lapply(1:times, function(x) object)
}
)

0 comments on commit 97d535c

Please sign in to comment.