mirror of
				https://github.com/msberends/AMR.git
				synced 2025-11-04 06:34:07 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			R
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			R
		
	
	
		
			Executable File
		
	
	
	
	
% Generated by roxygen2: do not edit by hand
 | 
						|
% Please edit documentation in R/mic.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{
 | 
						|
Ordered factor with new class \code{mic}
 | 
						|
}
 | 
						|
\description{
 | 
						|
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.
 | 
						|
}
 | 
						|
\section{Read more on our website!}{
 | 
						|
 | 
						|
\if{html}{\figure{logo.png}{options: height=40px style=margin-bottom:5px} \cr}
 | 
						|
On our website \url{https://msberends.gitlab.io/AMR} you can find \href{https://msberends.gitlab.io/AMR/articles/AMR.html}{a omprehensive tutorial} about how to conduct AMR analysis and find \href{https://msberends.gitlab.io/AMR/reference}{the complete documentation of all functions}, which reads a lot easier than in R.
 | 
						|
}
 | 
						|
 | 
						|
\examples{
 | 
						|
mic_data <- as.mic(c(">=32", "1.0", "1", "1.00", 8, "<=0.128", "8", "16", "16"))
 | 
						|
is.mic(mic_data)
 | 
						|
 | 
						|
# this can also coerce combined MIC/RSI values:
 | 
						|
as.mic("<=0.002; S") # will return <=0.002
 | 
						|
 | 
						|
plot(mic_data)
 | 
						|
barplot(mic_data)
 | 
						|
freq(mic_data)
 | 
						|
}
 | 
						|
\seealso{
 | 
						|
\code{\link{as.rsi}}
 | 
						|
}
 | 
						|
\keyword{mic}
 |