emend_fct_match | R Documentation |
Match input factor to specified levels.
emend_fct_match(.f, levels = NULL, chat = get_default_chat())
.f |
A factor. |
levels |
The levels of the factor |
chat |
A chat object defined by ellmer. |
A factor with levels matching the provided levels
argument.
chat <- ellmer::chat_ollama(model = "llama3.1:8b", seed = 0, echo = "none")
emend_fct_match(messy$country, levels = c("UK", "USA", "Canada", "Australia", "NZ"), chat = chat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.