You can always create your own output function. Here one way to do it:
> x <- runif(20)
> cat(strwrap(paste(x, collapse=' ')), sep='\n')
0.482080115471035 0.599565825425088 0.493541307048872
0.186217601411045 0.827373318606988
0.668466738192365 0.79423986072652 0.107943625887856 0.723710946040228
I tried this, but I've got a printout in single line or with 'fill' option in
multiline like this
0.6375758 1.060877 0.2509587 -0.1509616 0.819645 -0.3580455 -0.07430713
-0.3464005 -2.312149 -0.8428289 0.8717265 -0.7302025 -0.5292043 -0.289512
-1.231468 0.01108207 -1.811966 0.03652744 0.1809602
Try this:
cat(x, '\n')
On Sat, Feb 6, 2010 at 12:03 PM, zumar wrote:
>
> I'm a newbie in R and my question is simple.
> When I type something like this:
>> x=rnorm(10)
>> x
> [1] 0.5804216 -1.1537118 -0.335 0.7117290 -1.0918811 0.3992606
> [7] -0.1800837 0.4168152 -0.2077298 -0.2595467
I'm a newbie in R and my question is simple.
When I type something like this:
> x=rnorm(10)
> x
[1] 0.5804216 -1.1537118 -0.335 0.7117290 -1.0918811 0.3992606
[7] -0.1800837 0.4168152 -0.2077298 -0.2595467
> 1
[1] 1
>
I'm getting indexes in the first column ([1], [7], etc.)
How to suppr
4 matches
Mail list logo