Skip to content

jacquelinehoppenreijs/LoLMedInsekter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

Lära och leva med insekter - contents

Project responsible: Peter Lampert Author: Jacqueline Hoppenreijs

Project documents:

  • README file with user instructions
  • Rmarkdown file with code for data analyses, visualisation and interpretation

Instructions for using Rmarkdown

LoLMedInsekter.rmd is an Rmarkdown document. This type of document integrates code and text really nicely by alternating between text and chunks of code.

Code chunks can be run by clicking the arrow on the right top corner of the individual chunk. If you want to run all code at once you can chose so in the "Run" menu at one of the top bars.

The code is written to work well with data in long format (as opposed to wide) and stored in basic Excel files (.xlsx extension).

There are two types of text in the Rmarkdown file. The first is included in the code chunks, and explains what specific lines of code do. You can use this information to change the code, for example if you want to upload a new dataset or change the colours on a plot. The second type occurs outside of the code chunks and is used as headings to structure the document, or explains what data is included in plots or analyses and how the output can be interpreted.

Rmarkdown helps create a readable type of output that doesn't require reading through all the code itself. You can create an output by "knitting" the Rmarkdown file in one of the top bars in Rstudio. The current settings will give you a Word document as output. You can save the Word file with a name that reflects the data that you have analysed.

Working in R and with Rmarkdown can be tricky, and you'll likely run into warnings (potentially problematic) and errors (problematic). First course of action is always to google these, as there's always people that have encountered the same problem before!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published