Training sesions with Felipe

Author

PGS

22-Feb-2024

Session 1: Quarto and its functions

Basic tips:

1) ¡¡¡!!! always write your intention/comment your scripts

2) Work with Projects, which can be connected to online resource repositories; Github is an online software development platform used for storing, tracking, and collaborating on software projects.

Calling an online figure/object:

![Brown bear] (https://www.ngenespanol.com/wp-content/uploads/2023/01/Grizzly_Bear-_Sow_and_cubs_5728173840-Grande.jpeg)

This image belongs to [this site] (https://www.ngenespanol.com/animales/osos-pardos-perdiendo-garras/)

Including code

To include new chunk ’Cntrl+alt+I’ . Click the Render button generate document that includes both content and the output of embedded code:

a<- 3*4
a+3
[1] 15

You can add options of format (for the final view). E.g: echo: false option disables the printing of code (only output is displayed). including in the name of the chunk ‘results=’hide’’ also works.

[1] 12

##Calling data and summarising by graphs, data public published from case study in Muff et al. 2019

#/echo: false
gps_otter<-read.csv("C:/Rcoding/muff_2019/d_otter.csv")
summary(gps_otter)
data.frame(gps_otter)
head(gps_otter)
  NA_ANIMAL NA_ID Loc Sohlenbrei NAT1 REST1 STAU1 Breaks_Dis
1       Dan 11624   0          5    0     1     0   109.5735
2       Dan 11624   0          5    0     1     0   138.9124
3       Dan 11624   0          5    0     1     0   156.7677
4       Dan 11624   0          5    0     1     0   208.2738
5       Dan 11624   0          5    0     1     0    30.3576
6       Dan 11624   0          5    0     1     0   472.6722
hist(gps_otter$Breaks_Dis)

To create columns use:

::::{.columns}

:::{.column width=50%}

12-Mar-2024

Session 2: GitHub & Quarto

Installing Git

setwd("C:/Users/marii/OneDrive - Nottingham Trent University/Documents/2023-24_PhD/00_Coding")

See next document…