Suppose I have a vector of means for percent correct from 5 different experimental conditions, and a vector of the corresponding standard errors, and both are sorted in the same order:Īll.res.corr$per.correct # Vector of mean percent correct, comes from a data frame called (I follow this by using latex() from the Hmisc package to generate LaTeX output of such a table.) Here is how you can prepare the print formatting when working in R: it’s rather trivial, but I wasted a sufficient amount of time on it that I thought it was worth mentioning. In journal articles, descriptive statistics results are often presented as a table of means, with standard deviation/standard error given in parentheses following the mean. ![]() Formatting numbers for printing in R: rounding and trailing zeroes Posted: Janu| Author: Kristine | Filed under: code, data analysis, R | 2 Comments
0 Comments
Leave a Reply. |