[R] Changing column names by unique factor levels

2015-12-19 Thread Abhinaba Roy
Hi R helpers, I am stuck with a very strange problem. My input data is structure(list(Date = structure(c(1447007400, 1447007400, 1447093800, 1447093800), tzone = "", class = c("POSIXct", "POSIXt")), Prod = c("Colg", "P", "Colg", "P"), Amt = c(57, 11, 62, 77), Amt1 = c(86, 72, 20, 23), Amt2 =

Re: [R] Changing column names by unique factor levels

2015-12-19 Thread Bert Gunter
1. Why do you think this is a "very strange" problem? 2. Your minimal example is helpful, but confusing: the entries in the 2nd table appear to have nothing to do with the first. I'll assume that it's just the *form* that you want to show. Also, your specification may be incomplete: Do the rows

[R] Use of "file.choose()" or "change working directory" tab causing stall on Mac

2015-12-19 Thread Vinny Mo
Hello, I used to use the "file.choose()" command quite a lot, as well as the "change working directory" drop down tab as part of my workflow with R, but for over 1 year both of these actions have caused the spinning-wheel to crash R (just R, not any other program). The issue seems to happen

Re: [R] error in vcovNW

2015-12-19 Thread Saba Sehrish via R-help
Hi Thanks for the reminder. Actually I want to analyse whether present value of variable A is Granger caused by lag values of B and test linear hypothesis "B1,B2,B3,B4,B5=0". Therefore, to get robust standard error NeweyWest estimates are applied. Saba On Saturday, 19 December 2015, 23:26,

Re: [R] error in vcovNW

2015-12-19 Thread Achim Zeileis
On Sat, 19 Dec 2015, Saba Sehrish wrote: Thank you. The issue is resolved by scaling the data in millions. That solves the numerical problem but the second issue (inappropriateness of the Newey-West estimator for an autoregressive model) persists. Saba On Saturday, 19 December 2015,

Re: [R] introduce axis break lattice plot multipanel

2015-12-19 Thread Duncan Mackay
Hi Luigi I suppose a cheats way out would be to put scales = list(alternating = FALSE, x = list(relation = "free") ), Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au