aboutsummaryrefslogblamecommitdiff
path: root/man/Extract.mmkin.Rd
blob: 7677bdba40a6e6ac766c6941e9dfad380ab4d608 (plain) (tree)
1
2
3
4
5
6
7
8
                                            




                                             







                                                                         
                                                                          
       
                                       
 
                                    
          
 
                                                    
                                                                           
                                        
                
                  

                                                             
                       
   


              
 
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mmkin.R
\name{[.mmkin}
\alias{[.mmkin}
\title{Subsetting method for mmkin objects}
\usage{
\method{[}{mmkin}(x, i, j, ..., drop = FALSE)
}
\arguments{
\item{x}{An \code{\link{mmkin} object}}

\item{i}{Row index selecting the fits for specific models}

\item{j}{Column index selecting the fits to specific datasets}

\item{...}{Not used, only there to satisfy the generic method definition}

\item{drop}{If FALSE, the method always returns an mmkin object, otherwise
either a list of mkinfit objects or a single mkinfit object.}
}
\value{
An object of class \code{\link{mmkin}}.
}
\description{
Subsetting method for mmkin objects.
}
\examples{

  # Only use one core, to pass R CMD check --as-cran
  fits <- mmkin(c("SFO", "FOMC"), list(B = FOCUS_2006_B, C = FOCUS_2006_C),
                cores = 1, quiet = TRUE)
  fits["FOMC", ]
  fits[, "B"]
  fits["SFO", "B"]

  head(
    # This extracts an mkinfit object with lots of components
    fits[["FOMC", "B"]]
  )

}
\author{
Johannes Ranke
}

Contact - Imprint