[R] Output of clustering packages

Ray Brownrigg Ray.Brownrigg at mcs.vuw.ac.nz
Thu Jun 13 23:33:40 CEST 2002


>     AbMa> How to get the output in the form 
> [1] 1 
> [2] 2 
> .  
> 
> The answer is  cbind() : it makes a 1-column matrix from your vector
> 
That doesn't quite answer the question (extra commas):
> ii <- 1 + rpois(50, lam= 1)
> cbind(ii)
      ii
 [1,]  2
 [2,]  1
 :
But perhaps this is more like what you want:

> options(width=10)	# note 10 is the minimum
> print(ii, print.gap=3)
 [1]   2
 [2]   1
 :

Hope this helps,
Ray Brownrigg <ray at mcs.vuw.ac.nz>	http://www.mcs.vuw.ac.nz/~ray
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list