mirror of
https://github.com/msberends/AMR.git
synced 2025-07-08 16:42:10 +02:00
add tests using testthat
This commit is contained in:
@ -9,7 +9,8 @@
|
||||
clipboard_import(sep = "\\t", header = TRUE, dec = ".", na = c("", "NA",
|
||||
"NULL"), startrow = 1, as_vector = TRUE)
|
||||
|
||||
clipboard_export(x, sep = "\\t", dec = ".", na = "", header = TRUE)
|
||||
clipboard_export(x, sep = "\\t", dec = ".", na = "", header = TRUE,
|
||||
info = TRUE)
|
||||
}
|
||||
\arguments{
|
||||
\item{sep}{the field separator character. Values on each line of the
|
||||
@ -33,6 +34,8 @@ clipboard_export(x, sep = "\\t", dec = ".", na = "", header = TRUE)
|
||||
|
||||
\item{x}{the object to be written, preferably a matrix or data frame.
|
||||
If not, it is attempted to coerce \code{x} to a data frame.}
|
||||
|
||||
\item{info}{print info about copying}
|
||||
}
|
||||
\value{
|
||||
data.frame
|
||||
|
@ -59,8 +59,7 @@ septic_patients \%>\%
|
||||
first_isolate(.,
|
||||
"date",
|
||||
"patient_id",
|
||||
"genus",
|
||||
"species",
|
||||
"bactid",
|
||||
col_specimen = NA,
|
||||
col_icu = NA)) \%>\%
|
||||
# filter on first E. coli isolates
|
||||
|
Reference in New Issue
Block a user