Code Monkey home page Code Monkey logo

Comments (7)

robne1982 avatar robne1982 commented on June 11, 2024 1

Actually, it looks like this is a special case of #45 - as part of working on this, I'll update both issues, and even if I can't close both of them, I'll consolidate them.

from datacomparer.

robne1982 avatar robne1982 commented on June 11, 2024 1

Fix is await PR review. Closing this as a duplicate of #45, only because I wrote all the comments in #45.

@1DanielG The fix is available in the saveReport-fix branch right now. We'll merge to master and release a new version in the next few weeks.

from datacomparer.

robne1982 avatar robne1982 commented on June 11, 2024

Thanks - it looks like the option to pass this parameter in to saveReport is missing.

It should be trivial to fix - I'll post an update once I've made the changes.

from datacomparer.

SaravananSrithar avatar SaravananSrithar commented on June 11, 2024

@rnobleeddy Hi, Do we have the solution for increasing the sample size to from 5 to all issues ? Please share the solution. I am looking for it

from datacomparer.

robne1982 avatar robne1982 commented on June 11, 2024

The following code shows how to get > 5 mismatches to display, and has a workaround to show all.

library(dataCompareR)

iris2 <- iris
iris2$Petal.Length <- iris2$Petal.Length + 1
iris2$Sepal.Length[1:10] <- iris2$Sepal.Length[1:10] -1

comp <- rCompare(iris, iris2)

# To choose a specific number of mismatches, set mismatchCount 
summary(comp, mismatchCount = 100)

# There's no built in option for all yet, but this should achieve the same result, by finding the max number of mismatches in the comparison object
summary(comp, mismatchCount = max(unlist(lapply(comp$mismatches, nrow))))

# This argument can be passed to saveReport too
saveReport(comp,   reportName = "test", reportLocation = "~", mismatchCount = 100)

More generally, you can access all the mismatches in the mismatches item in the object produced by rCompare. The mismatches are stored as a list of data.frames.

from datacomparer.

SaravananSrithar avatar SaravananSrithar commented on June 11, 2024

from datacomparer.

SaravananSrithar avatar SaravananSrithar commented on June 11, 2024

Hi Rob, I went ahead and updated as below to print all the mismatches in the dataset. I just updated the printAll only in my savereport function call as below. Will this be sufficinet?

saveReport(comp_dataset, reportName = paste('comp_dataset_', test_case_name,'_',vtimestamp, sep=""),reportLocation = comp_report_location,HTMLReport= TRUE,
showInViewer = TRUE, stylesheet = NA, printAll = TRUE)

But, I am getting the error message "Error in saveReport(comp_dataset, reportName = paste("comp_dataset_", : unused argument (printAll = TRUE)"

from datacomparer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.