Labels to column names

labels_to_column(.data)

Arguments

.data

Data frame or tibble.

Value

Data frame or tibble

Examples

library(dplyr) colon_s %>% select(sex.factor) %>% labels_to_column()
#> Sex #> 1 Male #> 2 Male #> 3 Female #> 4 Female #> 5 Male #> 6 Female #> 7 Male #> 8 Male #> 9 Male #> 10 Female #> 11 Female #> 12 Male #> 13 Male #> 14 Male #> 15 Male #> 16 Male #> 17 Male #> 18 Male #> 19 Female #> 20 Female #> 21 Male #> 22 Male #> 23 Female #> 24 Female #> 25 Female #> 26 Male #> 27 Female #> 28 Female #> 29 Female #> 30 Male #> 31 Female #> 32 Female #> 33 Female #> 34 Male #> 35 Female #> 36 Female #> 37 Male #> 38 Female #> 39 Male #> 40 Male #> 41 Male #> 42 Female #> 43 Male #> 44 Female #> 45 Male #> 46 Female #> 47 Female #> 48 Female #> 49 Male #> 50 Male #> 51 Female #> 52 Female #> 53 Male #> 54 Female #> 55 Male #> 56 Male #> 57 Male #> 58 Female #> 59 Female #> 60 Female #> 61 Male #> 62 Male #> 63 Female #> 64 Female #> 65 Female #> 66 Female #> 67 Male #> 68 Male #> 69 Female #> 70 Female #> 71 Female #> 72 Female #> 73 Male #> 74 Female #> 75 Female #> 76 Female #> 77 Female #> 78 Male #> 79 Male #> 80 Female #> 81 Male #> 82 Female #> 83 Male #> 84 Male #> 85 Male #> 86 Female #> 87 Female #> 88 Male #> 89 Female #> 90 Male #> 91 Male #> 92 Male #> 93 Male #> 94 Female #> 95 Male #> 96 Male #> 97 Female #> 98 Male #> 99 Male #> 100 Female #> 101 Male #> 102 Male #> 103 Male #> 104 Female #> 105 Female #> 106 Male #> 107 Female #> 108 Female #> 109 Female #> 110 Female #> 111 Male #> 112 Male #> 113 Female #> 114 Male #> 115 Male #> 116 Male #> 117 Female #> 118 Female #> 119 Female #> 120 Female #> 121 Female #> 122 Female #> 123 Female #> 124 Male #> 125 Male #> 126 Male #> 127 Female #> 128 Male #> 129 Male #> 130 Male #> 131 Female #> 132 Female #> 133 Female #> 134 Female #> 135 Male #> 136 Male #> 137 Male #> 138 Female #> 139 Male #> 140 Female #> 141 Male #> 142 Male #> 143 Female #> 144 Female #> 145 Female #> 146 Female #> 147 Male #> 148 Male #> 149 Female #> 150 Female #> 151 Male #> 152 Female #> 153 Male #> 154 Male #> 155 Male #> 156 Male #> 157 Female #> 158 Female #> 159 Male #> 160 Female #> 161 Male #> 162 Female #> 163 Male #> 164 Female #> 165 Female #> 166 Male #> 167 Female #> 168 Male #> 169 Male #> 170 Female #> 171 Male #> 172 Male #> 173 Female #> 174 Female #> 175 Male #> 176 Female #> 177 Male #> 178 Male #> 179 Female #> 180 Male #> 181 Female #> 182 Female #> 183 Female #> 184 Female #> 185 Male #> 186 Female #> 187 Female #> 188 Male #> 189 Male #> 190 Male #> 191 Female #> 192 Male #> 193 Female #> 194 Female #> 195 Male #> 196 Female #> 197 Female #> 198 Male #> 199 Female #> 200 Female #> 201 Male #> 202 Male #> 203 Male #> 204 Female #> 205 Female #> 206 Female #> 207 Female #> 208 Male #> 209 Female #> 210 Male #> 211 Male #> 212 Male #> 213 Male #> 214 Male #> 215 Female #> 216 Female #> 217 Female #> 218 Male #> 219 Male #> 220 Male #> 221 Male #> 222 Female #> 223 Female #> 224 Male #> 225 Male #> 226 Female #> 227 Female #> 228 Male #> 229 Male #> 230 Female #> 231 Female #> 232 Male #> 233 Male #> 234 Male #> 235 Male #> 236 Female #> 237 Female #> 238 Female #> 239 Male #> 240 Female #> 241 Male #> 242 Male #> 243 Female #> 244 Female #> 245 Female #> 246 Male #> 247 Female #> 248 Female #> 249 Female #> 250 Male #> 251 Male #> 252 Female #> 253 Male #> 254 Female #> 255 Male #> 256 Female #> 257 Female #> 258 Male #> 259 Female #> 260 Female #> 261 Female #> 262 Female #> 263 Male #> 264 Male #> 265 Male #> 266 Male #> 267 Male #> 268 Male #> 269 Female #> 270 Female #> 271 Female #> 272 Male #> 273 Male #> 274 Female #> 275 Male #> 276 Female #> 277 Male #> 278 Female #> 279 Female #> 280 Male #> 281 Male #> 282 Female #> 283 Female #> 284 Male #> 285 Female #> 286 Female #> 287 Male #> 288 Male #> 289 Male #> 290 Female #> 291 Male #> 292 Female #> 293 Male #> 294 Male #> 295 Female #> 296 Female #> 297 Male #> 298 Male #> 299 Male #> 300 Female #> 301 Male #> 302 Female #> 303 Female #> 304 Male #> 305 Female #> 306 Male #> 307 Female #> 308 Male #> 309 Female #> 310 Female #> 311 Male #> 312 Male #> 313 Female #> 314 Female #> 315 Male #> 316 Female #> 317 Female #> 318 Male #> 319 Male #> 320 Female #> 321 Female #> 322 Female #> 323 Male #> 324 Female #> 325 Female #> 326 Female #> 327 Female #> 328 Female #> 329 Male #> 330 Male #> 331 Female #> 332 Male #> 333 Male #> 334 Male #> 335 Male #> 336 Female #> 337 Female #> 338 Male #> 339 Female #> 340 Female #> 341 Female #> 342 Male #> 343 Male #> 344 Male #> 345 Male #> 346 Male #> 347 Male #> 348 Male #> 349 Male #> 350 Female #> 351 Female #> 352 Male #> 353 Female #> 354 Male #> 355 Female #> 356 Male #> 357 Male #> 358 Female #> 359 Female #> 360 Female #> 361 Female #> 362 Male #> 363 Female #> 364 Male #> 365 Female #> 366 Female #> 367 Male #> 368 Female #> 369 Female #> 370 Female #> 371 Male #> 372 Male #> 373 Female #> 374 Male #> 375 Male #> 376 Female #> 377 Female #> 378 Female #> 379 Male #> 380 Male #> 381 Male #> 382 Male #> 383 Male #> 384 Female #> 385 Female #> 386 Female #> 387 Male #> 388 Female #> 389 Male #> 390 Female #> 391 Female #> 392 Female #> 393 Female #> 394 Male #> 395 Male #> 396 Female #> 397 Male #> 398 Male #> 399 Male #> 400 Female #> 401 Male #> 402 Male #> 403 Male #> 404 Male #> 405 Male #> 406 Female #> 407 Male #> 408 Female #> 409 Male #> 410 Male #> 411 Male #> 412 Male #> 413 Female #> 414 Male #> 415 Female #> 416 Male #> 417 Male #> 418 Female #> 419 Male #> 420 Female #> 421 Female #> 422 Female #> 423 Male #> 424 Male #> 425 Male #> 426 Male #> 427 Female #> 428 Male #> 429 Male #> 430 Female #> 431 Male #> 432 Female #> 433 Female #> 434 Female #> 435 Male #> 436 Male #> 437 Male #> 438 Male #> 439 Male #> 440 Male #> 441 Female #> 442 Female #> 443 Male #> 444 Male #> 445 Male #> 446 Male #> 447 Female #> 448 Male #> 449 Female #> 450 Male #> 451 Female #> 452 Male #> 453 Female #> 454 Female #> 455 Male #> 456 Female #> 457 Male #> 458 Female #> 459 Female #> 460 Female #> 461 Male #> 462 Male #> 463 Male #> 464 Male #> 465 Female #> 466 Female #> 467 Male #> 468 Male #> 469 Female #> 470 Male #> 471 Male #> 472 Male #> 473 Female #> 474 Male #> 475 Male #> 476 Female #> 477 Male #> 478 Female #> 479 Female #> 480 Female #> 481 Male #> 482 Female #> 483 Male #> 484 Male #> 485 Female #> 486 Male #> 487 Female #> 488 Female #> 489 Female #> 490 Female #> 491 Female #> 492 Male #> 493 Female #> 494 Female #> 495 Female #> 496 Female #> 497 Female #> 498 Male #> 499 Male #> 500 Male #> 501 Male #> 502 Female #> 503 Male #> 504 Female #> 505 Female #> 506 Male #> 507 Male #> 508 Male #> 509 Male #> 510 Male #> 511 Female #> 512 Female #> 513 Male #> 514 Female #> 515 Male #> 516 Female #> 517 Female #> 518 Female #> 519 Male #> 520 Female #> 521 Male #> 522 Female #> 523 Female #> 524 Female #> 525 Female #> 526 Female #> 527 Male #> 528 Male #> 529 Male #> 530 Male #> 531 Male #> 532 Female #> 533 Male #> 534 Male #> 535 Male #> 536 Female #> 537 Female #> 538 Female #> 539 Male #> 540 Female #> 541 Male #> 542 Male #> 543 Male #> 544 Female #> 545 Male #> 546 Male #> 547 Male #> 548 Male #> 549 Male #> 550 Female #> 551 Female #> 552 Female #> 553 Male #> 554 Female #> 555 Male #> 556 Male #> 557 Female #> 558 Male #> 559 Female #> 560 Male #> 561 Female #> 562 Male #> 563 Male #> 564 Male #> 565 Female #> 566 Male #> 567 Female #> 568 Female #> 569 Male #> 570 Male #> 571 Female #> 572 Male #> 573 Male #> 574 Male #> 575 Male #> 576 Female #> 577 Male #> 578 Female #> 579 Male #> 580 Female #> 581 Female #> 582 Female #> 583 Female #> 584 Male #> 585 Male #> 586 Female #> 587 Female #> 588 Female #> 589 Male #> 590 Male #> 591 Male #> 592 Female #> 593 Female #> 594 Male #> 595 Female #> 596 Female #> 597 Male #> 598 Male #> 599 Male #> 600 Male #> 601 Female #> 602 Female #> 603 Female #> 604 Female #> 605 Male #> 606 Female #> 607 Female #> 608 Female #> 609 Male #> 610 Male #> 611 Female #> 612 Male #> 613 Male #> 614 Male #> 615 Male #> 616 Female #> 617 Female #> 618 Female #> 619 Male #> 620 Female #> 621 Male #> 622 Female #> 623 Male #> 624 Male #> 625 Male #> 626 Male #> 627 Male #> 628 Male #> 629 Female #> 630 Male #> 631 Male #> 632 Female #> 633 Male #> 634 Female #> 635 Male #> 636 Female #> 637 Female #> 638 Female #> 639 Male #> 640 Male #> 641 Female #> 642 Male #> 643 Male #> 644 Male #> 645 Male #> 646 Male #> 647 Male #> 648 Male #> 649 Female #> 650 Female #> 651 Male #> 652 Female #> 653 Male #> 654 Female #> 655 Female #> 656 Male #> 657 Female #> 658 Female #> 659 Male #> 660 Male #> 661 Male #> 662 Male #> 663 Male #> 664 Male #> 665 Male #> 666 Male #> 667 Female #> 668 Male #> 669 Female #> 670 Female #> 671 Male #> 672 Male #> 673 Male #> 674 Male #> 675 Male #> 676 Female #> 677 Male #> 678 Female #> 679 Male #> 680 Female #> 681 Male #> 682 Male #> 683 Male #> 684 Female #> 685 Female #> 686 Male #> 687 Male #> 688 Male #> 689 Male #> 690 Female #> 691 Female #> 692 Female #> 693 Male #> 694 Female #> 695 Female #> 696 Male #> 697 Male #> 698 Male #> 699 Male #> 700 Female #> 701 Female #> 702 Male #> 703 Female #> 704 Male #> 705 Male #> 706 Male #> 707 Male #> 708 Female #> 709 Male #> 710 Male #> 711 Male #> 712 Female #> 713 Male #> 714 Female #> 715 Male #> 716 Male #> 717 Female #> 718 Male #> 719 Female #> 720 Male #> 721 Male #> 722 Male #> 723 Male #> 724 Male #> 725 Female #> 726 Female #> 727 Male #> 728 Male #> 729 Female #> 730 Male #> 731 Female #> 732 Male #> 733 Female #> 734 Male #> 735 Male #> 736 Male #> 737 Female #> 738 Male #> 739 Male #> 740 Male #> 741 Female #> 742 Female #> 743 Male #> 744 Male #> 745 Female #> 746 Male #> 747 Male #> 748 Male #> 749 Female #> 750 Male #> 751 Female #> 752 Male #> 753 Male #> 754 Male #> 755 Male #> 756 Female #> 757 Male #> 758 Female #> 759 Male #> 760 Female #> 761 Female #> 762 Male #> 763 Female #> 764 Male #> 765 Female #> 766 Female #> 767 Female #> 768 Male #> 769 Female #> 770 Male #> 771 Female #> 772 Female #> 773 Female #> 774 Male #> 775 Male #> 776 Female #> 777 Female #> 778 Female #> 779 Male #> 780 Female #> 781 Male #> 782 Female #> 783 Female #> 784 Male #> 785 Male #> 786 Female #> 787 Female #> 788 Female #> 789 Female #> 790 Male #> 791 Female #> 792 Female #> 793 Male #> 794 Male #> 795 Male #> 796 Male #> 797 Male #> 798 Female #> 799 Female #> 800 Female #> 801 Female #> 802 Male #> 803 Female #> 804 Male #> 805 Male #> 806 Female #> 807 Male #> 808 Male #> 809 Male #> 810 Male #> 811 Male #> 812 Male #> 813 Female #> 814 Female #> 815 Female #> 816 Male #> 817 Female #> 818 Male #> 819 Male #> 820 Male #> 821 Male #> 822 Male #> 823 Female #> 824 Female #> 825 Female #> 826 Female #> 827 Male #> 828 Male #> 829 Female #> 830 Female #> 831 Male #> 832 Female #> 833 Male #> 834 Female #> 835 Female #> 836 Female #> 837 Female #> 838 Female #> 839 Female #> 840 Female #> 841 Female #> 842 Female #> 843 Male #> 844 Male #> 845 Female #> 846 Male #> 847 Male #> 848 Female #> 849 Female #> 850 Male #> 851 Male #> 852 Female #> 853 Male #> 854 Female #> 855 Female #> 856 Male #> 857 Female #> 858 Female #> 859 Female #> 860 Female #> 861 Female #> 862 Female #> 863 Female #> 864 Male #> 865 Female #> 866 Male #> 867 Male #> 868 Male #> 869 Female #> 870 Male #> 871 Female #> 872 Female #> 873 Male #> 874 Female #> 875 Male #> 876 Female #> 877 Male #> 878 Male #> 879 Female #> 880 Female #> 881 Female #> 882 Male #> 883 Male #> 884 Male #> 885 Female #> 886 Female #> 887 Male #> 888 Male #> 889 Male #> 890 Male #> 891 Female #> 892 Male #> 893 Female #> 894 Male #> 895 Female #> 896 Male #> 897 Male #> 898 Male #> 899 Female #> 900 Female #> 901 Male #> 902 Male #> 903 Female #> 904 Male #> 905 Female #> 906 Male #> 907 Female #> 908 Female #> 909 Male #> 910 Female #> 911 Male #> 912 Male #> 913 Male #> 914 Female #> 915 Female #> 916 Female #> 917 Female #> 918 Male #> 919 Female #> 920 Female #> 921 Male #> 922 Female #> 923 Male #> 924 Male #> 925 Male #> 926 Female #> 927 Male #> 928 Female #> 929 Female