Skip to content

Instantly share code, notes, and snippets.

@shawngraham
Last active May 16, 2022 19:32
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 shawngraham/15048298a9f0552970fac98e75f26e87 to your computer and use it in GitHub Desktop.
Save shawngraham/15048298a9f0552970fac98e75f26e87 to your computer and use it in GitHub Desktop.
demo for students of gist use
# demo for sharing a script
# in scripts, a hashtag (pound sign) = a comment (in markdown, it means a header)
# we create a variable called y, and give it a _string_ of text; in this case, the direct URL to a csv file
y <- "https://raw.githubusercontent.com/shawngraham/exercise/gh-pages/CND.csv"
# now we use the read.csv command to read the file address stored in 'y'; the results go into a dataframe called 'documents2'
documents2 <- read.csv(y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment