Top Tweets for #ressentials4ecologists
⚠️ #Ressentials4ecologists
In summary: You DON'T need to use these functions ever again!
Learn how to use projects instead: https://t.co/LvHYAUtvMv
#rstats #datascience #ecology #rforecology
⚠️ #Ressentials4ecologists
What happens is that these functions are obsolete if you use R Studio projects since that automatically sets the working directory relative to the project file location. 👇
#rstats #datascience #ecology #rforecology
⚠️ #Ressentials4ecologists
You've probably already used setwd() to set a new working directory, is that right? What about getwd() to find your current working directory?
Well... What if I tell you that you should NOT use it again? 🤯👇
#rstats #datascience #ecology #rforecology
⚠️#Ressentials4ecologists
Do you want to calculate the mean and standard deviation of a numeric vector?
use the mean() and sd() functions for that!👇
#rstats #datascience #ecology #rforecology #science
⚠️#Ressentials4ecologists
Important: this function must be run right after a plot is created for the line to appear on that graphic!
Ex:
fit_mode<-lm(Girth~Height, data=tree_data)
plot(Girth~Height, data=tree_data)
abline(fit_mod, col=4)
abline(v=70, col=2)
abline(h=16, col=3)
⚠️#Ressentials4ecologists
You can supply the result of a fitted linear model for adding a regression line. You can add vertical or horizontal lines with the 'v' and 'h' arguments. 👇
#rstats #datascience #ecology #rforecology #science
⚠️#Ressentials4ecologists
What if you need to add lines to a plot in R?
Well, as with (almost) everything in R, there is a function for that!
Use abline() for adding vertical, horizontal, or regression lines to plots. 👇
#rstats #datascience #ecology #rforecology #science
⚠️#Ressentials4ecologists
If you are interested in learning more about the dplyr package, check their official website at https://t.co/qMUhjgy6Cn or our #rforecology website at https://t.co/JRsPPWyIyu
#rstats #datascience #ecology #science #tutorial #biology
⚠️#Ressentials4ecologists
Dplyr is basically a package for making data manipulation easier. It is a grammar of data manipulation, providing a consistent set of verbs that help you solve the most common data manipulation challenges.👇
#rstats #datascience #ecology #rforecology
⚠️#Ressentials4ecologists
It's all fascinating, mainly after we found interesting results. However, this is the part of the job no one talks about: We often need to modify the formatting of our data so that it becomes analyzable. 👇
#rstats #datascience #ecology #rforecology
⚠️#Ressentials4ecologists
Meet dplyr: A fast, consistent tool for working with data frames in R!
As ecologists, we usually collect robust datasets to perform complex statistical analyses and test our hypotheses. 👇
#rstats #datascience #ecology #rforecology #science

#Ressentials4ecologists ⚠️
sort() is a #Rstats function to numerically or alphabetically rearrange a vector. It uses a numeric or character vector to return a rearranged vector in ascending or descending order as output.
Use sort() and never rearrange your data manually again!
#Ressentials4ecologists ⚠️
(1/2) If you need to find which elements of a character vector contain a particular string of text, use the grepl() function!
grepl("3",spp_vec) returns c(F,T,F,T)
dataframe[grepl("3", dataframe$spp_vec),]
#rstats #datascience #rforecology #science
#Ressentials4ecologists ⚠️
length() - If you need to get the length of a vector or number of columns in a data frame, that's the function for you! *Argument is a numeric vector or a data frame.
Have you ever used this function before?
#rstats #datascience #rforecology
R Essentials for ecologists - THE BASICS!
Do you know that there's a function for most operations you will ever need to do in R as an ecologist? I'll approach some of these functions within the next few weeks using #Ressentials4ecologists.
Don't miss it! #rstats #rforecology
Last Seen Hashtags on Sotwe
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
241.7M followers

Barack Obama 
@barackobama
119M followers

Cristiano Ronaldo 
@cristiano
114.4M followers

Donald J. Trump 
@realdonaldtrump
111.9M followers

Narendra Modi 
@narendramodi
107.2M followers

Rihanna 
@rihanna
98.7M followers

NASA 
@nasa
92.4M followers

Justin Bieber 
@justinbieber
91.8M followers

KATY PERRY 
@katyperry
90M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.4M followers

Kim Kardashian 
@kimkardashian
70.9M followers

YouTube 
@youtube
68.8M followers

Neymar Jr 
@neymarjr
66.4M followers

Bill Gates 
@billgates
65.2M followers

Selena Gomez 
@selenagomez
63.1M followers

The Ellen Show
@theellenshow
62.3M followers

CNN 
@cnn
61.8M followers

X 
@x
60.7M followers
