Skip to content

rows extraction

4 messages · Nico Met, David L Carlson, Jeff Newmiller +1 more

#
"CTV19", "CTV20", "PKB11", "PKB11"))
Name. Score performance Environment.
10  CTV19     2  0.52740797   0.53639048
11  CTV20     3  0.05298615   0.04856818
12  PKB11     4  0.90037809   0.79427806
13  PKB11     5  0.41806588   0.40839968
14 PKB123     5  0.16914593   0.17565094
15  PKB22     4  0.13450181   0.14681555
16  PKB23     3  0.05703352   0.04438428
17  PKB32     2  0.07606024   0.07606045

----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352
#
You need to use the match function if you want to specify result sort order or duplication.

test[ match(c( "PKB123", "PKB22", "PKB23","PKB32", "CTV19", "CTV20", "PKB11", "PKB11" ),test$Name.), ]

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
David L Carlson <dcarlson at tamu.edu> wrote:

            
#
On Sep 26, 2012, at 8:28 AM, David L Carlson wrote:

            
I read the request as calling for a subsequent ordering:

subtest[match(subtest$Name., c("PKB123", "PKB22", "PKB23", "PKB32",
                                "CTV19", "CTV20", "PKB11", "PKB11") ), ]
      Name. Score performance Environment.
14   PKB123     5  0.16914593   0.17565094
15    PKB22     4  0.13450181   0.14681555
16    PKB23     3  0.05703352   0.04438428
16.1  PKB23     3  0.05703352   0.04438428
10    CTV19     2  0.52740797   0.53639048
11    CTV20     3  0.05298615   0.04856818
12    PKB11     4  0.90037809   0.79427806
13    PKB11     5  0.41806588   0.40839968
David Winsemius, MD
Alameda, CA, USA