🌾 PLS 120: Applied Statistics in Agriculture

Interactive R Programming with Binder - No Installation Required! 🚀

Welcome to PLS 120! In this course, we use the R programming language for statistical analysis in agriculture. Instead of installing R and RStudio on your computer, we use Binder and Jupyter Notebooks to provide you with a ready-to-use environment. No software installation needed! 🎉

🎯 Why Use Binder?

No Installation Required - Everything runs in your browser
⚙️ Pre-configured Environment - All packages already installed
🌐 Cross-platform - Works on Windows, Mac, Linux
🔄 Always Updated - Latest versions of R and packages
🤝 Easy Sharing - Just click a link to get started

🚀 Getting Started: Step-by-Step Guide

Step 1: Launch Binder Environment 🌐

Click the "Launch Binder" button above to start your R environment. This will take 2-5 minutes to load.

Binder Launching

🔄 Binder is launching your environment - please wait patiently!

Step 2: Wait for Environment to Load ⏳

After clicking the link, Binder will show progress through several stages:

The green progress bar shows Binder is almost ready!

Binder Ready

✅ Green bar means your environment is ready in just a few seconds!

Step 3: Navigate to Class Activity 📚

Once Binder loads, you'll see the Jupyter Notebook interface. In the left panel, you'll see several folders:

Click on the class_activity folder to access this week's content.

Navigate to Class Activity

👆 Click here to access your lab materials

Step 4: Open the Lab Notebook 📖

Inside the class_activity folder, double-click on Week1_Introduction.ipynb to open the interactive lab notebook.

Open Lab Notebook

👆 Double-click here to open the lab instructions and code

Step 5: Explore the Data (Optional) 📊

We've already uploaded the data for this lab! The file LA_Data.csv contains the statistics data. You can double-click on it to explore the data if you're curious.

Explore Data

👆 Click here to view the raw data (optional)

💾 Saving Your Work

⚠️ Important: Binder environments are temporary! Always save your work locally.

Download Your Notebook 📥

When you're done working, save your progress:

  1. Go back to main folder - Click the folder icon in the left panel
Go Back to Main

👆 Click the folder icon to return to the main directory

2. Download your notebook - Right-click on your .ipynb file and select "Download"

📝 Completing Assignments

Step 1: Access Assignment Folder 📋

From the main directory, click on the assignment folder to access your homework.

Access Assignment

👆 Click here to access assignment materials

Step 2: Open Assignment Notebook 📄

Double-click on Assignment1.ipynb to open your assignment.

Open Assignment

👆 Double-click here to open your assignment

Step 3: Complete Your Work ✍️

Fill in all code boxes and text boxes carefully to answer all questions. Look for:

Step 4: Download Your Completed Work 💾

Download Code File (.ipynb)

Click FileDownload to save your notebook code.

Download Code

👆 Download your .ipynb file for backup

Export HTML/PDF Report 📄

For submission, you also need an HTML or PDF report:

Click FileSave and Export Notebook AsHTML (or PDF)

Export Report

👆 Export your completed assignment as HTML or PDF

📤 Submission Requirements

For each assignment, submit TWO files to UC Davis Canvas:

📄

HTML/PDF Report

Your formatted assignment with outputs

💾

.ipynb File

Your notebook code as backup

⚠️ Important: Saving Your Progress

Do not close Binder if you have not saved your code or all your progress will be gone!

If you want to take a break and continue your activity or assignment later:

Save Your Work Before Closing 💾

Right-click on your code (.ipynb) file and click "Download" to make sure you have saved your code locally.

Save Your Code

👆 Right-click on your notebook file and download it before closing Binder

Continue Your Progress Later 🔄

When you open Binder again and want to continue your work:

  1. Click the Upload button on the top ribbon
  2. Find your saved code file locally on your computer
  3. Upload your .ipynb file
  4. Run your code cells again to see your previous outputs!
Upload Your Code

👆 Use the Upload button to continue your work from where you left off

❓ Need Help?

📧 Contact Information

Mohammadreza Narimani
📧 mnarimani@ucdavis.edu
🏫 Department of Biological and Agricultural Engineering, UC Davis

🔧 Technical Issues

📚 Learning Resources

📋 What You'll Learn

R Programming Basics - Variables, vectors, data frames
Data Visualization - Histograms, plots, charts
Statistical Analysis - Descriptive statistics, hypothesis testing
Agricultural Applications - Real-world data analysis
Report Writing - Professional statistical reports

🌟 Tips for Success

💡 Best Practices

⚡ Keyboard Shortcuts

Shift + Enter Run current cell and move to next
Ctrl + Enter Run current cell and stay in place
A Insert cell above
B Insert cell below
DD Delete current cell

🎉 Ready to Start?

Click the Binder badge below to launch your first R programming session!

Happy coding! 🚀🌾