<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to | R (for ecology)</title><link>https://www.rforecology.com/tag/how-to/</link><atom:link href="https://www.rforecology.com/tag/how-to/index.xml" rel="self" type="application/rss+xml"/><description>How to</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><copyright>© HabitU Lab, LLC and R for Ecology 2026</copyright><lastBuildDate>Mon, 14 Nov 2022 09:30:50 -0400</lastBuildDate><image><url>https://www.rforecology.com/media/logo_hu79e4c31f2037bf5f26b941f1d8a66338_12106_300x300_fit_lanczos_2.png</url><title>How to</title><link>https://www.rforecology.com/tag/how-to/</link></image><item><title>How to make a scatterplot in R</title><link>https://www.rforecology.com/post/scatterplots-in-r/</link><pubDate>Mon, 14 Nov 2022 09:30:50 -0400</pubDate><guid>https://www.rforecology.com/post/scatterplots-in-r/</guid><description>This blog post I teach you the basics of creating and customizing scatterplots in R</description></item><item><title>Free workshop on how to learn R</title><link>https://www.rforecology.com/post/free-workshop-on-how-to-learn-r/</link><pubDate>Thu, 12 May 2022 09:30:50 -0400</pubDate><guid>https://www.rforecology.com/post/free-workshop-on-how-to-learn-r/</guid><description>Learn about the four challenges when learning R and the key strategies for how to overcome those challenges so that nothing can stop you from mastering R</description></item><item><title>The basics of prototyping and exporting your plots in R</title><link>https://www.rforecology.com/post/exporting-plots-in-r/</link><pubDate>Thu, 05 May 2022 09:30:50 -0400</pubDate><guid>https://www.rforecology.com/post/exporting-plots-in-r/</guid><description>In this tutorial, I go over the basics of how to prototype, save, and export your plots from R.</description></item><item><title>How to reshape your data in R for analysis</title><link>https://www.rforecology.com/post/reshaping-data-in-r/</link><pubDate>Thu, 28 Apr 2022 09:30:50 -0400</pubDate><guid>https://www.rforecology.com/post/reshaping-data-in-r/</guid><description>In this blog post, I show you how to reshape data (i.e. how to use pivot tables) so that the data are in the correct form for data analysis in R.</description></item><item><title>How to create your own functions in R</title><link>https://www.rforecology.com/post/how-to-create-your-own-function-in-r/</link><pubDate>Thu, 21 Apr 2022 11:46:53 -0400</pubDate><guid>https://www.rforecology.com/post/how-to-create-your-own-function-in-r/</guid><description>In this tutorial, I&amp;rsquo;m going to explain how to create your own functions and provide a few examples.</description></item><item><title>How to make a boxplot in R</title><link>https://www.rforecology.com/post/2022-04-06-how-to-make-a-boxplot-in-r/</link><pubDate>Wed, 06 Apr 2022 11:46:53 -0400</pubDate><guid>https://www.rforecology.com/post/2022-04-06-how-to-make-a-boxplot-in-r/</guid><description>In this tutorial I show you everything you need to know about boxplots and how to make them look nice using the built-in functions in R</description></item><item><title>Search through your ecological data with the 'grep()' function</title><link>https://www.rforecology.com/post/how-to-use-grepl/</link><pubDate>Tue, 29 Mar 2022 09:09:55 -0400</pubDate><guid>https://www.rforecology.com/post/how-to-use-grepl/</guid><description>Here I describe the functions called &lt;code>grep()&lt;/code>, &lt;code>grepl()&lt;/code>, and &lt;code>sub()&lt;/code>, which allow you to find strings in your data that match particular patterns.</description></item><item><title>Complete tutorial on using 'apply' functions in R</title><link>https://www.rforecology.com/post/how-to-use-apply-functions/</link><pubDate>Tue, 08 Mar 2022 09:45:39 -0500</pubDate><guid>https://www.rforecology.com/post/how-to-use-apply-functions/</guid><description>Here I show you a useful family of functions that allows you to repetitively perform a specified function (e.g., sum, mean) across a vector, matrix, or data frame.</description></item><item><title>How to use pipes to clean up your R code</title><link>https://www.rforecology.com/post/how-to-use-pipes/</link><pubDate>Wed, 02 Mar 2022 02:45:39 -0500</pubDate><guid>https://www.rforecology.com/post/how-to-use-pipes/</guid><description>In this tutorial, I&amp;rsquo;m going to give an explanation of what pipes are and when they can be used, and then I&amp;rsquo;m going to demonstrate how useful they can be for writing neat and clear R code.</description></item><item><title>How to use the group_by function with your ecological data</title><link>https://www.rforecology.com/post/how-to-use-the-group-by-function/</link><pubDate>Wed, 23 Feb 2022 08:45:39 -0500</pubDate><guid>https://www.rforecology.com/post/how-to-use-the-group-by-function/</guid><description>In this tutorial, I discuss how to use a handy function called group_by() for organizing and preparing your data for analysis and visualization.</description></item><item><title>How to use R Markdown (part two): for learning R!</title><link>https://www.rforecology.com/post/how-to-use-rmarkdown-part-two/</link><pubDate>Tue, 15 Feb 2022 10:45:39 +0000</pubDate><guid>https://www.rforecology.com/post/how-to-use-rmarkdown-part-two/</guid><description>In part two of my series on R Markdown, I&amp;rsquo;ll go over how to use R Markdown for learning R by documenting your journey into your own guide to R.</description></item><item><title>How to use R Markdown (part one)</title><link>https://www.rforecology.com/post/how-to-use-rmarkdown-part-one/</link><pubDate>Wed, 09 Feb 2022 10:45:39 -0500</pubDate><guid>https://www.rforecology.com/post/how-to-use-rmarkdown-part-one/</guid><description>R Markdown is a powerful method for creating reports that combine formatted text with R code. This can help you with accountability, data analysis reproducibility, for making tutorials (like this one), and also for learning R! In part one of this two-part series, you&amp;rsquo;ll learn how to create basic R Markdown documents with all the essential content.</description></item><item><title>Introduction to missing data (NAs) in R</title><link>https://www.rforecology.com/post/introduction-to-missing-data-in-r/</link><pubDate>Tue, 01 Feb 2022 09:45:39 -0500</pubDate><guid>https://www.rforecology.com/post/introduction-to-missing-data-in-r/</guid><description>In this tutorial, I&amp;rsquo;m going to explain what exactly an NA value is, how you can find NAs in your data, and how to remove them.</description></item><item><title>How to join tables in R</title><link>https://www.rforecology.com/post/how-to-join-tables-in-r/</link><pubDate>Wed, 26 Jan 2022 11:45:39 -0500</pubDate><guid>https://www.rforecology.com/post/how-to-join-tables-in-r/</guid><description>In this tutorial, I show you how to combine tables (data frames) together using both base R and the &lt;code>dplyr&lt;/code> package.</description></item><item><title>Making your first plot in R</title><link>https://www.rforecology.com/post/making-your-first-plot-in-r/</link><pubDate>Wed, 05 Jan 2022 09:45:39 -0500</pubDate><guid>https://www.rforecology.com/post/making-your-first-plot-in-r/</guid><description>In this tutorial, I teach you how to create a basic scatterplot using base R.</description></item><item><title>How to install (and update!) R and RStudio</title><link>https://www.rforecology.com/post/how-to-install-r-and-rstudio/</link><pubDate>Sat, 01 Jan 2022 05:28:39 -0500</pubDate><guid>https://www.rforecology.com/post/how-to-install-r-and-rstudio/</guid><description>The first step to learning R is to have it downloaded on your computer! In this blog post, I introduce R and RStudio and show you how to download and install them.</description></item><item><title>How to go from R to nice tables in Microsoft Word</title><link>https://www.rforecology.com/post/exporting-tables-from-r-to-microsoft-word/</link><pubDate>Tue, 23 Nov 2021 12:28:39 -0600</pubDate><guid>https://www.rforecology.com/post/exporting-tables-from-r-to-microsoft-word/</guid><description>As scientists analyzing their data, we often have data or results in R that we want to export to a word processor for the reports or publications that we’re writing. In this tutorial I show you how to do just that!</description></item><item><title>Video tutorial on the essentials of R for ecology cheatsheet</title><link>https://www.rforecology.com/post/video-tutorial-on-the-essentials-of-r-for-ecology-cheat-sheet/</link><pubDate>Fri, 10 Sep 2021 09:30:39 -0400</pubDate><guid>https://www.rforecology.com/post/video-tutorial-on-the-essentials-of-r-for-ecology-cheat-sheet/</guid><description>Here I present a video tutorial and walkthrough (and code) that I created to go over my cheatsheet on the 80% most important functions in R (for ecology)</description></item><item><title>Intro to evolutionary algorithms with R for beginners (from scratch) [PART 1]</title><link>https://www.rforecology.com/post/intro-to-evolutionary-algorithms-with-r-for-beginners-from-scratch-part-1/</link><pubDate>Fri, 27 Aug 2021 00:00:00 +0000</pubDate><guid>https://www.rforecology.com/post/intro-to-evolutionary-algorithms-with-r-for-beginners-from-scratch-part-1/</guid><description>Here I describe how evolutionary algorithms work by going through an example of fitting a basic linear model.</description></item><item><title>How to actually make a quality scatterplot in R</title><link>https://www.rforecology.com/post/how-to-make-a-quality-scatterplot-in-r/</link><pubDate>Fri, 06 Aug 2021 00:00:00 +0000</pubDate><guid>https://www.rforecology.com/post/how-to-make-a-quality-scatterplot-in-r/</guid><description>Scatterplots are one of the most common types of data visualizations you will encounter as a biologist. Here I go over how to make quality scatterplots that are ready for publication.</description></item><item><title>How to do a simple linear regression in R</title><link>https://www.rforecology.com/post/how-to-do-simple-linear-regression-in-r/</link><pubDate>Fri, 09 Jul 2021 00:00:00 +0000</pubDate><guid>https://www.rforecology.com/post/how-to-do-simple-linear-regression-in-r/</guid><description>I show you how to do a simple linear regression in R that models the relationship between two numeric variables</description></item><item><title>How to organize your analyses with R Studio Projects</title><link>https://www.rforecology.com/post/organizing-your-r-studio-projects/</link><pubDate>Mon, 05 Jul 2021 00:00:00 +0000</pubDate><guid>https://www.rforecology.com/post/organizing-your-r-studio-projects/</guid><description>In this post I go over a basic method method for organizing your ecological data analysis projects in R.</description></item></channel></rss>