\name{getVariableMetadata} \alias{getVariableMetadata} \title{Internal function to fetch meta-data about variables in a model from a StatShop database. } \usage{ getVariableMetadata(model) } \arguments{ \item{model}{Name of model to select.} } \value{ A data frame giving the name of the varaible, the column name in the database, the type of the variable, the domain (list of possible values) and whether or not it is ordered. } \description{ Gets the details about the model variables in an array indexed by variable name. A connection to the database must be open before this function can be run. } \seealso{ \code{\link{asp.dbConnect}}, \code{\link{listModels}}, \code{\link{listVariables}}, \code{\link{getVariable}} } \examples{ ### This example will only run if you have the StatShop test databases ### installed on your machine. StatShop <- Sys.getenv("STATSHOP") if (StatShop == "") { warn("StatShop not installed, skipping test.") } else { asp.dbConnect("mcmc_statistics_test","junit") ## Get metadata for the student model variables getVariableMetadata("system") } } \keyword{database}