| parse_joint | R Documentation |
Strips markdown fences, extracts the longest consecutive block of comma-separated lines, ensures a header row matching 'key1,key2' is present, and parses the CSV into a 2-column data.frame.
parse_joint(llm_response, key1, key2)
llm_response |
character, raw response from the LLM. |
key1 |
string, name of the lhs key column. |
key2 |
string, name of the rhs key column. |
a 2-column data.frame mapping values from key1 to key2.
parse_joint("01,January\n02,Feb\n04,May", key1 = "id", key2 = "month")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.