Re: [R] How to display data content on a only row?
Hello Dieter I got them from a Matrix on with I use the applyfunction tu compute the mean columns by columns print(apply(matSD,2,mean)) So it's a kind of vector. I'll check with the cat function Thank you, have a nice day Thomas -- View this message in context: http://www.nabble.com/How-to-display-data-content-on-a-only-row--tp23497437p23500703.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] How to display data content on a only row?
Totally awsom! Thank you very much Thom -- View this message in context: http://www.nabble.com/How-to-display-data-content-on-a-only-row--tp23497437p23502952.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] How to display data content on a only row?
Thom_249 wrote: > > I got them from a Matrix on with I use the applyfunction tu compute the > mean columns by columns > print(apply(matSD,2,mean)) > matSD = matrix(round(rnorm(20),2),nrow=4) cat(matSD) print(matSD) dput(matSD) # How to send this matrix to r-help newMat = apply(matSD,2,mean) print(newMat) cat(newMat,"\n") dput(newMat) # Good for r-help questions -- View this message in context: http://www.nabble.com/How-to-display-data-content-on-a-only-row--tp23497437p23501655.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] How to display data content on a only row?
Hi I'm sorry for my so basic question, but it's so basic that I can't find anwser anywhere... I have data like this: [1] 16.800 6.533 5.067 3.933 2.200 1.667 [7] 1.200 1.067 0.733 0.667 [1] 35.6113946 6.9576953 4.5271667 2.3744674 1.4735768 1.1751393 [7] 1.2649111 0.7988086 0.7037316 0.7237469 [1] 32.933 15.667 8.133 6.533 2.800 2.267 [7] 1.467 0.733 0.733 0.667 [1] 27.4992641 10.2794293 3.4198301 2.3864698 1.4735768 1.2227993 [7] 1.1872337 0.7037316 1.0327956 0.7237469 [1] 234.533 11.333 5.800 2.933 2.000 1.533 [7] 0.933 0.667 0.267 0.533 [1] 425.7797665 9.5966264 4.2627959 2.4043611 2.0701967 1.5522641 [7] 1.0997835 1.0465362 0.5936168 0.7432234 [1] 430.2667 18.2000 4.5333 2.1333 1.0667 [6] 0.4000 0.0667 0.2667 0.0667 0.0667 [1] 450.8085540 17.1514264 4.7938453 2.5597619 2.2824381 0.9102590 [7] 0.2581989 0.5936168 0.2581989 0.2581989 And I want that all these data, printed on a 4 rows instead of 8, and it's be great without the "[x]" How can I don that? Regards Thomas -- View this message in context: http://www.nabble.com/How-to-display-data-content-on-a-only-row--tp23497437p23497437.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] How to display data content on a only row?
Thom_249 wrote: > > I have data like this: > [1] 16.800 6.533 5.067 3.933 2.200 1.667 > [7] 1.200 1.067 0.733 0.667 > > And I want that all these data, printed on a 4 rows instead of 8, and it's > be great without the "[x]" > > First look would be cat(). Second, tell us where you got the data from. Matrix? Many vectors? Dieter -- View this message in context: http://www.nabble.com/How-to-display-data-content-on-a-only-row--tp23497437p23498397.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.