Giter VIP home page Giter VIP logo

petchey-plebani-pennekamp-2016's People

Contributors

antoine-lizee avatar daniel-mietchen avatar opetchey avatar pdebuyl avatar rougier avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

petchey-plebani-pennekamp-2016's Issues

Code changes needed

Here are some other changes needed to run the code:

  1. Lines 412 and 837
    The detrended <- rbind(ww1, ww2) command produced a matrix, which can't be used by the group_by command in line 423. Instead of rbind, I suggest to use dplyr::bind_rows.
  2. Line 951
    The fit_GAMs function called line 948 creates an object named X, not X1. Therefore, on line 951 we have to reflect this by changing Get_LE_from_fit2(gams, X1, epsval=0.01) to Get_LE_from_fit2(gams, X, epsval=0.01)
  3. Line 992
    The command cors.long <- gather(cors, key=dist, convert=F) doesn't give the expected result, as the dist column is considered as one of the variables to be "gathered". As a result, the data frame we obtain has 2 columns, the first one labeled "dist" but containing the variables, and the second one containing the "values" but with the first 12 corresponding to the distance. The correct command should be gather(cors, 2:13, key=Variable, value=Correlation, convert=F)

Problem merging the spp.abund and nuts datasets

Trying to run the code from report.Rmd, I ran into an issue at line 193, rbind fails merging the two datasets because they don't have the same number of columns:

Error in rbind(deparse.level, ...) : numbers of columns of arguments do not match

Problems trying to run the code

I tried to run your code following the instructions, without much success so far. Warning: I have next to no R experience, so I am really just stupidly following your instructions.

The first time I tried to run report.Rmd in RStudio, I got an error message telling me that package devtools is not installed. I installed it as I had installed the listed dependencies before. Could it be that this package is missing from your dependency list?

On the next run, I got an error reported in line 147: Error: sum(spp.abund$Day.number == 1 + as.numeric((spp.abund$Date - .... is not TRUE Execution halted. I have no idea what to do about that.

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.