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 59: | Line 59: | ||
Note that there's a funny thing going on with the <code>align</code> parameter here. R includes some default rownames for dataframes (usually something like X1, X2 etc). Since we have a column that contains our rownames, we need to suppress the default rownames by specifying <code>include.rownames=FALSE</code>. However, even though the <code>summary.stats</code> dataframe contained only four columns, we still need to specify ''five'' column alignments in for the <code>align</code> parameter because the first one corresponds to the default rownames column in the R dataframe. Not specifying the extra column alignment parameter will give you an error. | Note that there's a funny thing going on with the <code>align</code> parameter here. R includes some default rownames for dataframes (usually something like X1, X2 etc). Since we have a column that contains our rownames, we need to suppress the default rownames by specifying <code>include.rownames=FALSE</code>. However, even though the <code>summary.stats</code> dataframe contained only four columns, we still need to specify ''five'' column alignments in for the <code>align</code> parameter because the first one corresponds to the default rownames column in the R dataframe. Not specifying the extra column alignment parameter will give you an error. | ||
== Documentation == | == Documentation == | ||