Convert a data frame to a date-first entry (date on left)

Description

Convert a data frame to a date-first entry (date on left)

Usage

date_first_entry(
  data,
  date = "date",
  title = "title",
  title_url = NULL,
  description = "description",
  description_url = NULL
)

Arguments

data A data frame with entry information
date The column name for the date. Default is "date"
title The column name for the title. Default is "title"
title_url The column name for title URL. Default is NULL
description The column name for description. Default is "description"
description_url The column name for description URL. Default is NULL

Value

A string with the date-first entry

Examples

library("apatypstcv")

service <- data.frame(
  date = c("2023 - 2025", "2021 - 2022"),
  title = c("Committee Member", "Chair"),
  description = c("American Psychology-Law Society", "Student Committee"),
  description_url = c("https://ap-ls.org", "")
)

date_first_entry(service, description_url = "description_url")
```{=typst}
#pad(left: 0.1in)[
#date-first-entry(date: [2023 - 2025],title: [Committee Member],description: [#link("https://ap-ls.org")[American Psychology-Law Society]],)
#date-first-entry(date: [2021 - 2022],title: [Chair],description: [Student Committee],)
]
```