One # A tibble: 8 × 14 #> name height mass hair_…¹ skin_…² eye_c…³ birth…⁴ sex gender homew…⁵ #> #> 1 Luke … 172 77 blond fair blue 19 male mascu… Tatooi… #> 2 C-3PO 167 75 NA gold yellow 112 none mascu… Tatooi… #> 3 R2-D2 96 32 NA white,… red 33 none mascu… Naboo #> 4 Darth… 202 136 none white yellow 41.9 male mascu… Tatooi… #> 5 Biggs… 183 84 black light brown 24 male mascu… Tatooi… #> 6 Obi-W… 182 77 auburn… fair blue-g… 57 male mascu… Stewjon #> 7 Anaki… 188 84 blond fair blue 41.9 male mascu… Tatooi… #> 8 Wilhu… 180 NA auburn… fair blue 64 male mascu… Eriadu #> # … with 4 more variables: species, films, vehicles, #> # starships, and abbreviated variable names ¹hair_color, #> # ²skin_color, ³eye_color, ⁴birth_year, ⁵homeworld # The contents of lists are spliced automatically: bind_rows ( list ( one, two ) ) #> # A tibble: 8 × 14 #> name height mass hair_…¹ skin_…² eye_c…³ birth…⁴ sex gender homew…⁵ #> #> 1 Luke … 172 77 blond fair blue 19 male mascu… Tatooi… #> 2 C-3PO 167 75 NA gold yellow 112 none mascu… Tatooi… #> 3 R2-D2 96 32 NA white,… red 33 none mascu… Naboo #> 4 Darth… 202 136 none white yellow 41.9 male mascu… Tatooi… #> 5 Biggs… 183 84 black light brown 24 male mascu… Tatooi… #> 6 Obi-W… 182 77 auburn… fair blue-g… 57 male mascu… Stewjon #> 7 Anaki… 188 84 blond fair blue 41.9 male mascu… Tatooi… #> 8 Wilhu… 180 NA auburn… fair blue 64 male mascu… Eriadu #> # … with 4 more variables: species, films, vehicles, #> # starships, and abbreviated variable names ¹hair_color, #> # ²skin_color, ³eye_color, ⁴birth_year, ⁵homeworld bind_rows ( split ( starwars, starwars $ homeworld ) ) #> # A tibble: 77 × 14 #> name height mass hair_…¹ skin_…² eye_c…³ birth…⁴ sex gender homew…⁵ #> #> 1 Leia… 150 49 brown light brown 19 fema… femin… Aldera… #> 2 Bail… 191 NA black tan brown 67 male mascu… Aldera… #> 3 Raym… 188 79 brown light brown NA male mascu… Aldera… #> 4 Ratt… 79 15 none grey, … unknown NA male mascu… Aleen … #> 5 Lobot 175 79 none light blue 37 male mascu… Bespin #> 6 Jek … 180 110 brown fair blue NA male mascu… Bestin… #> 7 Nute… 191 90 none mottle… red NA male mascu… Cato N… #> 8 Ki-A… 198 82 white pale yellow 92 male mascu… Cerea #> 9 Mas … 196 NA none blue blue NA male mascu… Champa… #> 10 Mon … 150 NA auburn fair blue 48 fema… femin… Chandr… #> # … with 67 more rows, 4 more variables: species, films, #> # vehicles, starships, and abbreviated variable names #> # ¹hair_color, ²skin_color, ³eye_color, ⁴birth_year, ⁵homeworld bind_rows ( list ( one, two ), list ( two, one ) ) #> # A tibble: 16 × 14 #> name height mass hair_…¹ skin_…² eye_c…³ birth…⁴ sex gender homew…⁵ #> #> 1 Luke… 172 77 blond fair blue 19 male mascu… Tatooi… #> 2 C-3PO 167 75 NA gold yellow 112 none mascu… Tatooi… #> 3 R2-D2 96 32 NA white,… red 33 none mascu… Naboo #> 4 Dart… 202 136 none white yellow 41.9 male mascu… Tatooi… #> 5 Bigg… 183 84 black light brown 24 male mascu… Tatooi… #> 6 Obi-… 182 77 auburn… fair blue-g… 57 male mascu… Stewjon #> 7 Anak… 188 84 blond fair blue 41.9 male mascu… Tatooi… #> 8 Wilh… 180 NA auburn… fair blue 64 male mascu… Eriadu #> 9 Bigg… 183 84 black light brown 24 male mascu… Tatooi… #> 10 Obi-… 182 77 auburn… fair blue-g… 57 male mascu… Stewjon #> 11 Anak… 188 84 blond fair blue 41.9 male mascu… Tatooi… #> 12 Wilh… 180 NA auburn… fair blue 64 male mascu… Eriadu #> 13 Luke… 172 77 blond fair blue 19 male mascu… Tatooi… #> 14 C-3PO 167 75 NA gold yellow 112 none mascu… Tatooi… #> 15 R2-D2 96 32 NA white,… red 33 none mascu… Naboo #> 16 Dart… 202 136 none white yellow 41.9 male mascu… Tatooi… #> # … with 4 more variables: species, films, vehicles, #> # starships, and abbreviated variable names ¹hair_color, #> # ²skin_color, ³eye_color, ⁴birth_year, ⁵homeworld # In addition to data frames, you can supply vectors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |