[R] R Example scripts

2014-04-18 Thread Gene Leynes
A few years ago R changed the way help was handled so that the HTML files are no longer available in the library directory. Around that time the R example files that used to be in some of the libraries also vanished. I'm wondering where the "r-ex" folder went. Is it totally unsupported and gone?

Re: [R] problem with pip2d() from ptinpoly

2014-04-18 Thread Boris Steipe
Apparently it matters whether your polygon is defined clockwise or counterclockwise. A point outside your triangle is recognized ... > q2 <- matrix(c(594893.0,115435.0), ncol=2, byrow=T) > pip2d(Vertices = verts, Queries = q2) [1] 1 ... and defining the triangle in counterclockwise sense gives

[R] problem with pip2d() from ptinpoly

2014-04-18 Thread Waichler, Scott R
Hi, pip2d() doesn't seem to work correctly for me. I have a plot of a triangle that a query point fits inside, but the point is defined as outside the polygon by pip2d. library(ptinpoly) verts <- matrix(c(594891,115309,59,117201,594891,117201), ncol=2, byrow=T) query <- matrix(c(594885.0

Re: [R] Difference between times

2014-04-18 Thread David Winsemius
On Apr 18, 2014, at 12:59 PM, Prof Brian Ripley wrote: > On 18/04/2014 19:46, Rui Barradas wrote: >> Hello, >> >> The reason why is that you've misspelled CET (not CEST) > > Neither CET nor CEST are portable time-zone names. We have not been given > the 'at a minimum' information required by

Re: [R] Difference between times

2014-04-18 Thread Prof Brian Ripley
On 18/04/2014 19:46, Rui Barradas wrote: Hello, The reason why is that you've misspelled CET (not CEST) Neither CET nor CEST are portable time-zone names. We have not been given the 'at a minimum' information required by the posting guide, so please read ?Sys.timezone on your system.

Re: [R] Difference between times

2014-04-18 Thread Rui Barradas
Hello, The reason why is that you've misspelled CET (not CEST) > dt1 = as.POSIXct("2014-04-18 09.00", format="%Y-%m-%d %H.%M", tz = "CEST") Warning messages: 1: In strptime(x, format, tz = tz) : unknown timezone 'CEST' 2: In as.POSIXct.POSIXlt(as.POSIXlt(x, tz, ...), tz, ...) : unknown timez

Re: [R] Extracting Width and Length of Each Shape in EPS File

2014-04-18 Thread Jeff Newmiller
How are we supposed to know what you are capable of? Regardless of the answer to that, I strongly suspect that you would not find that the effort required would yield a result worth your effort. R is really an interpreted language, so your ".exe" would just be calling the R interpreter for you..

[R] Difference between times

2014-04-18 Thread Nicola Sturaro Sommacal
Hi. I am new to POSIX and I'd like to understand the reason of this difference. dt1 = as.POSIXct("2014-03-29 09.00", format="%Y-%m-%d %H.%M") dt2 = as.POSIXct("2014-03-30 09.00", format="%Y-%m-%d %H.%M") dt2-dt1 > dt1[1] "2014-03-29 09:00:00 CET"> dt2[1] "2014-03-30 09:00:00 CEST"> dt2-dt1 Time

Re: [R] Extracting Width and Length of Each Shape in EPS File

2014-04-18 Thread Muhammad Abdur Rehman Khawaja
Can I convert above code into .exe? On Fri, Apr 18, 2014 at 4:53 PM, Muhammad Abdur Rehman Khawaja < kh.m.a.reh...@gmail.com> wrote: > Thank you very much > > > > > > On Thu, Apr 17, 2014 at 4:31 AM, Paul Murrell wrote: > >> Hi >> >> Here is a demonstration that might give you some ideas ... >>

Re: [R] Extracting Width and Length of Each Shape in EPS File

2014-04-18 Thread Muhammad Abdur Rehman Khawaja
Thank you very much On Thu, Apr 17, 2014 at 4:31 AM, Paul Murrell wrote: > Hi > > Here is a demonstration that might give you some ideas ... > > library(grImport) > PostScriptTrace("flower.ps", "flower.xml") > flower <- readPicture("flower.xml") > > grid.newpage() > grid.picture(flower) > > #

[R] Mediation with multilevel data - Random slopes or not?

2014-04-18 Thread Berna Arslan Uzundağ
Hi, I have been using the mediation package in R to test for mediation in multilevel data. My data is as follows: X: continuous, M: binary, and Y: binary (Y:outcome, M: mediator) I'm testing a 1-1-1 mediation. I get different results when I use random slopes in the equations and when I don't. My

[R] plotting a 3D poisson surface with persp package

2014-04-18 Thread stè snafa
Hi everyone, I have fitted a poisson GLMM with the fallowing formula: M1 <- glmer(ID ~ DE + PR +(1 | Plot/Site), data = DATA, family = poisson) where ID = my dependent variable representing the count of a bird speciesDE = bush height (independent variable)PR = number of preys (independent variable

[R] Kmodes weighted version shows an error

2014-04-18 Thread Sneha Bishnoi
Hi All! I have a data frame consisting of categorical variables on which I wish to perform kmode clustering with 20 clusters. I am trying to use Kmodes from R package klaR. The code works fine when I set use simple distance for clustering by setting weighted=FALSE in the function kmodes. However i

Re: [R] interpreting weight in meta-analysis of proportion

2014-04-18 Thread Bernd Weiss
On 18.04.2014 13:02, petre...@unina.it wrote: > Prof. Dewey, sorry for the trivial question and many thank for the replay. > > >> Using which package? > > In this case I used the meta package, but I know that for all but the > DerSimonian-Laird method the R function rma.uni of R package metafor

Re: [R] inverse normal distribution function

2014-04-18 Thread Rolf Turner
On 18/04/14 15:13, thanoon younis wrote: dear all members i want to use inverse normal distribution in R to show the value of variable Z when Z represent the ordered categorical variables. i hope anyone gives me an example on this distribution (1) Your question makes no sense. The normal dist

Re: [R] interpreting weight in meta-analysis of proportion

2014-04-18 Thread petretta
Prof. Dewey, sorry for the trivial question and many thank for the replay. > Using which package? In this case I used the meta package, but I know that for all but the DerSimonian-Laird method the R function rma.uni of R package metafor is called internally. > What did you expect the weights to

Re: [R] NeweyWest in sandwich-package

2014-04-18 Thread Achim Zeileis
On Thu, 17 Apr 2014, Katharina Mersmann wrote: This post was nearly what I was searching for. Im actually trying to reproduce my Stata results in R and don?t overcome the problem of the NeweyWest Estimators. I have quarterly PanelData In Stata i used: newey y x, lag(4) force In R this shou

[R] inverse normal distribution function

2014-04-18 Thread thanoon younis
dear all members i want to use inverse normal distribution in R to show the value of variable Z when Z represent the ordered categorical variables. i hope anyone gives me an example on this distribution . thanks to all [[alternative HTML version deleted]] ___