Re: [Rd] How to create a table structure in Java code?

2017-10-26 Thread Morkus via R-devel
ALMOST THERE I have one small remaining problem. Now that I can read in the CSV data, thanks again for that help, I create a data frame from all the REXPDouble and the one REXPString object and I'm then trying to do a boxM (Box's M) test. The documentation says that a data frame should wor

Re: [Rd] How to create a table structure in Java code?

2017-10-26 Thread Morkus via R-devel
Thanks! I just figured it out (thanks to "Beyond Compare") and was coming here to post back. The boxM test doesn't work with that (now, finally working) REXP structure, but I probably now need to create a table or something and parse that structure. So much fun! :) Thanks again. - M Sent fro

Re: [Rd] How to create a table structure in Java code?

2017-10-26 Thread Jan van der Laan
As Joris mentioned this question does not belong on R-devel, but on R-help. When replying to your earlier question I missed that I was replying to R-devel and not R-help. R-devel: sorry for that. So, please post any follow up questions to R-help. -- Jan On 26-10-17 15:59, Morkus wrote: *_T

Re: [Rd] How to create a table structure in Java code?

2017-10-26 Thread Simon Urbanek
You are entering the quoting hell - you are missing quotes and escapes for \n. it would be much more reasonable to use the rConnection.assign method instead of pasting any content through the parser. Cheers, Simon > On Oct 26, 2017, at 9:59 AM, Morkus via R-devel wrote: > > That's amazing! T

Re: [Rd] How to create a table structure in Java code?

2017-10-26 Thread Morkus via R-devel
That's amazing! Thank you!!! One follow up question, if that's OK? If, instead of using hard-coded CSV, I read the CSV into a variable first, then it fails again with a parse error. Code below. So, if I read the CSV into a variable, do I need an additional wrapper method? Seems like it should

Re: [Rd] How to represent two-dimensonal data in R?

2017-10-26 Thread Joris Meys
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" wrote: > I asked this question yesterday, but since I didn't receive any responses, > I thought I

Re: [Rd] How to create a table structure in Java code?

2017-10-26 Thread Jan van der Laan
I suspect that you are looking for something like: read.csv(textConnection( "5.1,3.5,1.4,0.2,setosa 4.9,3,1.4,0.2,setosa 4.7,3.2,1.3,0.2,setosa 4.6,3.1,1.5,0.2,setosa 5,3.6,1.4,0.2,setosa" ), header = FALSE) HTH, Jan On 25-10-17 12:50, Morkus via R-devel wrote: Hi all, Using RConsole, it's

[Rd] How to represent two-dimensonal data in R?

2017-10-26 Thread Morkus via R-devel
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 i