Convert a data frame to a resume entry

Description

Convert a data frame to a resume entry

Usage

resume_entry(
  data,
  title = "title",
  location = "location",
  date = "date",
  description = "description",
  details = NULL
)

Arguments

data A data frame with columns for title, location, date, and description
title The column name for the title. Default is "title"
location The column name for the location. Default is "location"
date The column name for the date. Default is "date"
description The column name for the description. Default is "description"
details The column name for additional details. Default is NULL

Value

A string with the resume entry

Examples

library(typstcv)

educ <- data.frame(
 title = c("Ph.D. in Physics", "Master of Science"),
 location = c("Zürich, Switzerland", "Zürich, Switzerland"),
 date = c("1905", "1896 - 1900"),
 description = c("University of Zürich", "ETH")
)

resume_entry(educ)
```{=typst}
#resume-entry(title: "Ph.D. in Physics",location: "Zürich, Switzerland",date: "1905",description: "University of Zürich",)
#resume-entry(title: "Master of Science",location: "Zürich, Switzerland",date: "1896 - 1900",description: "ETH",)
```
# With details
award <- data.frame(
 title = c("Nobel Prize in Physics"),
 location = c("Stockholm, Sweden"),
 date = c("1921"),
 description = c("For his services to"),
 detail1 = c("Theoretical Physics"),
 detail2 = c("Discovery of the law of the photoelectric effect")
)

resume_entry(award, details = c("detail1", "detail2"))
```{=typst}
#resume-entry(title: "Nobel Prize in Physics",location: "Stockholm, Sweden",date: "1921",description: "For his services to",)
#resume-item[
- Theoretical Physics
- Discovery of the law of the photoelectric effect
]
```