Skip to content

Instantly share code, notes, and snippets.

@lundquist-ecology-lab
Last active December 3, 2022 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lundquist-ecology-lab/407c1d6f14a7aa0dfed064d13e52c7e3 to your computer and use it in GitHub Desktop.
Save lundquist-ecology-lab/407c1d6f14a7aa0dfed064d13e52c7e3 to your computer and use it in GitHub Desktop.
# How to import local data files
# For .csv files
data_name <- read.csv("/path/to/file_name.csv", head = TRUE,
stringsAsFactors = TRUE)
head(data_name)
# For .xlxs
library(readxl)
data_name <- read_excel("/path/to/file/_name.xlsx")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment