Re: [R] Mac OSX Mavericks 10.9.3 Big Problem - New User

2014-07-15 Thread Ryan Dallavia
Thanks for your reply Jeff! install.packages('Lahman') was the first command typed and generated the error leading to the var directory. Here's everything else that I've got, per one of the how to ask a good question post. dput(Lahman) Error in dput(Lahman) : object 'Lahman' not found I also

Re: [R] List of Lists by for Loop

2014-07-15 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Munjal Patel Sent: Monday, July 14, 2014 8:45 PM To: r-help@r-project.org Subject: [R] List of Lists by for Loop Dear Experts, I have a one more doubt about making list of

Re: [R] Update fail

2014-07-15 Thread Prof Brian Ripley
On 15/07/2014 04:00, jwd wrote: I've been getting of an R-patched update, but running the process results in the following: File './x86_64/R-patched-devel-3.1.1-4.1.x86_64.rpm' not found on medium 'http://download.opensuse.org/repositories/devel:/languages:/R:/patched/openSUSE_13.1/' The

[R] Set file path in Biomod2

2014-07-15 Thread Johannes Radinger
Hi, I am wondering if it is possible to set the path to the output file of the function BIOMOD_Modeling() from the 'Biomod2' package. I can see the option SaveObj to state if the output should be save to the hard disk. When this is enabled, all files are printed to the working directory. So is

[R] Restricted fitting of two-component mixture distribution in R possible?

2014-07-15 Thread Johannes Moser
Dear list, In fitting a two-component Student's t mixture distribution to some data (standardized GARCH residuals) one of the components has an estimated degree of freedom of 0.6. This means that even the first moment of the mixture distribution would not exist. The gamlss.mx package in R

Re: [R] how to remove outliers

2014-07-15 Thread Bert Gunter
No! Do not do this. First, the syntax is wrong. Second, this will fail in general due to floating point arithmetic. Use inequality with sufficient fuzz instead. e.g. time - time[time$TimeDiff 14478,] Moral: Caveat Emptor. Free advice may be worth exactly that. Cheers, Bert Bert Gunter

Re: [R] canonical correlation

2014-07-15 Thread Monaly Mistry
Dear Michael, Thank you very much. I was looking into this as well. Best, Monaly On Jul 14, 2014 10:43 PM, Michael Friendly frien...@yorku.ca wrote: Perhaps what you are looking for is the visualization methods for canonical correlation provided in the candisc package. see ?candisc::cancor

Re: [R] two questions - function help and 32vs64 bit sessions

2014-07-15 Thread Fowler, Mark
Hi Jim, Thought I tried that. Just have one session running currently, started yesterday, help still linked. I'll wait for the link to expire and confirm. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Jim Lemon Sent: July 15, 2014

[R] Meaningfulness of applying the delta method (sensu alr3)...

2014-07-15 Thread Eduardo Esteves
Dear All, I think this is a general stat plus R-related question. Firstly, the 'problem': I fitted non-linear (exponential-type) models to moisture ratio-time data using nls(); one of its parameters, k, is commonly designated as the constant of drying rate (the other are less important); in

[R] Reading SQL data - all at once, or as needed?

2014-07-15 Thread John McKown
I have some data in an SQL data base (PostgreSQL to be exact). This data base (one table in particular) has a lot of data in it. Years worth, in fact (2.3 million rows since 2012). That just for background. My question is: If I am going to create 5 separate graphs, one graph for each of the

[R] Granger causality test using VECM in R

2014-07-15 Thread Velimir Gordic
Hi I am trying to compute the Granger causality test using the Vector Error Correction Model (VECM) in R. I calculated the VECM in R using tsDyn package. Since I have I(1) and cointegrated variables, VECM is assumed to implement the Granger causality test. However I didn't find any function in

Re: [R] Reading SQL data - all at once, or as needed?

2014-07-15 Thread Jeff Newmiller
The actual answer (which way is faster) in general can go either way depending how much data you extract and how well optimized the SQL queries and indexes are. The amount of data you mention fit one or give weeks seems small for most modern computers, though (you did not mention how many

Re: [R] Cutting hierarchical cluster tree at specific height fails

2014-07-15 Thread jlh.membership
Hi Johannes, Looking at the code for cutree(...), if h is provided but not k, then cutree(...) calculates k from h and calls a C function with k to cut the tree (but all this only if height is sorted). So we can short circuit the test this way: cutree.h - function(tree,h) { # this line

Re: [R] Determine the order of Time series

2014-07-15 Thread Richard M. Heiberger
Yes, of course. Please look at the tsdiagplot function in the HH package. install.packages(HH) ## if you don't have it yet ?tsdiagplot The example shows 0p3 and 0q3 You can change that to 6 and 10 with X.loop - arma.loop(X, order=c(6,0,10)) ## The example dataset gives warnings and trapped

Re: [R] how to remove outliers

2014-07-15 Thread S Ellison
The outlier is a maximum value, so which.max() is likely to be useful time - time[-which.max(time$TimeDiff ),] should work reliably. S Ellison -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Bert Gunter Sent: 15 July 2014

[R] request of information about creating DLL from R to be used in other languages/programs

2014-07-15 Thread Ludovic Brossard
Hello My question is the following. I have tried to find a similar subject in archives but not found (perhaps bad search!). One of my colleague wrote a R code combining some R functions to create a method of calculation. I would want to use this in a program coded in Delphi. Is there

[R] Help with Download of a comma separated file in zip format

2014-07-15 Thread Electron Musketeer
Dear Experts I am new to this forum and to R and was trying the following to access a zip file from the webpages of the NSE. Here is my code. temp - tempfile() download.file( http://www.nseindia.com/content/historical/DERIVATIVES/2014/JUL/fo09JUL2014bhav.csv.zip ,temp) con - unz(temp, a1.dat)

Re: [R] Cutting hierarchical cluster tree at specific height fails

2014-07-15 Thread David L Carlson
I believe you can accomplish this without modifying cutree by analyzing the cluster heights before calling cutree. First generate the data setting the random seed so we are all looking at the same thing: set.seed(42) x - c(rnorm(100,50,10),rnorm(100,200,25),rnorm(100,80,15)) y -

Re: [R] Cutting hierarchical cluster tree at specific height fails

2014-07-15 Thread Peter Langfelder
Hi Johannes, you mentioned dynamicTreeCut - the dynamic hybrid method works fine on your data. Just supply the dissimilarity matrix as well: I use the function plotDendroAndColors from WGCNA to show the results; if you don't want to use WGCNA, just leave out the last call. library(WGCNA)

Re: [R] Help with Download of a comma separated file in zip format

2014-07-15 Thread Jeff Newmiller
Circumventing content protection measures or picky server configurations such as this appears to be tends to involve HTTP protocol details that are off topic here, though someone may tackle your problem anyway and report back. Once you know what your protocol needs are (perhaps with the help of

Re: [R] request of information about creating DLL from R to be used in other languages/programs

2014-07-15 Thread Jeff Newmiller
Possible, but almost certainly not worth it. R is an interpreted language, and the dll would have to encapsulate the whole shebang. --- Jeff NewmillerThe . . Go Live...

Re: [R] Help with Download of a comma separated file in zip format

2014-07-15 Thread Ista Zahn
Not an R question, but see https://addons.mozilla.org/en-US/firefox/addon/cliget/ for an easy way to see what what is going on under the hood when you download using firefox. For your example I get wget --header='Host: www.nseindia.com' --header='User-Agent: Mozilla/5.0 (X11; Linux x86_64;

Re: [R] Determine the order of Time series

2014-07-15 Thread Richard M. Heiberger
I am returning this email thread to the list. Yes, of course. X.diagplot$resid X.diagplot$aic X.diagplot$acf X.diagplot$pacf X.diagplot$gof On Tue, Jul 15, 2014 at 2:14 PM, 张天添 pennytia...@hotmail.com wrote: Hi Rich, Thank you for your quick reply. I wonder if it is possible to view the

Re: [R] List of Lists in For Loop

2014-07-15 Thread Adams, Jean
Munjal, Something like this should work: Digits = c(20, 30, 40, 50, 60) result = vector(length(Digits), mode=list) names(result) = Digits for(j in seq(Digits)) { a = vector(Digits[j], mode=list) b = vector(Digits[j], mode=list) for(i in 1:Digits[j]) { #Do Calculation a[[i]] = data.frame()

Re: [R] request of information about creating DLL from R to be used in other languages/programs

2014-07-15 Thread Ludovic.Brossard
Thanks for the answer. If it is possible, could you indicate me how to proceed? or what would be the best alternative? Regard Ludovic Brossard Jeff Newmiller jdnew...@dcn.davis.ca.us a écrit : Possible, but almost certainly not worth it. R is an interpreted language, and the dll would have

[R] Error with named definition argument to match.call

2014-07-15 Thread David Winsemius
The help page says: Calling match.call outside a function without specifying definition is an error. And yet when I send a function with a 'definition' argument it errors: g function(x, y=NULL, z=NULL) invisible(NULL) match.call(definition=g) Error in match.call(definition, call,

Re: [R] Mac OSX Mavericks 10.9.3 Big Problem - New User

2014-07-15 Thread David Winsemius
On Jul 14, 2014, at 10:37 PM, Ryan Dallavia wrote: Thanks for your reply Jeff! install.packages('Lahman') was the first command typed and generated the error leading to the var directory. Here's everything else that I've got, per one of the how to ask a good question post. There are

Re: [R] Error with named definition argument to match.call

2014-07-15 Thread William Dunlap
Does it make sense to call match.call outside of a function without specifying both the function definition and the call to the function? I agree that the error message is misleading. Also, the return value when call is not supplied does not seem useful, although it is possible that it is correct

Re: [R] Error with named definition argument to match.call

2014-07-15 Thread David Winsemius
On Jul 15, 2014, at 5:04 PM, William Dunlap wrote: Does it make sense to call match.call outside of a function without specifying both the function definition and the call to the function? My puzzlement came from the different response to these two commands: match.call(g)

Re: [R] Error with named definition argument to match.call

2014-07-15 Thread William Dunlap
So you are saying to make sense this would need to be match.call(definition=g , call=quote(g(1)) ) g(x = 1) Yes. What would you expect to get from match.call() outside of a function if you don't give it a call argument? It uses the default value for 'call', sys.call(sys.parent()), but

Re: [R] request of information about creating DLL from R to be used in other languages/programs

2014-07-15 Thread Jeff Newmiller
You want algorithms compiled into a dll... I am satisfied with R in its current form, so I am not a particularly good guide for you. If you wish to continue with the wrapping-R approach then you should read the Writing R Extensions document that comes with R, and study R-devel mailing list

Re: [R] Help with Download of a comma separated file in zip format

2014-07-15 Thread Electron Musketeer
Many thanks Ista. I will try other routes as well. Thanks Jeff and sorry for posting without abiding by the rules. Thanks James. I would rather automate this than download manually everytime. That is my intent. Best Balaji On Tue, Jul 15, 2014 at 7:16 PM, Ista Zahn istaz...@gmail.com wrote: