Skip to content

only 10 rows of differences shown when file= argument is used #135

@dwoollacott

Description

@dwoollacott
df1 <- data.frame(
    rn = 1:100,
    lt = letters[1:20]
)

df2 <- data.frame(
    rn = 1:100,
    lt = c(letters[1:5], rev(letters[6:20]))
)

diff1 <- diffdf(
    df1,
    df2,
    file = "test.out"
)

produces in "test.out"

Differences found between the objects!

Summary of BASE and COMPARE
  ====================================
    PROPERTY      BASE        COMP    
  ------------------------------------
      Name        df1         df2     
     Class     data.frame  data.frame 
    Rows(#)       100         100     
   Columns(#)      2           2      
  ------------------------------------


Not all Values Compared Equal
  =============================
   Variable  No of Differences 
  -----------------------------
      lt            70         
  -----------------------------


First 10 of 70 rows are shown in table below
  ========================================
   VARIABLE  ..ROWNUMBER..  BASE  COMPARE 
  ----------------------------------------
      lt           6         f       t    
      lt           7         g       s    
      lt           8         h       r    
      lt           9         i       q    
      lt          10         j       p    
      lt          11         k       o    
      lt          12         l       n    
      lt          14         n       l    
      lt          15         o       k    
      lt          16         p       j    
  ----------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions