Newer
Older
% Please edit documentation in R/actual_mainfixeffects.R
\name{findAttribute}
\alias{findAttribute}
\title{Find Attribute}
\usage{
findAttribute(term, list)
}
\arguments{
\item{term}{The term to search for}
\item{list}{The list to search within}
}
\value{
The attribute containing the term, or NULL if the term is not found in any attribute
}
\description{
Find the attribute containing the specified term in a given list.
}
\examples{
# Create a list
my_list <- list(color = c("red", "blue", "green"),
size = c("small", "medium", "large"),
shape = c("circle", "square", "triangle"))
# Find the attribute containing "medium"
findAttribute("medium", my_list)
}