Coder Social home page Coder Social logo

estebanpdl / rbasics-dfrlab-dsprogram Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 1.64 MB

A collection of code snippets to help you get started with R programming. The goal is to provide you with practical examples that you can use to read datasets, scrape websites, and work with APIs. Whether you're a beginner or just looking to brush up on your skills, these snippets will help you understand the basics of R.

R 100.00%
osint-tool rlang training

rbasics-dfrlab-dsprogram's Introduction

R Basics / DFRLab - Digitalsherlocks Program

GitHub forks GitHub stars Open Source Twitter estebanpdl


Welcome to our R Basics workshop repository! This repository is part of DFRLab's digitalsherlocks program and is designed to help you get started with R programming. Here you'll find a collection of code snippets that cover the basics of reading datasets, scraping websites, and working with APIs using R.


How to use this repository

To get started, clone or download the repository to your local machine. Then, navigate to the folder where you've saved the repository and open the code snippets in your preferred text editor or R environment (R Studio)


You can also run this command using RStudio


usethis::use_course("https://github.com/estebanpdl/RBasics-DFRLab-DSProgram.git")

This command will open another RStudio instance with the materials.


We recommend following these steps:

  1. Start with the "EX1-Twitterdataset" folder. This will help you to understand how to read in data from a CSV file.
  2. Move on to the "Ex2-Rvest" folder to learn how to scrape data from a website.
  3. Move on to the "Ex3-CrowdTangle" folder. This folder includes a code snippet to pull data from CrowdTangle's API.
  4. Move on to the "Ex4-ReadJSONResponse" folder. This folder includes exercises on how to read a json file and convert data into a data frame.

Feel free to modify and experiment with the code snippets as you see fit. Don't hesitate to ask questions and seek help in our DFRLab's digitalsherlocks community.*


Requirements

To use these code snippets, you'll need to have R and RStudio installed on your computer.

Getting started with R and RStudio


To install R, visit https://www.r-project.org/ and follow the instructions. You will have to choose your preferred CRAN Mirror (a network of ftp and web servers around the world that store identical, up-to-date, versions of code and documentation for R). Choose the closest location to you.

After you download R, you may also want to visit https://www.rstudio.com/products/rstudio/ to download RStudio Desktop. RStudio is a free Integrated Development Environment (IDE) that provides a convenient user interface for the R language, which would otherwise require work using command line prompts. The interface allows you to view graphs, data, and R code all at the same time, organized in separate windows, and also provides drop-down menus for tasks for which you would otherwise have to use the command line to complete in R. For beginners (and more advanced users as well) RStudio makes R significantly more user-friendly.

You can also visit this link and follow the instructions to get RStudio ready!

We also recommend installing the following R packages:

  • tidyverse
  • rvest
  • httr

You can install these packages by running the following commands in your R console:

install.packages("tidyverse")
install.packages("rvest")
install.packages("httr")

Disclaimer

This repository is intended for educational and pedagogical purposes only. The code snippets provided here are meant to help users learn and experiment with R programming.

rbasics-dfrlab-dsprogram's People

Contributors

estebanpdl avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.