Learn R Programming

dsa (version 0.74.18)

df2HTML: Output a dataframe to HTML

Description

Output a dataframe to a HTML file.

Usage

df2HTML(dataframe, file)

Arguments

dataframe

data to be parsed to HTML

file

path to save to

Details

Function used to create HTML for the results of the seasonal adjustment. But can basically be used to create HTML output for any data.frame.

Examples

Run this code
# NOT RUN {
a=data.frame(lapply(1:4, function(x) round(rnorm(10),2)))
colnames(a) = paste0("x", 1:4)
# }
# NOT RUN {
df2HTML(a, "out.html")
# }

Run the code above in your browser using DataLab