Code Monkey home page Code Monkey logo

Comments (1)

haakonstorm avatar haakonstorm commented on May 29, 2024

I'm mentioning this here because I get a sense you now (regarding filter, match etc) are walking down a path where a brilliant guy has already walked before you: That guy is Hadley Wickham, and what I really think you should play around with is tidyverse (https://www.tidyverse.org). Don't be alarmed. I've coded since I was a kid, everything from assembly, C to Pascal and SALT, and had never heard about the R programming language until a couple of years ago, when I went back to university to study Plant science. Which sorts under Biology, and in this university, all biology students start out on day 1 by learning to code. In R! I'm mentioning this because with "tidyverse" in R, there is a very clear and very coherent way of thinking about and wrestling with data sets. In particular, see what you can find about Wickham writing about "tidy data" as in https://tidyr.tidyverse.org -- and the cheat sheet here https://github.com/rstudio/cheatsheets/blob/master/data-import.pdf visualizes the core philosophy about what makes data tidy.

After skimming through the tidy data stuff, this: https://dplyr.tidyverse.org will make a lot more sense. The way data scientists work with filter and select, with tidy data, is just mind blowing.
btw: In reading the code examples, whenever you see %>% this is the R pipe, so to speak. So when you see:

starwars %>% 
  filter(species == "Droid")

... its basically `cat starwars.json | scout [...]ยด

from scout.

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.