Created
November 26, 2010 03:36
-
-
Save prasoonsharma/716246 to your computer and use it in GitHub Desktop.
Using variables in R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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