Re: [R] grofit package problem inputting dataset

2014-08-09 Thread Jeff Newmiller
Your csv output doesn't have any commas in it. Your email is in HTML format so we cannot trust it to show what is really there (read the Posting Guide). The sink function forwards stuff that would have been printed to a file, but that isn't a particularly good way to exchange data with other

Re: [R] Logical operators and named arguments

2014-08-09 Thread Prof Brian Ripley
On 09/08/2014 01:10, Joshua Wiley wrote: On Sat, Aug 9, 2014 at 9:56 AM, Patrick Burns pbu...@pburns.seanet.com wrote: On 07/08/2014 07:21, Joshua Wiley wrote: Hi Ryan, It does work, but the *apply family of functions always pass to the first argument, so you can specify e2 = , but not e1

[R] Possible pair of 2 binary vectors

2014-08-09 Thread Ron Michael
Hi, Let say I have 2 binary vectors of length 'd', therefore both these vectors can take only 0-1 values. Now I want to simulate all possible pairs of them. Theoretically there will be 4^d possible pairs. Is there any R function to directly simulate them? Thanks for your help.

[R] R Package for Text Manipulation

2014-08-09 Thread Omar André Gonzáles Díaz
Hi all, I want to know, where i can find a package to simulate the functions Search and Replace and Find Words that contain - replace them with..., that we can use in EXCEL. I've look in other places and they say: Reshape2 by Hadley Wickham. How ever, i've investigated it and its not exactly

Re: [R] Possible pair of 2 binary vectors

2014-08-09 Thread Jorge I Velez
Dear Ron, What about this? set.seed(123) d - 4 x1 - sample(0:1, d, TRUE) x2 - sample(0:1, d, TRUE) x1 x2 expand.grid(x1 = x1, x2 = x2) See ?expand.grid for more information. Best, Jorge.- On Sat, Aug 9, 2014 at 7:46 PM, Ron Michael ron_michae...@yahoo.com wrote: Hi, Let say I have 2

Re: [R] R Package for Text Manipulation

2014-08-09 Thread Gabor Grothendieck
On Sat, Aug 9, 2014 at 8:15 AM, Omar André Gonzáles Díaz oma.gonza...@gmail.com wrote: Hi all, I want to know, where i can find a package to simulate the functions Search and Replace and Find Words that contain - replace them with..., that we can use in EXCEL. I've look in other places and

Re: [R] Installing manual package problem

2014-08-09 Thread Ista Zahn
If you just want to install the package from github, the easy way is to first install the devtools package and use the install_github function. Best, Ista On Aug 8, 2014 4:21 PM, James Holland holland.ag...@gmail.com wrote: Running R 3.03 on Windows 7 I am trying to install a package from a

Re: [R] Installing manual package problem

2014-08-09 Thread James Holland
Thank you all, I didn't know about the install_github function. Sorry, forgot to switch to plain text On Sat, Aug 9, 2014 at 10:11 AM, Ista Zahn istaz...@gmail.com wrote: If you just want to install the package from github, the easy way is to first install the devtools package and use the

Re: [R] Installing manual package problem

2014-08-09 Thread Uwe Ligges
On 09.08.2014 17:40, James Holland wrote: Thank you all, I didn't know about the install_github function. Sorry, forgot to switch to plain text On Sat, Aug 9, 2014 at 10:11 AM, Ista Zahn istaz...@gmail.com wrote: If you just want to install the package from github, the easy way is to first

Re: [R] R Package for Text Manipulation

2014-08-09 Thread David Winsemius
On Aug 9, 2014, at 5:15 AM, Omar André Gonzáles Díaz wrote: Hi all, I want to know, where i can find a package to simulate the functions Search and Replace and Find Words that contain - replace them with..., that we can use in EXCEL. I've look in other places and they say: Reshape2 by

[R] loops with assign() and get()

2014-08-09 Thread Laura Villegas Ortiz
Dear all, I was able to create 102 distinct dataframes (DFs1, DFs2, DFs3, etc) using the assign() in a loop. Now, I would like to perform the following transformation for each one of these dataframes: df1=DFs1[1,] df1=df1[,1:3] names(df1)=names(DFs1[c(1,4,5)]) df1=rbind(df1,DFs1[c(1,4,5)])

[R] Reading chunks of data from a file more efficiently

2014-08-09 Thread Waichler, Scott R
Hi, I have some very large (~1.1 GB) output files from a groundwater model called STOMP that I want to read as efficiently as possible. For each variable there are over 1 million values to read. Variables are not organized in columns; instead they are written out in sections in the file,

Re: [R] loops with assign() and get()

2014-08-09 Thread William Dunlap
I was able to create 102 distinct dataframes (DFs1, DFs2, DFs3, etc) using the assign() in a loop. The first step to making things easier to do is to put those data.frames into a list. I'll call it DFS and your data.frames will now be DFs[[1]], DFs[[2]], ..., DFs[[length(DFs)]]. DFs -

Re: [R] Reading chunks of data from a file more efficiently

2014-08-09 Thread Jeff Newmiller
Informally abbreviating data is not recommended... I faked some, but would appreciate if you would make your example reproducible next time. All I really did for performance was use the data you read in rather than re-scanning the file. # generated by using dput() lines - c(X-Direction Node

[R] Time series analysis for a large number of series

2014-08-09 Thread Trevor Miles
I have over 8000 time series that I need to analyze and forecast. Running 1500 takes over 2 hours using just ETS, let alone Holt-Winters and ARIMA. So I am looking at ways in shrinking the time to generate a 2 year forecast. The code I am using successfully to run through the time series