huxtable, or hux, creates a huxtable object.
huxtable
hux
huxtable(..., add_colnames = FALSE, add_rownames = FALSE)hux(..., add_colnames = FALSE, add_rownames = FALSE)as_huxtable(x, ...)as_hux(x, ...)# S3 method for default as_huxtable(x, add_colnames = FALSE, add_rownames = FALSE, ...)is_huxtable(x)is_hux(x)
hux(..., add_colnames = FALSE, add_rownames = FALSE)
as_huxtable(x, ...)
as_hux(x, ...)
# S3 method for default as_huxtable(x, add_colnames = FALSE, add_rownames = FALSE, ...)
is_huxtable(x)
is_hux(x)
Named list of values, as for data.frame.
data.frame
If TRUE, add a first row of column names to the huxtable.
TRUE
If TRUE, add a first column of row names, named 'rownames', to the huxtable.
An object to convert to a huxtable.
An object of class huxtable.
as_huxtable and as_hux convert an object to a huxtable. Conversion methods exist for data frames, tables, ftables, matrices and (most) vectors.
as_huxtable
as_hux
# NOT RUN { ht <- huxtable(column1 = 1:5, column2 = letters[1:5]) dfr <- data.frame(a = 1:5, b = letters[1:5], stringsAsFactors = FALSE) as_huxtable(dfr) # }
Run the code above in your browser using DataCamp Workspace