Check out example codes for "r extract specific value from data frame". It will help you in understanding the concepts better.

Code Example 1

df[df$myvar=="myname",]

Learn ReactJs, React Native from akashmittal.com