Learn R Programming

rrtable (version 0.1.0)

data2pdf: Make a pdf file with a data.frame

Description

Make a pdf file with a data.frame

Usage

data2pdf(data, preprocessing = "", path = NULL, filename = "report.pdf",
  rawDataName = NULL, rawDataFile = "rawData.RDS", kotex = FALSE,
  echo = TRUE, showself = FALSE)

Arguments

data

A data.frame

preprocessing

A character string of R code

path

A name of destination file path

filename

A path of destination file

rawDataName

The name of the rawData

rawDataFile

The name of the rawData file which the data are to be read from.

kotex

Logical. Whether or not use kotex package of latex

echo

Logical. Whether or not show R code of plot and table

showself

Logical. Whether or not show R code for the paragraph

Examples

Run this code
# NOT RUN {
library(moonBook)
library(ztable)
library(ggplot2)
# }
# NOT RUN {
data2pdf(sampleData2,path="tmp")
# }

Run the code above in your browser using DataLab