Skip to content
Snippets Groups Projects
findAttribute.Rd 739 B
Newer Older
Arnaud Duvermy's avatar
Arnaud Duvermy committed
% Generated by roxygen2: do not edit by hand
Arnaud Duvermy's avatar
Arnaud Duvermy committed
% Please edit documentation in R/actual_mainfixeffects.R
Arnaud Duvermy's avatar
Arnaud Duvermy committed
\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)
}