Re: [R] Mysterious seg fault --- SOLVED

2018-08-14 Thread Chris Evans
Ah, if I'd had a fortune for every time I invoked the wrath of the IT gods and the malicious work of their gremlins, I'd be an obscenely wealthy person by now. More seriously, I can't tell you how much I appreciate the joyous flickers of humour here, amidst all the pain and suffering (yes, I may

Re: [R] Mysterious seg fault --- SOLVED

2018-08-14 Thread Rolf Turner
On 15/08/18 13:00, Richard M. Heiberger wrote: There is no explanation other than gremlins and the malevolence that the computer gods hold towards me. fortune nomination. I demur. I already have a fortune with gremlins in it attributed to me (fortune(213)). cheers, Rolf -- Technical Editor

Re: [R] Mysterious seg fault --- SOLVED

2018-08-14 Thread Richard M. Heiberger
There is no explanation other than gremlins and the malevolence that the computer gods hold towards me. fortune nomination. On Tue, Aug 14, 2018 at 7:12 PM, Rolf Turner wrote: > On 14/08/18 23:01, peter dalgaard wrote: >> >> Hmm, >> >>> .Fortran(stats:::C_setsmu, as.integer(0)) >> >> [[1]] >> [1

Re: [R] Spline function

2018-08-14 Thread Duncan Murdoch
On 14/08/2018 11:48 AM, Tania Morgado Garcia wrote: Hello everyone. I'm new to R and I'm using spline functions. With the command splinefun (x, y) I get the function of interpolating the values x and y. Later, I can evaluate that function for values of x by obtaining the respective values of y.

Re: [R] Mysterious seg fault --- SOLVED

2018-08-14 Thread Rolf Turner
On 14/08/18 23:01, peter dalgaard wrote: Hmm, .Fortran(stats:::C_setsmu, as.integer(0)) [[1]] [1] 0 .Fortran(stats:::C_setsmu, as.integer(fumble)) Error: object 'fumble' not found .Fortran(stats:::C_setsmu, fumble=as.integer(fumble)) Error: object 'fumble' not found .Fortran(stats:::C_se

Re: [R] [FORGED] Spline function

2018-08-14 Thread Rolf Turner
On 15/08/18 03:48, Tania Morgado Garcia wrote: Hello everyone. I'm new to R and I'm using spline functions. With the command splinefun (x, y) I get the function of interpolating the values x and y. Later, I can evaluate that function for values of x by obtaining the respective values of y. T

Re: [R] Spline function

2018-08-14 Thread Greg Snow
The uniroot function can be used to find a value in a specified interval, if it exists. On Tue, Aug 14, 2018 at 3:30 PM Tania Morgado Garcia wrote: > > Hello everyone. I'm new to R and I'm using spline functions. With the > command splinefun (x, y) I get the function of interpolating the values x

Re: [R] Spline function

2018-08-14 Thread Bert Gunter
If I understand correctly, not in general possible. Suppose for a bunch of different x's the y's are all constant =0. What x would correspond to y = 1. Or suppose (x,y) pairs trace a sine function over several periods. Then there is no unique x corresponding to y = .5, say. Perhaps if you more e

[R] Spline function

2018-08-14 Thread Tania Morgado Garcia
Hello everyone. I'm new to R and I'm using spline functions. With the command splinefun (x, y) I get the function of interpolating the values x and y. Later, I can evaluate that function for values of x by obtaining the respective values of y. The point is that I need the inverse operation, with t

[R] FPMC?

2018-08-14 Thread Charles Determan
Greetings R users, I recently came across an interesting paper regarding recommender systems. The particular method defined in the manuscript was Factorizing Personalized Markov Chains. You can find the article in question here ( http://www.ra.ethz.ch/cdstore/www2010/www/p811.pdf). I am curious

Re: [R] Changing PDF orientation midstream

2018-08-14 Thread J C Nash
Not an R issue, but for linux users pdf-shuffler is a great tool JN On 2018-08-14 03:46 PM, Stats Student wrote: > Hi, I'm wondering whether it is possible to change the orientation of the PDF > in the middle of the document. In other words, pages 1,2,3 - portrait, pages > 4,5 - landscape, etc.

Re: [R] Changing PDF orientation midstream

2018-08-14 Thread Bert Gunter
1. Probably not. But I'm no pdf expert. 2. This adobe thread may be relevant: https://forums.adobe.com/thread/1091826 Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom C

[R] Changing PDF orientation midstream

2018-08-14 Thread Stats Student
Hi, I'm wondering whether it is possible to change the orientation of the PDF in the middle of the document. In other words, pages 1,2,3 - portrait, pages 4,5 - landscape, etc. This is how I call it - pdf (file, paper="US") or USr for landscape Thanks! _

Re: [R] Request for help with R program

2018-08-14 Thread Bert Gunter
R has no "associates". It is open source software with many users and developers with varying skill levels and interests. I think you are in over your head ("inexperienced in computer programming") and should seek local resources at Baylor to help you. This list probably cannot provide the level o

Re: [R] Cannot set correct miktex path for pdflatex

2018-08-14 Thread Richard M. Heiberger
You are getting the correct version. R is using the 8.3 version of the path. MS DOS often can't handle long MS Windows pathnames, particularly with blank space characters. MS therefore provides an 8.3 equivalent for all long names. C:\>dir /x prog* dir /x prog* Volume in drive C has no label. V

Re: [R] Fast matrix multiplication

2018-08-14 Thread Ravi Varadhan
Does Microsoft open R come with pre-compiled BLAS that is optimized for matrix computations? Thanks, Ravi -Original Message- From: Ista Zahn Sent: Monday, August 13, 2018 3:18 PM To: Ravi Varadhan Cc: r-help@r-project.org Subject: Re: [R] Fast matrix multiplication On Mon, Aug 13, 2

Re: [R] Fast matrix multiplication

2018-08-14 Thread Ista Zahn
On Tue, Aug 14, 2018 at 9:41 AM Ravi Varadhan wrote: > > Does Microsoft open R come with pre-compiled BLAS that is optimized for > matrix computations? Yes, see https://mran.microsoft.com/rro#intelmkl1 for details. --Ista > > Thanks, > Ravi > > -Original Message- > From: Ista Zahn > S

Re: [R] Mysterious seg fault --- SOLVED

2018-08-14 Thread peter dalgaard
Hmm, > .Fortran(stats:::C_setsmu, as.integer(0)) [[1]] [1] 0 > .Fortran(stats:::C_setsmu, as.integer(fumble)) Error: object 'fumble' not found > .Fortran(stats:::C_setsmu, fumble=as.integer(fumble)) Error: object 'fumble' not found > .Fortran(stats:::C_setsmu, nphi=as.integer(nphi)) Error: objec

Re: [R] Assistance on Installing Rattle

2018-08-14 Thread Michael Dewey
Dear Shivi The current version is on CRAN so why not use that? install.packages("RGtk2") should install version 2.30.35 If it does not then try another mirror Michael On 13/08/2018 19:47, Shivi Bhatia wrote: Hi Michael Thank you for the reply. I have been looking for 3.5.1 version of this pa

Re: [R] searching for a specific row name in R

2018-08-14 Thread Rui Barradas
Hello, If you have one hundred identifier names that you want to check the result of id %in% column will have length 100, the same as length(id). If you want a shorter result you can do which(id %in% column) This will give you only the TRUE values. Hope this helps, Rui Barradas Às 05:16

Re: [R] Prevent Printing Function's Environment

2018-08-14 Thread Martin Maechler
> Abs Spurdle > on Tue, 14 Aug 2018 15:16:08 +1200 writes: > Hi All > When you print a function constructed within a function, R > prints it's environment. For example: > > myfunction = function () > + { f = function () NULL > + attributes (f) = lis

Re: [R] Prevent Printing Function's Environment

2018-08-14 Thread Rui Barradas
Hello, I am not sure I understand the question. You say that One way to prevent this [to print the attributes] is to set the function's environment to the global environment. But this is not true, just see the example below, where I set the function's environment to .GlobalEnv myfunction2

[R] Prevent Printing Function's Environment

2018-08-14 Thread Abs Spurdle
Hi All When you print a function constructed within a function, R prints it's environment. For example: > myfunction = function () + { f = function () NULL + attributes (f) = list (class="myfunction", myattribute=1) + f + } > myfunction.f = myfunction () > myfunction.f function () NUL

[R] Request for help with R program

2018-08-14 Thread Spencer Brackett
Good evening, I am a high school research student who is partnering with Baylor University (TX) on a Genomic research project, and was seeking to use the R program to analysis our data— which is from GDC database. R-3.5.1 is currently downloaded onto my Windows PC and I am looking to download th

Re: [R] Cannot set correct miktex path for pdflatex

2018-08-14 Thread Eric Berger
Hi Claire, In Unix (linux) the 'which' command is documented as searching for the command according to the PATH environment variable. The different results from $ which and > Sys.which() would point to the fact that the PATH variable is different in the two cases. Compare: $ echo $PATH versus Sy

Re: [R] Assistance on Installing Rattle

2018-08-14 Thread Shivi Bhatia
Hi Michael Thank you for the reply.I have been looking for 3.5.1 version of this package but I cannot find one, would you recommend downgrading my current R version. Would there be some or any other compatibly issue - please advice.  Thank you, Shivi  Sent from Yahoo Mail for iPhone On Monday