Print nicely formatted version of an diffdf object
Usage
# S3 method for class 'diffdf'
print(x, row_limit = 10, as_string = FALSE, ...)
Examples
x <- subset(iris, -Species)
#> Warning: ‘-’ not meaningful for factors
x[1, 2] <- 5
COMPARE <- diffdf(iris, x)
#> Warning:
#> There are rows in BASE that are not in COMPARE !!
#> Not all Values Compared Equal
print(COMPARE)
#> Differences found between the objects!
#>
#> Summary of BASE and COMPARE
#> ====================================
#> PROPERTY BASE COMP
#> ------------------------------------
#> Name iris x
#> Class data.frame data.frame
#> Rows(#) 150 1
#> Columns(#) 5 5
#> ------------------------------------
#>
#>
#> There are rows in BASE that are not in COMPARE !!
#> First 10 of 149 rows are shown in table below
#> ===============
#> ..ROWNUMBER..
#> ---------------
#> 2
#> 3
#> 4
#> 5
#> 6
#> 7
#> 8
#> 9
#> 10
#> 11
#> ---------------
#>
#>
#> Not all Values Compared Equal
#> =================================
#> Variable No of Differences
#> ---------------------------------
#> Sepal.Length 1
#> Sepal.Width 1
#> Petal.Length 1
#> Petal.Width 1
#> Species 1
#> ---------------------------------
#>
#>
#> ============================================
#> VARIABLE ..ROWNUMBER.. BASE COMPARE
#> --------------------------------------------
#> Sepal.Length 1 5.1 NA
#> --------------------------------------------
#>
#>
#> ===========================================
#> VARIABLE ..ROWNUMBER.. BASE COMPARE
#> -------------------------------------------
#> Sepal.Width 1 3.5 5
#> -------------------------------------------
#>
#>
#> ============================================
#> VARIABLE ..ROWNUMBER.. BASE COMPARE
#> --------------------------------------------
#> Petal.Length 1 1.4 NA
#> --------------------------------------------
#>
#>
#> ===========================================
#> VARIABLE ..ROWNUMBER.. BASE COMPARE
#> -------------------------------------------
#> Petal.Width 1 0.2 NA
#> -------------------------------------------
#>
#>
#> ==========================================
#> VARIABLE ..ROWNUMBER.. BASE COMPARE
#> ------------------------------------------
#> Species 1 setosa <NA>
#> ------------------------------------------
#>
#>
print(COMPARE, row_limit = 5)
#> Differences found between the objects!
#>
#> Summary of BASE and COMPARE
#> ====================================
#> PROPERTY BASE COMP
#> ------------------------------------
#> Name iris x
#> Class data.frame data.frame
#> Rows(#) 150 1
#> Columns(#) 5 5
#> ------------------------------------
#>
#>
#> There are rows in BASE that are not in COMPARE !!
#> First 5 of 149 rows are shown in table below
#> ===============
#> ..ROWNUMBER..
#> ---------------
#> 2
#> 3
#> 4
#> 5
#> 6
#> ---------------
#>
#>
#> Not all Values Compared Equal
#> =================================
#> Variable No of Differences
#> ---------------------------------
#> Sepal.Length 1
#> Sepal.Width 1
#> Petal.Length 1
#> Petal.Width 1
#> Species 1
#> ---------------------------------
#>
#>
#> ============================================
#> VARIABLE ..ROWNUMBER.. BASE COMPARE
#> --------------------------------------------
#> Sepal.Length 1 5.1 NA
#> --------------------------------------------
#>
#>
#> ===========================================
#> VARIABLE ..ROWNUMBER.. BASE COMPARE
#> -------------------------------------------
#> Sepal.Width 1 3.5 5
#> -------------------------------------------
#>
#>
#> ============================================
#> VARIABLE ..ROWNUMBER.. BASE COMPARE
#> --------------------------------------------
#> Petal.Length 1 1.4 NA
#> --------------------------------------------
#>
#>
#> ===========================================
#> VARIABLE ..ROWNUMBER.. BASE COMPARE
#> -------------------------------------------
#> Petal.Width 1 0.2 NA
#> -------------------------------------------
#>
#>
#> ==========================================
#> VARIABLE ..ROWNUMBER.. BASE COMPARE
#> ------------------------------------------
#> Species 1 setosa <NA>
#> ------------------------------------------
#>
#>