% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/h_freq_funs.R
\name{h_df_add_newlevels}
\alias{h_df_add_newlevels}
\title{Add New Levels to Data Frame}
\usage{
h_df_add_newlevels(df, .var, new_levels, addstr2levs = NULL, new_levels_after)
}
\arguments{
\item{df}{Data frame to update.}

\item{.var}{Variable to which new levels will be added.}

\item{new_levels}{List of new levels to add.}

\item{addstr2levs}{String to add to new levels.}

\item{new_levels_after}{Boolean, indicating if new levels should be added after existing levels.}
}
\value{
Updated data frame.
}
\description{
Adds new factor levels to a specified variable in the data frame.
}
