Code Monkey home page Code Monkey logo

faker's People

Contributors

lhz1029 avatar sinarueeger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

faker's Issues

Non-normal distribution

My original dataset has columns which are not normally distributed but, when I simulate them, the fake data is normally distributed. Is there a way to simulate the data but keep the original distribution? Cheers!

Bug when factor variables

The following command returns 150 rows (like the original iris dataset) and not 10 as indicated.

nrow(fakeR::simulate_dataset(iris, n = 10))
However, when the Species, the categorical variable, is removed, it works fine.

nrow(fakeR::simulate_dataset(iris[,-5], n = 10))
I believe, the problem occurs in this bit of the simulate_dataset function:

 if (unorder > 0) {
      print("Some unordered factors...")
      fake_categorical <- .simulate_categorical(dataset, location, row)
    }

Problem with stealth.level=1 and Ordered factors

When you try to simulate a dataset with an ordered factor and stealth.level=1 it throws an error that there is a non-numeric argument to binary operator

> df<-mtcars
> df$carb<-as.factor(df$carb)
> df$gear<-factor(df$gear,ordered=TRUE)
> sim_df<-simulate_dataset(dataset = df,stealth.level = 1)
[1] "Some unordered factors..."
[1] "Some numeric variables and ordered factors..."
Error in n * ncol(sigma) : non-numeric argument to binary operator

Instead of simulating the dataset and "taking into account the covariances between the numeric and ordered factors"

fakeR no longer on CRAN due to failed checks

I saw that fakeR isn't on CRAN any longer, but I feel like it deserves to be.

Would you be interested in getting it past the CRAN checks? If not, I'd be happy to help.

Thanks

Steve

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.