How to use the $ operator in the R programming language. More details: https://statisticsglobe.com/meaning-o...
R code of this video:
data <- data.frame(x1 = 1:5, # Create example data
x2 = letters[1:5],
x3 = 9)
data # Print example data
data$x2 # Extract column of data
my_list <- list(A = 1:5, # Create example list
B = letters[1:5],
C = 9)
my_list # Print example list
my_list$B # Extract element of list
Follow me on Social Media:
Facebook – Statistics Globe Page: / statisticsglobecom
Facebook – R Programming Group for Discussions & Questions: / statisticsglobe
Facebook – Python Programming Group for Discussions & Questions: / statisticsglobepython
LinkedIn – Statistics Globe Page: / statisticsglobe
LinkedIn – R Programming Group for Discussions & Questions: / 12555223
LinkedIn – Python Programming Group for Discussions & Questions: / 12673534
Twitter: / joachimschork
Music by bensound.com