Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201945

How to access single elements in a table in R

$
0
0

How do I grab elements from a table in R.

My Data looks like this:

         V1     V2
1      12.448 13.919
2      22.242  4.606
3      24.509  0.176

etc...

I basically just want to grab elements individually. I'm getting confused with all the R terminology like vectors, and I just want to be able to get at the individual elements.

Is there a function where I can just do like data[v1][1] and get the element in row 1 column 1?


Viewing all articles
Browse latest Browse all 201945

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>