If you want to "mix" alphanumeric and numerics, the 'sprintf' is one
way of doing it:
> u <- 140
> xbar <- 150
> alpha <- .05
> zcrit <- 1.6449
> zcrit2 <- 1.96
> zstat <- 4
> pvalue <- 6.334348e-05
>
> cat(sprintf("u xbar alpha zcrit zcrit2 zstat pvalue %.0f %.0f %.2f %.4f %.2f
> %.0f %e\n",
+
wrote:
> From: Mary A. Marion
> Subject: [R] formatting in r
> To: r-help@r-project.org
> Received: Tuesday, July 28, 2009, 1:36 PM
> Hello,
>
> I have output that I want to print out. I am having a
> few issues.
>
> 1] output u to power is really nothing mor
Hello,
I have output that I want to print out. I am having a few issues.
1] output u to power is really nothing more than a 2 x 11 set of values
formed using cbind function
and printed out as a data frame
How can I get it to output over several lines such as seen here?
2] Critical Z et
3 matches
Mail list logo