From 4893d91cbe574eccce4d8b503f9f084015a81fc4 Mon Sep 17 00:00:00 2001 From: Ayushi Agrawal <88406934+ayushi-agrawal-gladstone@users.noreply.github.com> Date: Thu, 7 Jul 2022 11:10:19 -0700 Subject: [PATCH] Delete Basic_script.R --- intro-r-data-analysis/Basic_script.R | 34 ---------------------------- 1 file changed, 34 deletions(-) delete mode 100644 intro-r-data-analysis/Basic_script.R diff --git a/intro-r-data-analysis/Basic_script.R b/intro-r-data-analysis/Basic_script.R deleted file mode 100644 index 51d52e0..0000000 --- a/intro-r-data-analysis/Basic_script.R +++ /dev/null @@ -1,34 +0,0 @@ -#This script perform some basic calculations in R. -#To run this script you may select all and hit the Run button on top right of this pane ... -#... or go Cmd+A followed by Cmd+Enter on Mac. If you use Windows, ... -#... you can also go Ctrl+A followed by Ctrl+Enter. - -#The following command will add 2 to 3 and store the value in variable named 'a'. -a <- sum(2,3) - -#The following command will get the product of 2 and 3 and store it in 'b'. -b <- prod(2,3) - -#Next, we check if a and b have equal values. -a == b - -#Next, we check if a and b are not equal. -a != b -#Conclusion: Summing numbers is not the same as multiplying them! -#Time to write a paper? I think we can go to Nature or Science with this discovery. - - -#Check if two conditions are simultaneously true. -(a == b) & (sqrt(3) == 5) - -#Check if any one of given two conditions are true. -#Vertical line is how we say 'or' in R. -(a == b) | (sqrt(3) == 5) - -#Variables can also store characters. -name <- "Homo sapiens" - -#Is Homo sapiens equal to human being? -name == "Human being" - -#Apparently not?