[R] A new environment within the main function

2014-09-21 Thread billy am
Hi Everyone , I am having an issue with the following code and would need kind assistant. For a specific reason , I would need to create a new environment for variables within the function and use them and I am having issue with it on the project I am doing. The issue is that no matter what I

[R] puzzled by time zone quirk

2014-09-21 Thread Denis Chabot
Hi, I have to deal with time-stamped data coming from outside my own time zone, so the problem is likely poor knowledge of European time zones on my part. But I am puzzled just the same. I thought that setting a time zone of Europe/Copenhagen would be the same as CET in winter and CEST in

Re: [R] puzzled by time zone quirk

2014-09-21 Thread Prof Brian Ripley
On 21/09/2014 14:11, Denis Chabot wrote: Hi, I have to deal with time-stamped data coming from outside my own time zone, so the problem is likely poor knowledge of European time zones on my part. But I am puzzled just the same. I thought that setting a time zone of Europe/Copenhagen would be

Re: [R] puzzled by time zone quirk

2014-09-21 Thread Denis Chabot
Sorry, I had not posted in a long time and I remembered this as I pushed the send button. And I am not surprised that I thought wrong! I'll start with the missing information: sessionInfo() R version 3.0.2 (2013-09-25) Platform: x86_64-apple-darwin10.8.0 (64-bit) locale: [1]

Re: [R] puzzled by time zone quirk

2014-09-21 Thread Prof Brian Ripley
You neglected to update before posting as required by the posting guide. R 3.0.2 is far from current, and on OS X the timezone internals were replaced in R 3.1.x (the previous version did not handle 64-bit time_t correctly, even though that is what OS X uses). And the documentation is

Re: [R] puzzled by time zone quirk

2014-09-21 Thread Denis Chabot
Hi again, With the new installation: R version 3.1.1 (2014-07-10) Platform: x86_64-apple-darwin13.1.0 (64-bit) locale: [1] fr_CA.UTF-8/fr_CA.UTF-8/fr_CA.UTF-8/C/fr_CA.UTF-8/fr_CA.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via

Re: [R] A new environment within the main function

2014-09-21 Thread Duncan Murdoch
On 21/09/2014, 9:06 AM, billy am wrote: Hi Everyone , I am having an issue with the following code and would need kind assistant. For a specific reason , I would need to create a new environment for variables within the function and use them and I am having issue with it on the project I

[R] About the unit of shapefile and raster

2014-09-21 Thread Xijia Liu
Dear Roger, I want to make a raster for my shapefile. I am try to apply function rasterize. However I get a problem of the unit of plot. If I make a plot for my shapefile, then the unit is degree. However, when I apply raster() and make a plot for it, the unit is not degree. Please see the

[R] CRAN (and crantastic) updates this week

2014-09-21 Thread Crantastic
CRAN (and crantastic) updates this week New packages * adaptDA (1.0) Maintainer: Charles Bouveyron Author(s): Charles Bouveyron License: GPL-2 http://crantastic.org/packages/adaptDA The adaptive mixture discriminant analysis (AMDA) allows to adapt a model-based

Re: [R] A new environment within the main function

2014-09-21 Thread David Winsemius
On Sep 21, 2014, at 6:06 AM, billy am wrote: Hi Everyone , I am having an issue with the following code and would need kind assistant. For a specific reason , I would need to create a new environment for variables within the function and use them and I am having issue with it on the

[R] Help with R solve

2014-09-21 Thread Lio, Yuhlong
I need someone to help with solution for a system of linear equations A%*%x =b, where A is the coefficient matrix and b is right hand-side constant column. My question is that is there any option in the qr.solve to get a non-negative solution for x column, when more than one possible

[R] bivariate ordered probit model

2014-09-21 Thread Murtaza Haider
Dear colleagues: I am searching for an R package that could estimate a bivariate ordered probit model. I am aware of the bivariate probit model in R: http://cran.r-project.org/web/packages/ZeligChoice/vignettes/ZeligChoice-manual.pdf However, I am searching for a model that is similar to the

Re: [R] Help with R solve

2014-09-21 Thread Jeff Newmiller
This question is about linear algebra theory, or perhaps linear programming, not about R. There is no magic parameter to solve this for you... either there is a non-negative solution or there isn't. --- Jeff Newmiller