I know stuff has been posted, but not as complete as what I am looking for.
Take any help function (i.e. ?mean
), and realise that it's output (or at least output should be able to be generated in the same manner).
How do you get enters, alignment/intendation?
Example:
strings <- c("t", "df", "p-value", "mean of x", "mean of y")
values <- c(t, df, pvalue, mean1, mean2)
If this would be the things you'd want to output in R (when called from a function), how do you make the [1]
disappear, and the values lined up?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…