--============_-1179735293==_ma===========Content-Type: text/plain; charset="us-ascii" ; format="flowed" To: r-help-request@lists.R-project.org From: "Dr. Chris Wills" <cwills@ucsd.edu> Subject: Questions about sorting and functions Cc: Bcc: X-Attachments: Dear R-Gang - Two questions for you: 1) I cannot figure out how to sort one column in an array, and drag the rest of the values that occupy the other columns along with the sorted values in the first column. What I would like to end up with is an array that is the same size and dimensions as the first array. When I try various configurations of sort, I keep getting vectors instead of the array I started with, and I have not found a way to make sort "bind" other values to the sorted values. 2) I used a PC version of R over the summer, and was able to use rowSum, colSum and similar functions. These (and other things) do not seem to be enabled on the Mac OS9 version. Are they enabled on the OS10 version? If not, how can I enable them? And how do I download the OS10 version? My computer does not recognize the .gz files on the website http://cran.r-project.org/bin/macosx/atlas/. Many thanks, Chris Wills -- Christopher Wills Professor of Biology Division of Biological Sciences University of California, San Diego La Jolla CA 92093 Phone 858-534-4113 Fax 858-534-7108 e-mail cwills@ucsd.edu -- Christopher Wills Professor of Biology Division of Biological Sciences University of California, San Diego La Jolla CA 92093 Phone 858-534-4113 Fax 858-534-7108 e-mail cwills@ucsd.edu --============_-1179735293==_ma===========Content-Type: text/html; charset="us-ascii" <!doctype html public "-//W3C//DTD W3 HTML//EN"> <html><head><style type="text/css"><!-- blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 } --></style><title></title></head><body> <blockquote> <blockquote>To: r-help-request@lists.R-project.org</blockquote> </blockquote> <blockquote>From: "Dr. Chris Wills" <cwills@ucsd.edu></blockquote> <div>Subject: Questions about sorting and functions</div> <blockquote> <blockquote>Cc:</blockquote> </blockquote> <blockquote>Bcc:</blockquote> <div><font color="#000000">X-</font>Attachments:</div> <div>Dear R-Gang -<br> <x-tab> </x-tab>Two questions for you:<br> <x-tab> </x-tab>1) I cannot figure out how to sort one column in an array, and drag the rest of the values that occupy the other columns along with the sorted values in the first column. What I would like to end up with is an array that is the same size and dimensions as the first array. When I try various configurations of sort, I keep getting vectors instead of the array I started with, and I have not found a way to make sort "bind" other values to the sorted values.<br> <x-tab> </x-tab>2) I used a PC version of R over the summer, and was able to use rowSum, colSum and similar functions. These (and other things) do not seem to be enabled on the Mac OS9 version. Are they enabled on the OS10 version? If not, how can I enable them? And how do I download the OS10 version? My computer does not recognize the .gz files on the website http://cran.r-project.org/bin/macosx/atlas/.<br> <x-tab> </x-tab>Many thanks,<br> <x-tab> </x-tab>Chris Wills</div> <div><tt>-- </tt></div> <div>Christopher Wills<br> Professor of Biology<br> Division of Biological Sciences<br> University of California, San Diego</div> <div>La Jolla CA 92093</div> <div><br></div> <div>Phone 858-534-4113</div> <div>Fax 858-534-7108</div> <div>e-mail cwills@ucsd.edu</div> <x-sigsep><pre>-- </pre></x-sigsep> <div>Christopher Wills<br> Professor of Biology<br> Division of Biological Sciences<br> University of California, San Diego</div> <div>La Jolla CA 92093</div> <div><br></div> <div>Phone 858-534-4113</div> <div>Fax 858-534-7108</div> <div>e-mail cwills@ucsd.edu</div> </body> </html> --============_-1179735293==_ma============-- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel 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-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
"Dr. Chris Wills" <cwills@ucsd.edu> writes:> Two questions for you: > 1) I cannot figure out how to sort one column in an array, > and drag the rest of the values that occupy the other columns along > with the sorted values in the first column. What I would like to end > up with is an array that is the same size and dimensions as the first > array. When I try various configurations of sort, I keep getting > vectors instead of the array I started with, and I have not found a > way to make sort "bind" other values to the sorted values.o <- order(x[,1]) x[o,]> 2) I used a PC version of R over the summer, and was able to > use rowSum, colSum and similar functions. These (and other things) do > not seem to be enabled on the Mac OS9 version. Are they enabled on > the OS10 version? If not, how can I enable them?Versions of R with the same version number generally doe the same thing on all platforms, so you must have been using an older one.> And how do I > download the OS10 version? My computer does not recognize the .gz > files on the website http://cran.r-project.org/bin/macosx/atlas/.I believe the one you want is this file http://cran.r-project.org/bin/macos/base/rm151_FULL.sit -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel 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-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
--Apple-Mail-2-425464314 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed On Gioved=EC, settembre 19, 2002, at 12:13 , Dr. Chris Wills wrote:> To: r-help-request@lists.R-project.org > > From: "Dr. Chris Wills" <cwills@ucsd.edu> > > Subject: Questions about sorting and functions > > Cc: > > Bcc: > > X-Attachments: > Dear R-Gang - > =A0=A0Two questions for you: > =A01)=A0 I cannot figure out how to sort one column in an array, and drag=20 > the rest of the values that occupy the other columns along with the=20 > sorted values in the first column.=A0 What I would like to end up with is=20 > an array that is the same size and dimensions as the first array.=A0 When=20 > I try various configurations of sort, I keep getting vectors instead of=20 > the array I started with, and I have not found a way to make sort=20 > "bind" other values to the sorted values.> =A0=A0=A02)=A0 I used a PC version of R over the summer, and was able to use=20 > rowSum, colSum and similar functions.=A0 These (and other things) do not=20 > seem to be enabled on the Mac OS9 version.=A0rowsum and rowSums (<- look at the final "s") are both available on any=20 version of R for MacOS 8.6 to X stefano> Are they enabled on the OS10 version?=A0 If not, how can I enable them?=A0=20 > And how do I download the OS10 version?=A0 My computer does not recognize=20 > the .gz files on the website http://cran.r- > project.org/bin/macosx/atlas/. > =A0=A0Many thanks, > =A0=A0=A0Chris Wills > -- > Christopher Wills > Professor of Biology > Division of Biological Sciences > University of California, San Diego > La Jolla CA 92093 > > Phone 858-534-4113 > Fax 858-534-7108 > e-mail cwills@ucsd.edu > > -- > > Christopher Wills > Professor of Biology > Division of Biological Sciences > University of California, San Diego > La Jolla CA 92093 > > Phone 858-534-4113 > Fax 858-534-7108 > e-mail cwills@ucsd.edu--Apple-Mail-2-425464314 Content-Transfer-Encoding: quoted-printable Content-Type: text/enriched; charset=ISO-8859-1 On Gioved=EC, settembre 19, 2002, at 12:13 , Dr. Chris Wills wrote: <excerpt>To: r-help-request@lists.R-project.org From: "Dr. Chris Wills" <<cwills@ucsd.edu> Subject: Questions about sorting and functions Cc: Bcc: <color><param>0000,0000,0000</param>X-</color>Attachments: Dear R-Gang - =A0=A0Two questions for you: =A01)=A0 I cannot figure out how to sort one column in an array, and drag the rest of the values that occupy the other columns along with the sorted values in the first column.=A0 What I would like to end up with is an array that is the same size and dimensions as the first array.=A0 When I try various configurations of sort, I keep getting vectors instead of the array I started with, and I have not found a way to make sort "bind" other values to the sorted values. </excerpt> <excerpt>=A0=A0=A02)=A0 I used a PC version of R over the summer, and was able to use rowSum, colSum and similar functions.=A0 These (and other things) do not seem to be enabled on the Mac OS9 version.=A0=20 </excerpt> rowsum and rowSums (<<- look at the final "s") are both available on any version of R for MacOS 8.6 to X stefano <excerpt>Are they enabled on the OS10 version?=A0 If not, how can I enable them?=A0 And how do I download the OS10 version?=A0 My computer does not recognize the .gz files on the website http://cran.r-project.org/bin/macosx/atlas/. =A0=A0Many thanks, =A0=A0=A0Chris Wills <fixed><bigger>--</bigger></fixed> Christopher Wills Professor of Biology Division of Biological Sciences University of California, San Diego La Jolla CA 92093 Phone 858-534-4113 Fax 858-534-7108 e-mail cwills@ucsd.edu <fixed><bigger>--=20 </bigger></fixed> Christopher Wills Professor of Biology Division of Biological Sciences University of California, San Diego La Jolla CA 92093 Phone 858-534-4113 Fax 858-534-7108 e-mail cwills@ucsd.edu </excerpt> --Apple-Mail-2-425464314-- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel 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-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._