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

New Post: How to get an excel range into a data.frame

$
0
0
I am probably giving more info than you need.

The code below creates name, value pairs where the value is an Excel Range.
      Dictionary<string, Name> dictionary = new Dictionary<string, Name>();
        foreach (Name n in wbNames) {
            if (n.Name.IndexOf("!") <= 0) {
                dictionary.Add(n.Name, wbNames.Item(n.Name));
            }
        }
Suppose I want to create a data.frame that is one of the values in the "dictionary".

For example I can write:
var df = dictionary["xyz"];
How can I get the data from df into R an R data.frame?

Thanks for your time,
Best,
KW

Viewing all articles
Browse latest Browse all 1634

Trending Articles



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