#' short description 1
#'
#' @description descriptin 2??
#'
#' @param argument1 arg-description
#'
#' @import data.table
#'
#' @return This function returns \code{the url} blah blah blah
#' @examples
#'\dontrun{
#' function(arg1)
#'}
#' @export
notdupsN <- function(DT, by=colnames(DT)) {
# DT <- a1
# by <- qc(pnr, bef_aar, j
if(any(by %nin% colnames(DT))) stop('variable findes ikke i DT')
dup_index <- sort(unique(c(
which(duplicated(DT, by=by)),
which(duplicated(DT, by=by, fromLast=T))
)))
nrow(DT)-length(dup_index)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.