2 bind_rows( ) 함수: 테이블 행 붙이기

    이번에는 테이블 행을 붙여 보겠습니다. bind_rows() 함수를 사용합니다.

     

    그림 7-18 | bind_rows() 함수 원리

    tmp_order_info_r <- order_info_r
    bind_rows(order_info_r, tmp_order_info_r)
    
    # A tibble: 782 x 5
        order_no            item_id  reserv_no  quantity    sales
        <chr>               <chr>    <chr>         <dbl>    <dbl>
     1  191228137840110010  M0003    2019122805        1    17000
     2  191228137837810010  M0001    2019122806       10   240000
     3  191228547385810010  M0003    2019122807        2    34000
     4  191228567831310010  M0008    2019122808        1    10000
     5  191228567430310010  M0005    2019122809        4   140000
     6  191228137860010010  M0005    2019122810        2    70000
     7  191228137860010010  M0009    2019122810        2    16000
     8  191229107864610010  M0005    2019122901        4   140000
     9  191229107864610010  M0009    2019122901        4    32000
    10  191229137425710010  M0003    2019122902        2    34000
    # ... with 772 more rows

    * 행 붙임으로 행이 782개

    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.