Re: [R] R matrix multiplication slowdown

2017-01-27 Thread ken eagle
I've done more searching and found a problem with the data in one of the matrices that was corrupting the calculation. Data now fixed and problem is solved. Apologies if anyone wasted time on this. Ken On Fri, Jan 27, 2017 at 8:29 AM, Jeff Newmiller wrote: > You are asked by the Posting Guide

Re: [R] No visible binding for global variable

2017-01-27 Thread Fox, John
Dear Jamil, Presumably, the variables alloc.dose, r0, r1, and r2 will exist in the global environment when you call the compiled function lf1.c(), but didn’t exist when you compiled the function. If so, then lf1.c() should work properly despite the notes (not errors, or even warnings) that was

Re: [R] testing in spatial sure models

2017-01-27 Thread MacQueen, Don
You could start by going to the CRAN website, clicking on the "Task Views" item on the left, then clicking on "Spatial". This will bring you to a page with extensive information about doing things with spatial data in R. It includes some brief descriptions of the purposes/capabilities of many sp

[R] No visible binding for global variable

2017-01-27 Thread Naser Jamil
Dear R-users, I would like to seek your suggestion. I have the following code which runs smoothly. But when I compile the function (lf1.c), it shows "no visible binding for global variable" for some of the arguments. ### library(compiler) psi0<-function(theta1,th

Re: [R] R matrix multiplication slowdown

2017-01-27 Thread Jeff Newmiller
You are asked by the Posting Guide to provide a reproducible example and to post in plain text (because HTML gets mangled). I would guess your problem has nothing to do with multiplication, but without the code there is no way to say for sure. -- Sent from my phone. Please excuse my brevity.

[R] R matrix multiplication slowdown

2017-01-27 Thread ken eagle
Hi all. A question about performance of matrix multiplication. I have two relatively large matrices: A is 100x3072, all integers 0-255, not sparse B is 1016x3072, all integers 0-255, not sparse The command z<-B %*% t(A) works fine and takes roughly 0.2 seconds . If I add one row to B, t

Re: [R] reading file labels into R

2017-01-27 Thread PIKAL Petr
Hi Did you try ?list.files Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of WRAY > NICHOLAS > Sent: Friday, January 27, 2017 1:07 PM > To: r-help ; r-help-request project.org> > Subject: [R] reading file labels into R > > Hello R-ren

[R] Request body format is wrong. Make sure the json request is serialized correctly and there are no null members"- Text Mining With Cognitive API

2017-01-27 Thread Shivi Bhatia
Hi Team, I am building a sentiment and text mining model with R and Cognitive API. I am getting the error as mentioned in the subject: Request body format is wrong. Make sure the json request is serialized correctly and there are no null members. Can you please advice what is incorrect i am doing

[R] reading file labels into R

2017-01-27 Thread WRAY NICHOLAS
Hello R-ren I have a list of csv files in a folder which are labelled essentially in this way (actual data has scores of files) F010116, F020116, F030116 G020116, G030116, G040116, G 050116 H020116, H030116 where F G and H are engines I've got data from and the numbers are the dates. I can ma