Coder Social home page Coder Social logo

Comments (2)

dannyparsons avatar dannyparsons commented on September 10, 2024

month_abb_english is defined in constants.R. Surprised if it doesn't find it in functions?

  1. Yes, good idea.
  2. The GeoCLIM documentation mentions "ID" #17 (comment) so I think keep it as ID.
  3. character. It is for a set of additional station columns that you might want to include in the output, but not mandatory e.g. station elevation or country.

I can look into the error later if you still can't find the cause.

from cdms.products.

lilyclements avatar lilyclements commented on September 10, 2024

@dannyparsons thanks! I've sorted 1-3 now.

To the error - we currently run in the function:

  geoclim_data <- 
    tidyr::pivot_wider(data_with_meta,
                       id_cols = tidyselect::all_of(id_cols),
                       names_from = tidyselect::all_of(month),
                       values_from = tidyselect::all_of(elements), 
                       values_fill = -999)

I was initially not running this with summary data, just the daily data. The output was then giving a vector of values when running pivot_wider.
Having values_fill = -999 then caused the error.

So this is fixed now that I am using it correctly!

from cdms.products.

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.