Coder Social home page Coder Social logo

Comments (18)

aurielfournier avatar aurielfournier commented on July 21, 2024 3

You are right @amoeba that is how its currently written, but I agree with you and @annakrystalli it would make more sense to have the function do all that for the user. I shall get that done over the weekend!

from dataspice.

khondula avatar khondula commented on July 21, 2024 1

might be good to coordinate with @amoeba re: #41

from dataspice.

amoeba avatar amoeba commented on July 21, 2024 1

I just ran through these and they look great @aurielfournier! I'm so glad you sat down and joined us on day two.

I had an idea while I was using them I thought I'd run by you. Is this the right workflow to, for example, edit the access metadata?

access_df <- read.csv("data/metadata/access.csv", stringsAsFactors = FALSE)
editAccess(access_df)

What do you think about defaulting to doing the first line for the user by assuming each of the CSVs is at the conventional path (./data/metadata/{type}.csv) so the user only has to do this to get their data spiced?

create_spice()
editBiblio()
editAccess()
editAttributes()
editCreators()
write_spice()
build_site()

Also, would it be alright if I renamed these functions to use snake_case instead of camelCase just for consistency's sake?

from dataspice.

annakrystalli avatar annakrystalli commented on July 21, 2024 1

Was just about to add the suggestion above by @amoeba.

My suggestion would be for the function to take an argument for the path to the file that is to be edited but for the argument to default to here::here("data", "metadata", {type}.csv). The function would then read and write the file back out using that path.

from dataspice.

aurielfournier avatar aurielfournier commented on July 21, 2024

#27 we now have a shiny app that allows the user to fill in some of the cells and write out a file.

from dataspice.

aurielfournier avatar aurielfournier commented on July 21, 2024

But we need to make it so that it writes out a .csv

Right now it does ASCII and RDS.

from dataspice.

khondula avatar khondula commented on July 21, 2024

for bounding box/spatial coverage, mapedit might be useful https://www.r-spatial.org/r/2017/06/09/mapedit_0-2-0.html to create a new spatial extent, or display a bounding box based on min/max coordinates in the dataset

from dataspice.

aurielfournier avatar aurielfournier commented on July 21, 2024

@khondula would that be for a shiny app for users to define their bounding box? Instead of entering the numeric values?

from dataspice.

aurielfournier avatar aurielfournier commented on July 21, 2024

It now outputs a .csv file of the populated attributes.csv metadata file.

Next up is the biblio, access and creators.csv apps.

this could be done with a tabbed shiny app or four separate apps.

from dataspice.

aurielfournier avatar aurielfournier commented on July 21, 2024

#36 #38 #35 creates the new shiny apps for creator, biblio, access shiny apps

from dataspice.

aurielfournier avatar aurielfournier commented on July 21, 2024

Next step would be bringing all of these together into one app.

from dataspice.

khondula avatar khondula commented on July 21, 2024

I think these functions might need to be added to the namespace?

would that be for a shiny app for users to define their bounding box?

@aurielfournier yes, maybe showing them what the bounds are if they have coordinates entered (so they can confirm no silly lat/lon errors), or if they don't know coordinates they can draw a box like on http://geojson.io/

from dataspice.

aurielfournier avatar aurielfournier commented on July 21, 2024

Gotcha! I can work on the bounding box as well.

And yes, you are right, I forgot to add them. Will work on it shortly

from dataspice.

amoeba avatar amoeba commented on July 21, 2024

Sounds good @aurielfournier @khondula!

from dataspice.

amoeba avatar amoeba commented on July 21, 2024

Most excellent!

from dataspice.

annakrystalli avatar annakrystalli commented on July 21, 2024

🙌

BTW, we've already got readr as a dependency and have been using readr::read_csv() readr::write_csv() in other functions so far. Not necessary to use these but might be more consistent if we do use throughout?

from dataspice.

amoeba avatar amoeba commented on July 21, 2024

Good catch! I'm fine with using readr everywhere.

from dataspice.

amoeba avatar amoeba commented on July 21, 2024

This is "in" as of #60. Thanks @aurielfournier and @annakrystalli. We might find things to improve now that all of this is in but I think we can use new issues for those.

from dataspice.

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.