AMR/man/as.mic.Rd

30 lines
757 B
Plaintext
Raw Normal View History

2018-02-21 11:52:31 +01:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classes.R
\name{as.mic}
\alias{as.mic}
\alias{is.mic}
\title{Class 'mic'}
\usage{
as.mic(x, na.rm = FALSE)
is.mic(x)
}
\arguments{
\item{x}{vector}
\item{na.rm}{a logical indicating whether missing values should be removed}
}
\value{
2018-04-25 15:33:58 +02:00
Ordered factor with new class \code{mic} and new attributes \code{package} and \code{package.version}
2018-02-21 11:52:31 +01:00
}
\description{
2018-03-13 14:34:10 +01:00
This transforms a vector to a new class\code{mic}, which is an ordered factor with valid MIC values as levels. Invalid MIC values will be translated as \code{NA} with a warning.
2018-02-21 11:52:31 +01:00
}
2018-02-22 20:48:48 +01:00
\examples{
mic_data <- as.mic(c(">=32", "1.0", "1", "1.00", 8, "<=0.128", "8", "16", "16"))
is.mic(mic_data)
2018-03-14 09:58:58 +01:00
2018-02-22 20:48:48 +01:00
plot(mic_data)
2018-03-13 14:34:10 +01:00
barplot(mic_data)
2018-02-22 20:48:48 +01:00
}