Giter Site home page Giter Site logo

cms-rmaterial-multiple-languages's Introduction

CMS Open Data: Plotting an Invariant Mass Histogram in R

Binder

In this repository, you will find introductions to both the R programming language and to a simple analysis with R using CMS Open Data from the CERN Open Data portal. The tutorial is available in interactive form as a Jupyter notebook using the IR Kernel (in English only, for the moment) and as a PDF (in English and Spanish). You can run the Jupyter notebook in your browser without installing any software on your machine, through the power of Binder. However, installation instructions are available below if you wish to play with the notebook files offline. Note that the data will require at least a temporary connection to the CERN Open Data portal.

Tutorial files

Language Jupyter notebook For print
English (EN) Binder View PDF
Spanish (ES) Coming soon! View PDF

Instructions for offline use

  1. Install Jupyter.
  2. Install R.
  3. Make the IR kernel available to Jupyter.
  4. In the terminal, clone this repo onto your machine, and change directories so you're inside the repo.
  5. Still in the terminal, type $ jupyter notebook. Your default browser will open with the Jupyter interface.
  6. Click on the file ending with .ipynb to begin the interactive tutorial.

Credits

Technical information

You can use Binder to interact with any such notebook via a browser without installing Jupyter or R, by hosting your notebooks on GitHub. To do so, make sure that your GitHub repository contains the Dockerfile shown here: https://github.com/binder-examples/dockerfile-r. Install any additional packages you want to interact with (e.g. tidyverse) by including them in the Dockerfile.

Licence

Coming soon!

cms-rmaterial-multiple-languages's People

Contributors

edithvillegas avatar raoofphysics avatar

Watchers

 avatar  avatar  avatar

cms-rmaterial-multiple-languages's Issues

Use Tidyverse instead of base R

Hi Achintya,

  1. The zeroth reason for opening an issue is that I want to encourage reproducible research, and a notable benefit of making the code, paper, and/or data for analysis available on GitHub is that readers of a published work can address their questions to the author(s) directly by opening an issue rather than sending them an email. The consequence of this is that the knowledge exchange happens in the open and is coupled to the work in question, rather then a private email thread in someone's inbox. This means that others can benefit from the knowledge exchange. The FAQ writes itself!

  2. I like that you gave a quick introduction to R, but with time I've become increasingly convinced that it is better start teaching the tidyverse before base R. In my own teaching materials I started with base R before introducing the tidyverse, but I now think that this approach is backwards. It's like learning C before learning C++, which is how I was taught C++ (it could be argued that this approach is actually counterproductive). The tidyverse enables students to do powerful things quickly, and there is the added "wow factor" that will encourage adoption. See here for more discussion on this: Teach the tidyverse to beginners

  3. I've found knitr and rmarkdown incredible useful for producing elegantly formatted and cross-referenced documents that are immediately fit for journal submission. Can you provide any recipes for doing this from a Jupyter notebook? Is there anything as nice as knitr for Jupyter notebooks? Ideally, I want the Jupyter notebook to be the source of the published document; readers can then visit the Binder-powered repo to reproduce the work themselves. This is simpler than providing the Rmd or ipynb and instructing the reader to install a bunch of software, and doesn't ensure replication of the execution environment.

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.