Skip to content

How to represent two-dimensonal data in R?

2 messages · Morkus, Joris Meys

#
I asked this question yesterday, but since I didn't receive any responses, I thought I would simply the question a bit and try again.

Basically, I'm getting a query result sent to a program. That data is just the rows and columns of a database table. Simple 2-D.

My (hopefully simple) question is how do I take that variable and put that two-dimensional data in a form I can then send to R?

Can R represent two-dimensional data when passed like that to a variable? I cannot find a single example, anywhere, that describes how to do it. :(

I've tried: "data", "data.frame", "table", the data by itself, etc.

Nothing works. I only get "eval" syntax errors.

Please advise with any suggestions.

Thanks again.

- M

Sent from [ProtonMail](https://protonmail.com), Swiss-based encrypted email.
Message-ID: <deD96DVueis9mwZEMT2qDO1l1WwUscE8r5ZK8d0AeVArkcdKUIHhzvGbnRA6roac61izpebO6_4KuV_4-Pf-2tPRKdaadbnOVLEJ2ASn7tI=@protonmail.com>
#
You are on the R devel list. Please use R help and provide people with more
detail, like the code you tried and the actual file format.

Kind regards
Joris
On 26 Oct 2017 11:52, "Morkus via R-devel" <r-devel at r-project.org> wrote: