R (programming language)
BASIC INFORMATION R (open source language) is successor of S (proprietary language) Like Python use # for comments Use Ctrl + Enter to run the current line OR select multiple lines and press Ctrl + Enter Ctrl + L to clear console in R studio How to print variable? use print(variable) → CAN only print 1 object at a time OR select variable and hit Ctrl + Enter Put things in () to print while doing assigning (x < - 5) → makes x=5 and prints x x < - 5 → only makes x=5 Use View() for better visualisaion (for matrix or data frame) Variable name can have {letters, number, . , _ } But can start only with letter or . If printing multiple things on same line USE ; (semicolon) Eg.- a <- 10; b <- 20 Write (TRUE & FALSE) or (T & F) → but True or true are both wrong Can store string in " " or ' ' single-quoted strings can’t contain single quotes Similarly, double-quoted string can’t contain double quotes '...