So far we have reloaded here and unmarked manually each time you open your project
Instead, we can create an .RProfile1 file, and place library()
commands within it so RStudio loads required packages automatically 💪
Run this code in the Console to create a new text file in your top-level project directory:
Copy-paste these two lines into your new file:
Save and close the script tab using the little cross just to the right of the tab name .Rprofile:
Let’s use read.table()
to import the environmental data collected during the water deer surveys
Where did you save Covariates.csv?
Make sure that you provide the appropriate subdirectory name to here()
, so R looks in the right folder for the Covariates.csv you downloaded above
The water deer covariate data include three variables:
Which covariates could affect density, and which detectability?
Use R functions such as str()
and summary()
to examine the data numerically:
Examine the data visually:
If you’re unsure how to create or interpret plots and descriptive statistics, post in our private discussion area with the tag help-needed
Understand your data!
It’s vital to understand the field data that you’re working with, so that you can more easily interpret the results of statistical tests, and identify or avoid problems during analysis 😅
[1] "TransectID" "Landcover" "Team" "DistToCoast"