cells_body()
Use gtcars to create a gt table. Add a footnote that targets a single data cell with tab_footnote(), using cells_body() in locations (rows = hp == max(hp) will target a single row in the hp column).
gtcars
tab_footnote()
locations
rows = hp == max(hp)
hp
gtcars |> dplyr::filter(ctry_origin == "United Kingdom") |> dplyr::select(mfr, model, year, hp) |> gt() |> tab_footnote( footnote = "Highest horsepower.", locations = cells_body( columns = hp, rows = hp == max(hp) ) ) |> opt_footnote_marks(marks = c("*", "+"))