Skip to content

Instantly share code, notes, and snippets.

@prasoonsharma
Created November 26, 2010 03:36
Show Gist options
  • Save prasoonsharma/716246 to your computer and use it in GitHub Desktop.
Save prasoonsharma/716246 to your computer and use it in GitHub Desktop.
Using variables in R
# VARIABLES IN R
# Assignment
x <- 7
y <- 8
# Using other variables
z <- sqrt(x*x + y*y)
# Printing
z
# Listing all objects in session
ls()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment