Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

New Post: how to get the first two columns from the result

$
0
0
I use "print(lsmeans)" and the results are like:

$V lsmeans
         V    lsmean        SE        df  lower.CL  upper.CL
        V1  95.6388         XX         XX  XX       xx
        V2  99.4101         XX         XX  XX       xx
        V3  98.8171         XX         XX  XX       xx
        V4  89.9479         XX         XX  XX       xx
        V5  88.5646         XX         XX  XX       xx
I am only interested in the first two columns" "V" and "lsmean". Is there any way to grab them out as two lists or a list of dictionaries with key (V) and value (lsmean)?

Much appreciated with any help.
Thanks

Viewing all articles
Browse latest Browse all 1634

Trending Articles



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