Editing CommunityData:Knitr
From CommunityData
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 5: | Line 5: | ||
First, you'd want to create an R script that's organized around every table you want to create in your document. The script should create separate dataframes for every one of them. If your table is going to have rownames, include a vector of rownames in your data frame. | First, you'd want to create an R script that's organized around every table you want to create in your document. The script should create separate dataframes for every one of them. If your table is going to have rownames, include a vector of rownames in your data frame. | ||
A data frame for a summary stats table could look something like this, for instance | A data frame for a summary stats table could look something like this, for instance: | ||
summary.stats <- data.frame(cbind( | summary.stats <- data.frame(cbind( |