concurve (version 2.5.0)

curve_table: Produce Tables For concurve Functions

Description

Produces publication-ready tables with relevant statistics of interest for functions produced from the concurve package.

Usage

curve_table(data, levels, type = "c", format = "data.frame")

Arguments

data

Dataframe from a concurve function to produce a table for

levels

Levels of the consonance intervals or likelihood intervals that should be included in the table.

type

Indicates whether the table is for a consonance function or likelihood function. The default is set to "c" for consonance and can be switched to "l" for likelihood.

format

The format of the tables. The options include "data.frame" which is the default, "docx" (which creates a table for a word document), "pptx" (which creates a table for powerpoint), "latex", (which creates a table for a TeX document), and "image", which produces an image of the table.

See Also

ggcurve()

curve_compare()

plot_compare()

Examples

Run this code
# NOT RUN {
library(concurve)

GroupA <- rnorm(500)
GroupB <- rnorm(500)

RandomData <- data.frame(GroupA, GroupB)

intervalsdf <- curve_mean(GroupA, GroupB, data = RandomData, method = "default")

(z <- curve_table(intervalsdf[[1]], format = "data.frame"))
(z <- curve_table(intervalsdf[[1]], format = "latex"))
(z <- curve_table(intervalsdf[[1]], format = "image"))
# }

Run the code above in your browser using DataCamp Workspace