Home

Menu

Loading wiki pages...

View
Wiki Version:
<p><strong>Using R for data cleaning and data wrangling - Paul Thompson</strong></p> <p>Hopefully you have successfully <a href="https://osf.io/94db2/" rel="nofollow">installed R</a> and <a href="https://www.rstudio.com/products/rstudio/#Desktop" rel="nofollow">RStudio</a> by this point, if not pleasedo so before you continue.</p> <p>You will need to download the R script called "script for cumberland lodge_thompson.R" and "simulated_TEF_data.csv" files from the "Thompson" folder found on OSF <a href="https://www.rstudio.com/products/rstudio/#Desktop" rel="nofollow">here</a>.</p> <p>The script for simulating the data is also in this folder but details will not be covered in that session. I would be happy to discuss the details in any of the free time slots throughout the week.</p> <p>You will also need to run the following R code snippet to download required R packages:</p> <pre class="highlight"><code>list_of_packages = c(&quot;assertr&quot;,&quot;tidyverse&quot;,&quot;MASS&quot;) new.packages = list_of_packages[!(list_of_packages %in% installed.packages()[,&quot;Package&quot;])] if(length(new.packages))install.packages(new.packages) library(assertr) library(tidyverse) library(MASS) Copy the code into R command line, and then press Return. Hopefully, this should run without errors.</code></pre> <p>[2thout errors.</p>
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
Accept
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.
Accept
×

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.