makerow: For use with 'xtable"s 'add.to.row'

View source: R/makerow.R

makerowR Documentation

For use with xtable's add.to.row

Description

Collapses a vector into a character string separated by "&".

Usage

makerow(x, hline = FALSE)

Arguments

x

A vector or single row of a data frame (which is then converted to a vector within the function)

hline

Logical indicating whether a hline is needed after the row

Value

A single character string

Examples

  x <- c("A", 125, "Apple", 0.2, "75g")
  makerow(x)
  makerow(x, hline = TRUE)


EstherHerbert/Useful.functions documentation built on Jan. 31, 2025, 10:41 a.m.