# 5 Afrosoricida Microgale longicaudata 8.08 # 4 Afrosoricida Microgale fotsifotsy 7.7 with 5,406 more rows arrange(mammals, order, adult_body_mass_g) # A tibble: 5,416 x 3 # 10 Cetacea Balaenoptera edeni 20000000. # 9 Cetacea Balaenoptera borealis 22106252. # 8 Cetacea Eubalaena glacialis 23000000. # 7 Cetacea Eubalaena australis 23000000. # 6 Cetacea Eschrichtius robustus 27324024. # 5 Cetacea Megaptera novaeangliae 30000000. # 1 Cetacea Balaenoptera musculus 154321304. with 5,406 more rows arrange(mammals, desc(adult_body_mass_g)) # A tibble: 5,416 x 3 # 6 Soricomorpha Crocidura lusitania 2.48 # 5 Soricomorpha Suncus madagascariensis 2.47 # 1 Chiroptera Craseonycteris thonglongyai 1.96 I’m selecting the first three columns only to make the output easier to read: arrange(mammals, adult_body_mass_g) # A tibble: 5,416 x 3 with 1 more variable: litter_size Īrrange() lets you order the rows by one or more columns in ascending or descending order. with 1 more variable: litter_size filter(mammals, order = "Carnivora"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |