Re: [R] Drop matching lines from readLines

2010-10-14 Thread Santosh Srinivas
I guess invert does the trick. For recording ... example .. file - grep(Repurchase Price,file, fixed = TRUE, invert = TRUE) -Original Message- From: Santosh Srinivas [mailto:santosh.srini...@gmail.com] Sent: 14 October 2010 11:28 To: 'r-help' Subject: Drop matching lines from readLines

Re: [R] Plotting by Group

2010-10-14 Thread Dieter Menne
Ado wrote: My data: XYSpecies Group 0 0A1 .. A1 .. A1 I want to plot X vs Y for each species onto the same

[R] R and Oracle

2010-10-14 Thread siddharth . garg85
Hi Can someone please help me with connecting to oracle via R. I have been trying to use ROracle but its giving me a lot of trouble because of pro*c. ThanksRegards Siddharth Sent on my BlackBerry® from Vodafone __ R-help@r-project.org mailing list

[R] GridR error

2010-10-14 Thread Elizabeth Purdom
Hi, I am trying to use 'GridR' package for the first time, and I'm running into a strange error from grid.check: grid.check(gridFun) Error in exists(add) : invalid first argument After playing around in recover mode, I see that this because the variable 'add' created by grid.check is blank:

Re: [R] Boxplot has only one whisker

2010-10-14 Thread tom
You should provide raw data to boxplot(), not summary stats. If you want to input summary stats, there was a post some time ago on that: http://finzi.psych.upenn.edu/Rhelp10/2010-September/251674.html \quoate Overwriting $stats did the job for me. I wanted to show the effect of using

[R] Replacing N.A values in a data frame

2010-10-14 Thread Santosh Srinivas
Hello, I have a data frame as below ... in cases where I have N.A. I want to use an average of the past date and next date .. any help? 13/10/2010 A 23 13/10/2010 B 12 13/10/2010 C 124 14/10/2010 A 43 14/10/2010 B 54 14/10/2010 C

[R] robust standard errors for panel data - corrigendum

2010-10-14 Thread Millo Giovanni
Hello again Max. A correction to my response from yesterday. Things were better than they seemed. I thought it over, checked Arellano's panel book and Driscoll and Kraay (Rev. Econ. Stud. 1998) and finally realized that vcovSCC does what you want: in fact, despite being born primarily for

[R] Adding legend to lda-plot, using the MASS-package

2010-10-14 Thread Arve Lynghammar
Hi everyone! I'm going to analyze the attached data set, but I'm not able to add the correct legend. In other words, I can't see which species is which. http://r.789695.n4.nabble.com/file/n2994991/test_discriminant_anal_alle.xls test_discriminant_anal_alle.xls This is my commands: data-

Re: [R] Data Gaps

2010-10-14 Thread dpender
Thanks Dennis. One more thing if you don't mind. How to I abstract the individual H and T “arrays” from f(m,o,l) so as I can combine them with a date/time array and write to a file? Sorry if it’s a simple question but I’m completely new to R. Cheers, Doug -- View this message

[R] spatial partition

2010-10-14 Thread ogbos okike
Hi everybody, I have a huge longitude and latitude data. I have used raster package to get the since of its global distribution. But I wish to display the information using a few points on the world map. The data is of the form: 95.2156 0.8312 -65.3236 -3.3851 -65.2364 -3.2696 -65.2349 -3.2679

Re: [R] (no subject)

2010-10-14 Thread Michael Bedward
Hello Julia, I'm afraid your code had multiple problems: variables declared but not used, incorrect or unnecessary use of the c function, out-of-bounds subscripts and overwriting of result objects. Rather than point them all out in detail I've modified your code so that it works (see below).

Re: [R] Data Gaps

2010-10-14 Thread Dennis Murphy
Hi: The essential problem is that after you append items, the result is a list with possibly unequal lengths. Trying to convert that into a data frame by the 'usual' methods (do.call(rbind, ...) or ldply() in plyr) didn't work (as anticipated). One approach is to initialize a maximum size matrix

[R] rounding issues

2010-10-14 Thread Federico Calboli
Hi All, I'm running the now almost-to-be upgraded R 2.11.1 on a Intel Mac, and on a Ubuntu machine, but the problem I see is the same. I noticed the following behaviour: 407585.91 * 0.8 [1] 326068.7 -- the right asnwer is 326068.728 round(407585.91 * 0.8, 2) [1] 326068.7 -- same issue

Re: [R] spatial partition

2010-10-14 Thread Michael Bedward
Some quick ideas... One very easy way would be to round them all to integer degrees and remove the duplicates - or even just let the duplicates overwrite each other in the plot. A step up from that would be to create a matrix at some resolution (e.g. 180 x 360 for a 1 degree global grid) and

Re: [R] rounding issues

2010-10-14 Thread Ted Harding
On 14-Oct-10 09:43:53, Federico Calboli wrote: Hi All, I'm running the now almost-to-be upgraded R 2.11.1 on a Intel Mac, and on a Ubuntu machine, but the problem I see is the same. I noticed the following behaviour: 407585.91 * 0.8 [1] 326068.7 -- the right asnwer is 326068.728 You

[R] Hash fuctions library for R?

2010-10-14 Thread Uwe Ziegenhagen
Hi, I would like to calculate various hash sums for given string but haven't found a suitable package, yet. I found tools::md5sum which works only for files, however I would like to avoid putting my string in a file before calculating the hash. Thanks, Uwe -- Uwe Ziegenhagen

Re: [R] robust standard errors for panel data - corrigendum

2010-10-14 Thread max . e . brown
Hi Giovanni, thanks! This seems to be exactly what I was looking for! Max __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] Drop matching lines from readLines

2010-10-14 Thread Mike Marchywka
From: santosh.srini...@gmail.com To: r-help@r-project.org Date: Thu, 14 Oct 2010 11:27:57 +0530 Subject: [R] Drop matching lines from readLines Dear R-group, I have some noise in my text file (coding issues!) ... I imported a 200 MB text file

Re: [R] Memory not mapped when using .C, problem in Mac but not in Linux

2010-10-14 Thread David
Thank you, William and Berend, for your thorough replies. I have still the habit of setting long int variables because, when I first learnt C, the manual said that int could be up to around 3.2e4. But I suppose that, in systems from 32 bits, an int number can be much larger, isn't it? - which

Re: [R] Hash fuctions library for R?

2010-10-14 Thread Hans W Borchers
Uwe Ziegenhagen ziegenhagen at gmail.com writes: Hi, I would like to calculate various hash sums for given string but haven't found a suitable package, yet. I found tools::md5sum which works only for files, however I would like to avoid putting my string in a file before calculating the

Re: [R] R and Oracle

2010-10-14 Thread Marc Schwartz
On Oct 14, 2010, at 12:45 AM, siddharth.gar...@gmail.com wrote: Hi Can someone please help me with connecting to oracle via R. I have been trying to use ROracle but its giving me a lot of trouble because of pro*c. ThanksRegards Siddharth You have not provided sufficient information

Re: [R] Replacing N.A values in a data frame

2010-10-14 Thread Henrique Dallazuanna
If I understand you can use approxfun: DF - read.table(textConnection( 13/10/2010 A 23 13/10/2010 B 12 13/10/2010 C 124 14/10/2010 A 43 14/10/2010 B 54 14/10/2010 C 65 15/10/2010 A 43 15/10/2010 B N.A.

Re: [R] Building ragged dataframe (was Re: Data Gaps)

2010-10-14 Thread dpender
The H and T values come form the same recording so the gaps that require filling in H are the same as those in T. Therefore the lists will never be of unequal lengths and I can abstract the list to an array using array(unlist(H)) which is a lot simpler. My fault for not clarifying!

Re: [R] Replacing N.A values in a data frame

2010-10-14 Thread Gabor Grothendieck
On Thu, Oct 14, 2010 at 4:17 AM, Santosh Srinivas santosh.srini...@gmail.com wrote: Hello,  I have a data frame as below ... in cases where I have N.A. I want to use an average of the past date and next date .. any help? 13/10/2010      A       23 13/10/2010      B       12 13/10/2010      C

Re: [R] Poisson Regression

2010-10-14 Thread Michael Friendly
On 10/13/2010 4:50 PM, Antonio Paredes wrote: Hello everyone, I wanted to ask if there is an R-package to fit the following Poisson regression model log(\lambda_{ijk}) = \phi_{i} + \alpha_{j} + \beta_{k} i=1,\cdots,N (subjects) j=0,1 (two levels) k=0,1 (two levels) treating the \phi_{i} as

Re: [R] Replacing N.A values in a data frame

2010-10-14 Thread Santosh Srinivas
Wow! That’s Amazing! Many thanks! When I do the below ... why do the column names get thrown off? Ticker is a factor / character ... I tried both temp - head(MF_Data_Sub) temp Date Ticker Price 1 2008-04-01 106270 10.3287 2 2008-04-01 106269 10.3287 3 2008-04-01 102767 12.6832 4

[R] installing grid package

2010-10-14 Thread ogbos okike
Hi all, I can't understand why grid package failed to installed on my machine. Can anybody have a look and advice on where I am missing it. My R version is 2.9.2. After untarring: tar xzvf grid_0.7-4.tar.gz, I tried to configure or make but none worked, 'no such files'. I have also tried using

[R] rbind ing matrices and resetting column numbers

2010-10-14 Thread Maas James Dr (MED)
Sorry for the verbose example. I want to row bind two matrices, and all works except I want the column labelled row to be sequential in the new matrix, shown as mat3 here, i.e. needs to be 1:6 and not 1:3 repeated twice. Any suggestions? Thanks J colnm1 - c(row,ti,counti) colnm2 -

Re: [R] rbind ing matrices and resetting column numbers

2010-10-14 Thread David Winsemius
On Oct 14, 2010, at 10:31 AM, Maas James Dr (MED) wrote: Sorry for the verbose example. I want to row bind two matrices, and all works except I want the column labelled row to be sequential in the new matrix, shown as mat3 here, i.e. needs to be 1:6 and not 1:3 repeated twice. Any

[R] R functions in Java

2010-10-14 Thread lord12
Suppose I have a function in R called foo. foo = function(x) { print(x); } When I create the Rengine re and do re.eval(foo(1)) I get the output 1. However, if I create a string variable in java String num = 1 and do re.eval(foo(num)), I get an error saying that num cannot be found. How can

Re: [R] rbind ing matrices and resetting column numbers

2010-10-14 Thread David Winsemius
On Oct 14, 2010, at 10:40 AM, David Winsemius wrote: On Oct 14, 2010, at 10:31 AM, Maas James Dr (MED) wrote: Sorry for the verbose example. I want to row bind two matrices, and all works except I want the column labelled row to be sequential in the new matrix, shown as mat3 here, i.e.

Re: [R] R functions in Java

2010-10-14 Thread lord12
Any advice? -- View this message in context: http://r.789695.n4.nabble.com/R-functions-in-Java-tp2995428p2995490.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] declaring GPL license

2010-10-14 Thread Stacey Wood
Hi all, I'm currently writing an R package and want to declare a GPL2 license. According to the license agreement, I'm supposed to display: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free

Re: [R] bwplot change whiskers position to percentile 5 and P95

2010-10-14 Thread David Winsemius
On Oct 14, 2010, at 11:07 AM, Christophe Bouffioux wrote: Hi, I have tried your proposition, and it works properly on the simulated data, but not on my real data, and I do not see any explanations, this is weird, i have no more ideas to explore the problem You should: a) provide the

Re: [R] declaring GPL license

2010-10-14 Thread Dirk Eddelbuettel
On 14 October 2010 at 11:06, Stacey Wood wrote: | Hi all, | | I'm currently writing an R package and want to declare a GPL2 license. | According to the license agreement, I'm supposed to display: | | This program is free software; you can redistribute it and/or modify |it under the terms

[R] Putting the same array into a matrix

2010-10-14 Thread Desmond Lim
Hi, I have an array and I want to put in into a matrix x number of times. Currently I doing this matrix - cbind(array, array, array). Is there a more elegant way of doing this? I've tried matrix - cbind(rep(array, times=x)) and matrix - rep(cbind(array), times = 5) but it didn't work.

Re: [R] bwplot change whiskers position to percentile 5 and P95

2010-10-14 Thread Christophe Bouffioux
Hi, I have tried your proposition, and it works properly on the simulated data, but not on my real data, and I do not see any explanations, this is weird, i have no more ideas to explore the problem so here i give some information on my data, nothing special actually, Christophe

Re: [R] declaring GPL license

2010-10-14 Thread Marc Schwartz
On Oct 14, 2010, at 10:06 AM, Stacey Wood wrote: Hi all, I'm currently writing an R package and want to declare a GPL2 license. According to the license agreement, I'm supposed to display: This program is free software; you can redistribute it and/or modify it under the terms of the

[R] Using Rscript to read from a file

2010-10-14 Thread Saptarshi Guha
Hello, I have this script which will be invoked as Rscript a.r a.r a.r follows #!/usr/bin/Rscript --vanilla f=file(stdin) while(TRUE){ y=readLines(f,n=1,warn=TRUE) if(length(y)==0) break else print(y) } But it only reads one line from a.r How can I read line by line from standard

Re: [R] Drop matching lines from readLines

2010-10-14 Thread Bert Gunter
If I understand correctly, the poster knows what regex error pattern to look for, in which case (mod memory capacity -- but 200 mb should not be a problem, I think) is not merely cleanData - dirtyData[!grepl(errorPatternregex,dirtyData)] sufficient? Cheers, Bert On Thu, Oct 14, 2010 at 4:05

Re: [R] Drop matching lines from readLines

2010-10-14 Thread Santosh Srinivas
Yes, thanks ... that works. -Original Message- From: Bert Gunter [mailto:gunter.ber...@gene.com] Sent: 14 October 2010 21:26 To: Mike Marchywka Cc: santosh.srini...@gmail.com; r-help@r-project.org Subject: Re: [R] Drop matching lines from readLines If I understand correctly, the poster

Re: [R] Putting the same array into a matrix

2010-10-14 Thread Charles C. Berry
On Thu, 14 Oct 2010, Desmond Lim wrote: Hi, I have an array and I want to put in into a matrix x number of times. Currently I doing this matrix - cbind(array, array, array). Is there a more elegant way of doing this? Fortunately! If 'array' really is a matrix (bad choice of names here,

[R] running a long R process on Linux using putty - best practice to disconnect

2010-10-14 Thread Martin Tomko
Dear all, I am sure this has been solved before, googling did not help much,. Warning, I am not great with putty/linux servers Situation: I have been given access to an R installation on a Linux server to do some larger number crunching that was killing my machine. I use putty to connect,

[R] Python's string translate in R?

2010-10-14 Thread Saptarshi Guha
Hello, Would one use gsub to perform pythons translate? in python table = string.maketrans(abc,xyz) abc.translate(table) xyz how does one do this in R? Thank you Saptarshi __ R-help@r-project.org mailing list

Re: [R] declaring GPL license

2010-10-14 Thread Berwin A Turlach
G'day Marc, On Thu, 14 Oct 2010 10:46:39 -0500 Marc Schwartz marc_schwa...@me.com wrote: If you want (and you should), create and include a file called COPYING in the 'inst' folder in the package, so that it gets copied to the main package directory upon installation. [...] But that would be

Re: [R] running a long R process on Linux using putty - best practice to disconnect

2010-10-14 Thread Mike Marchywka
Date: Thu, 14 Oct 2010 18:07:02 +0200 From: martin.to...@geo.uzh.ch To: r-help@r-project.org Subject: [R] running a long R process on Linux using putty - best practice to disconnect Dear all, I am sure this has been solved before, googling

[R] execute a script in command line

2010-10-14 Thread Benoit Wastine
Dear all, I'm running R on Linux OS. I want to execute a programme toto.R in command line. Is it possible ?? Thanks Benoit -- Benoit Wastine Laboratoire des Sciences du Climat et de l’Environnement (LSCE/IPSL) CEA-CNRS-UVSQ CE Saclay Orme des merisiers Bât 703 - Pte 13A 91191 Gif sur Yvette

Re: [R] compare histograms

2010-10-14 Thread Rainer M Krug
On Thu, Oct 14, 2010 at 3:15 AM, Michael Bedward michael.bedw...@gmail.comwrote: Hi Juan, Yes, you can use EMD to quantify the difference between any pair of histograms regardless of their shape. The only constraint, at least the way that I've done it previously, is to have compatible bins.

Re: [R] declaring GPL license

2010-10-14 Thread Marc Schwartz
On Oct 14, 2010, at 11:13 AM, Berwin A Turlach wrote: G'day Marc, On Thu, 14 Oct 2010 10:46:39 -0500 Marc Schwartz marc_schwa...@me.com wrote: If you want (and you should), create and include a file called COPYING in the 'inst' folder in the package, so that it gets copied to the main

Re: [R] drilling down data on charts

2010-10-14 Thread Greg Snow
It is not clear what exactly you want. Try looking at the functions TkPredict, TkSpline, and TkApprox in the TeachingDemos package to see if any of those do what you want. If not, give a bit more of a description and include some sample data. -- Gregory (Greg) L. Snow Ph.D. Statistical Data

Re: [R] Using Rscript to read from a file

2010-10-14 Thread Dirk Eddelbuettel
On 14 October 2010 at 08:49, Saptarshi Guha wrote: | Hello, | I have this script which will be invoked as | | Rscript a.r a.r | | a.r follows | | #!/usr/bin/Rscript --vanilla | f=file(stdin) | while(TRUE){ | y=readLines(f,n=1,warn=TRUE) | if(length(y)==0) break else print(y) | } | | |

Re: [R] execute a script in command line

2010-10-14 Thread Jim Hargreaves
Hi Benoit, Have a look at 'man R'. You want something like 'R CMD BATCH toto.R' (case sensitive). Hope this helps, Jim Hargreaves On 10/14/2010 05:15 PM, Benoit Wastine wrote: Dear all, I'm running R on Linux OS. I want to execute a programme toto.R in command line. Is it possible ??

Re: [R] Matrix subscripting to wrap around from end to start of row

2010-10-14 Thread Greg Snow
You might have better luck reformatting your data as time series, then you can still print it in a matrix like form, but access it serially without worrying about wrapping around rows. Another option would be to transpose the matrix so that months go down the columns, then use the %% and %/%

Re: [R] declaring GPL license

2010-10-14 Thread Dirk Eddelbuettel
On 14 October 2010 at 11:16, Marc Schwartz wrote: | On Oct 14, 2010, at 11:13 AM, Berwin A Turlach wrote: | | G'day Marc, | | On Thu, 14 Oct 2010 10:46:39 -0500 | Marc Schwartz marc_schwa...@me.com wrote: | | If you want (and you should), create and include a file called | COPYING in

Re: [R] declaring GPL license

2010-10-14 Thread Stacey Wood
Thanks everyone. Now I know that I should not include another copy of the license, but where should I refer to the copies on http://www.r-project.org/Licenses/? In the DESCRIPTION file? Stacey On Thu, Oct 14, 2010 at 12:16 PM, Marc Schwartz marc_schwa...@me.comwrote: On Oct 14, 2010, at

Re: [R] Python's string translate in R?

2010-10-14 Thread jim holtman
?chartr Is this what you are looking for? On Thu, Oct 14, 2010 at 12:10 PM, Saptarshi Guha saptarshi.g...@gmail.com wrote: Hello, Would one use gsub to perform pythons translate? in python table = string.maketrans(abc,xyz) abc.translate(table) xyz how does one do this in R? Thank

Re: [R] Python's string translate in R?

2010-10-14 Thread Saptarshi Guha
Yes, thanks much. On Thu, Oct 14, 2010 at 9:36 AM, jim holtman jholt...@gmail.com wrote: ?chartr Is this what you are looking for? On Thu, Oct 14, 2010 at 12:10 PM, Saptarshi Guha saptarshi.g...@gmail.com wrote: Hello, Would one use gsub to perform pythons translate? in python table

Re: [R] R functions in Java

2010-10-14 Thread lord12
For example, if I have the function in R: sum = function(a,b) { sum = a+b return sum } In Java: re.eval(sum(a,b)) gives me an error. -- View this message in context: http://r.789695.n4.nabble.com/R-functions-in-Java-tp2995428p2995620.html Sent from the R help mailing list archive at

[R] Query on save.image()

2010-10-14 Thread Megh Dal
Can anyone please tell me how can use save.image() function if it is placed within a function (i.e. some level up from the base level environment)? Here I experimented with following codes: #rm(list=ls()) fn - function() { x - rnorm(5) save.image(f:/dat.RData) } fn() However I see

Re: [R] Using Rscript to read from a file

2010-10-14 Thread Dirk Eddelbuettel
On 14 October 2010 at 11:21, Dirk Eddelbuettel wrote: | On 14 October 2010 at 08:49, Saptarshi Guha wrote: | | Hello, | | I have this script which will be invoked as | | | | Rscript a.r a.r | | | | a.r follows | | | | #!/usr/bin/Rscript --vanilla | | f=file(stdin) | | while(TRUE){ | |

[R] R on a ma c

2010-10-14 Thread Tiffany Kinder
Hello, Is R very compatible with a Mac? A colleague of mine indicated that everyone he knows with a Mac has problems with R. What can you tell me about using R with a Mac. What do I need to download? I have downloaded the basic R package. Thanks, -- Tiffany Kinder MS Student Department of

Re: [R] several car scatterplots on one graph

2010-10-14 Thread Greg Snow
The problem is that the scatterplot function is overriding the par(mfrow=c(2,2)) command by resetting the parameters itself (though it probably uses layout instead of par) to place the boxplots next to the scatterplot. It was not really designed to be used the way you want. Possible

Re: [R] Poisson Regression

2010-10-14 Thread Viechtbauer Wolfgang (STAT)
I think it's useful to realize that this approach still implies that the \phi_{i}'s are entered as fixed effects into the model (as opposed to treating the \phi_{i}'s as random effects); it's just that the iterative algorithm to obtain the maximum likelihood estimates is faster when using

Re: [R] declaring GPL license

2010-10-14 Thread Berwin A Turlach
G'day Stacey, On Thu, 14 Oct 2010 12:36:20 -0400 Stacey Wood sjw...@ncsu.edu wrote: Thanks everyone. Now I know that I should not include another copy of the license, but where should I refer to the copies on http://www.r-project.org/Licenses/? In the DESCRIPTION file? I used to mention

Re: [R] Query on save.image()

2010-10-14 Thread Joshua Wiley
Hi, I do not believe you can use the save.image() function in this case. save.image() is a wrapper for save() with defaults for the global environment (your workspace). Try this instead, I believe it does what you are after: myfun - function(x) { y - 5 * x + x^2 save(list = ls(envir =

Re: [R] declaring GPL license

2010-10-14 Thread Marc Schwartz
On Oct 14, 2010, at 11:36 AM, Stacey Wood wrote: Thanks everyone. Now I know that I should not include another copy of the license, but where should I refer to the copies on http://www.r-project.org/Licenses/? In the DESCRIPTION file? Stacey snip Not in the DESCRIPTION file. :-)

Re: [R] R on a ma c

2010-10-14 Thread Ista Zahn
In my experience R runs just fine on the Mac. For basic use you don't need to do anything special whatsoever. Just install R as you would any other program. If you need to install packages from source you will probably want to install Xcode. Other Mac FAQs are at

Re: [R] R on a ma c

2010-10-14 Thread Joshua Wiley
Dear Tiffany, R works wonderfully with Macs (and *nix and Windows). The main program should be all you need, but if you have any doubts or concerns, here is the link to download R from the website for Mac OSes: http://cran.r-project.org/bin/macosx/ If you are just getting started using R, it is

Re: [R] R on a ma c

2010-10-14 Thread David Winsemius
On Oct 14, 2010, at 12:25 PM, Tiffany Kinder wrote: Hello, Is R very compatible with a Mac? Very compatible. I have been using it as my work machine for the last 2.75 years and several of the regular contributors to rhelp are also running Macs. Rock-solid. Better memory management than

Re: [R] Query on save.image()

2010-10-14 Thread Hadley Wickham
On Thu, Oct 14, 2010 at 11:56 AM, Joshua Wiley jwiley.ps...@gmail.com wrote: Hi, I do not believe you can use the save.image() function in this case. save.image() is a wrapper for save() with defaults for the global environment (your workspace).  Try this instead, I believe it does what you

Re: [R] running a long R process on Linux using putty - best practice to disconnect

2010-10-14 Thread Uwe Ligges
On 14.10.2010 18:07, Martin Tomko wrote: Dear all, I am sure this has been solved before, googling did not help much,. Warning, I am not great with putty/linux servers Situation: I have been given access to an R installation on a Linux server to do some larger number crunching that was

[R] [OT] (slightly) - OpenOffice Calc and text files

2010-10-14 Thread John C Frain
-- Forwarded message -- From: John C Frain fra...@gmail.com Date: 14 October 2010 18:20 Subject: Re: [R] [OT] (slightly) - OpenOffice Calc and text files To: Schwab,Wilhelm K bsch...@anest.ufl.edu Just a basic comment on Open Office Calc.  I find Open Office Calc and excellent

Re: [R] Query on save.image()

2010-10-14 Thread Joshua Wiley
Hi, Given what Hadley said, it looks like you don't need either one. In any case the logic was this: ls() gets the NAMES of the objects save() gets the actual data Suppose in your workspace you define: y - Hello, from the Global Environment and then you used that little function I showed,

Re: [R] installing grid package

2010-10-14 Thread Uwe Ligges
The message days it all: This [grid] is the name of a base package. If you need a new version of grid: Upgrade R to R-2.12.0 which will be released tomorrow. Best, Uwe Ligges On 14.10.2010 16:29, ogbos okike wrote: Hi all, I can't understand why grid package failed to installed on my

Re: [R] Query on save.image()

2010-10-14 Thread Megh Dal
Thanks Joshua for your reply. However I could not understand one logic. If I write ls(envir = environment(), all.names = TRUE), I am actually telling R to grab all objects within the current environment (in my case, which the environment within fn()). Then what is the point to put again the

Re: [R] R and Oracle

2010-10-14 Thread Siddharth Garg
Hi Thanks for the reply. I managed to find a simpler solution using RJDBC. All I needed to do was install RJDBC, DBI and download oracle driver for JDBC. Regards Siddharth On Thu, Oct 14, 2010 at 5:32 PM, Marc Schwartz marc_schwa...@me.com wrote: On Oct 14, 2010, at 12:45 AM,

Re: [R] The width argument of stem()

2010-10-14 Thread Łukasz Ręcławowicz
Or here (kill R feature): stem(islands, width=NULL) It may looks like a bug. 2010/10/14 Marcin Kozak nyg...@gmail.com: Could anyone pleaase clarify what is going on here? -- Miłego dnia __ R-help@r-project.org mailing list

[R] RJava help

2010-10-14 Thread lord12
I need help with RJava. So I run this R code: library(rJava) #load the rJava library .jinit(classpath=c:/Documents and Settings/GV/workspace/Test/src, parameters=-Xmx512m) #the above is to load the Java virtual machine, x = runif(1000) y = runif(1000) #the above are two vectors to convolve

Re: [R] R on a ma c

2010-10-14 Thread David Cross
I have had no problems with R on my Mac ... just download, install, and run ... let me know if you have any problems. Cheers David Cross d.cr...@tcu.edu www.davidcross.us On Oct 14, 2010, at 11:25 AM, Tiffany Kinder wrote: Hello, Is R very compatible with a Mac? A colleague of mine

[R] Fw: Problem to create a matrix polynomial

2010-10-14 Thread Ron Michael
Awaiting some suggestion. Was my question not very understandable? Please let me know how can I offer more elaborate clarification. Additionally, I would like to solve the determinant of p1 for the values of z (I am working with some multivariate time series modelling). When I use det()

[R] Regression with groups and nested sub-groups

2010-10-14 Thread Robert Quinn
I have the following formula for a linear model: z - lm(y~x + factor(a) + factor(b), data=NT2010) where a (groups) and b (Sub-groups) are categorical variables (factors), x is a continuous covariate, and y the response variable. Since b is nested within a, the formula can also be written as:

Re: [R] drilling down data on charts

2010-10-14 Thread jverzani
Greg Snow Greg.Snow at imail.org writes: It is not clear what exactly you want. Try looking at the functions TkPredict, TkSpline, and TkApprox in the TeachingDemos package to see if any of those do what you want. If not, give a bit more of a description and include some sample data.

Re: [R] Regression with groups and nested sub-groups

2010-10-14 Thread Joshua Wiley
Hi Robert, In R, the default treatment contrasts for factor class variables in regression treats the first level as the reference group when creating the contrast matrix for the regression, so it is not really a matter of changing the formula. This might provide some insight:

Re: [R] Regression with groups and nested sub-groups

2010-10-14 Thread Bert Gunter
To be clear, this: How can I get the output to show all 3 groups that I have inputted? There are only group 2 and group 3 on the output, group 1 is missing. Also there is a subgroup (subgroup 1) of the total 9 subgroups missing. I would like to see the p-value of the missing group and

Re: [R] running a long R process on Linux using putty - best practice to disconnect

2010-10-14 Thread Martin Tomko
thank you guys, R CMD BATCH seems the way to go, and I will nudge my admin to install screen /byobu Thanks heaps, Martin On 10/14/2010 7:21 PM, Uwe Ligges wrote: On 14.10.2010 18:07, Martin Tomko wrote: Dear all, I am sure this has been solved before, googling did not help much,. Warning,

[R] Looking for more in depth QDA

2010-10-14 Thread Craig Larner
Hello, I am currently running multivariate analysis to find prediction equations for a specific event. Currently, we do this by using the combination of LDA and SIR through the dr package. The advantage of SIR is that we are giving constants for which weigh the importance of the factors,

Re: [R] R on a ma c

2010-10-14 Thread Andrew Miles
R works great on my Mac. In fact, the user interface in some ways seems to be more friendly (ex. you type an open parenthesis, it automatically includes a close parenthesis; color coding for coding files, etc.) Andrew Miles On Oct 14, 2010, at 2:49 PM, David Cross wrote: I have had no

Re: [R] 64 bit use of odbcConnectExcel

2010-10-14 Thread Jack T.
Still doesn't work, any ideas? Error in sqlTables(channel1) : first argument is not an open RODBC channel In addition: Warning messages: 1: In odbcDriverConnect(con, tabQuote = c([, ]), ...) : [RODBC] ERROR: state IM002, code 0, message [Microsoft][ODBC Driver Manager] Data source name not

[R] 2-dimensional convolution tool wanted

2010-10-14 Thread Carl Witthoft
I found the imgConvolve tool in the biOps package, but since I'm primarily working on OSX computers, wondered if there are any other 2-dimensional convolution functions out there? And, yes, I'm going to ask r-sig-mac whether biOps will compile from source under OSX. I did find one convolution

Re: [R] RODBC results from stored procedure

2010-10-14 Thread ang
I know this thread is from a while back, but hopefully I can still get some help on this. I also used RODBC to connect to a SQL Server, and my stored procedure returns a results set (that is not stored as a temp or permanent table). So I was wondering if there was a way to access this results

Re: [R] Fw: Problem to create a matrix polynomial

2010-10-14 Thread Ben Bolker
Ron Michael ron_michael70 at yahoo.com writes: Awaiting some suggestion. Was my question not very understandable? Please let me know how can I offer more elaborate clarification. Additionally, I would like to solve the determinant of p1 for the values of z (I am working with some

[R] for loop

2010-10-14 Thread li li
Dear all, I have a function f(x) which return a list as result. $T1 [1] 0.03376190 $T2 [1] 0.04725 $T3 [1] 0.3796071 $T4 [1] 0.3713452 $T5 [1] 0.4523651 $T6 [1] 0.4575873 I now find the result for a vector of x values at one time. I want to store the reuslt for each xi value in a column of

Re: [R] for loop

2010-10-14 Thread Joshua Wiley
Dear Hannah, Well one issue is that you are trying to assign a list to a matrix column. This is a hazardous move, and may well be your problem. Try: lapply(x, f) that should give you some nice results, and can probably be fairly easily converted to a matrix if you want. It is really hard to

Re: [R] for loop

2010-10-14 Thread Brian Diggs
On 10/14/2010 2:53 PM, li li wrote: Dear all, I have a function f(x) which return a list as result. $T1 [1] 0.03376190 $T2 [1] 0.04725 $T3 [1] 0.3796071 $T4 [1] 0.3713452 $T5 [1] 0.4523651 $T6 [1] 0.4575873 I now find the result for a vector of x values at one time. I want to store the

Re: [R] for loop

2010-10-14 Thread li li
Thanks for the kind help! Hannah 2010/10/14 Brian Diggs dig...@ohsu.edu On 10/14/2010 2:53 PM, li li wrote: Dear all, I have a function f(x) which return a list as result. $T1 [1] 0.03376190 $T2 [1] 0.04725 $T3 [1] 0.3796071 $T4 [1] 0.3713452 $T5 [1] 0.4523651

Re: [R] for loop

2010-10-14 Thread Joshua Wiley
If unlisting was the only issue, then this should also work, and will save you the trouble of initializing a matrix, creating x, and using a for loop. ## Brian's Function f - function(x) { r - as.list(rnorm(6)) names(r) - paste(T,1:6,sep=) r } sapply(seq(0,1, by=0.1),

[R] help with an unbalanced split plot

2010-10-14 Thread Eugenio Larios
Hi Everyone, I am trying to analyze a split plot experiment in the field that was arranged like this: I am trying to measure the fitness consequences of seed size. Factors (X): *Seed size*: a continuous variable, normally distributed. *Water*: Categorical Levels- wet and dry. *Density*:

Re: [R] Replacing N.A values in a data frame

2010-10-14 Thread Gabor Grothendieck
On Thu, Oct 14, 2010 at 9:59 AM, Santosh Srinivas santosh.srini...@gmail.com wrote: Wow! That’s Amazing! Many thanks! When I do the below ... why do the column names get thrown off? Ticker is a factor / character ... I tried both temp - head(MF_Data_Sub) temp        Date Ticker   Price 1

[R] How to create a dissimilarity object

2010-10-14 Thread Paul Rigor (ucla)
Hi all, I would like to use the fpc and cluster packages for clustering. However, I would like to create a custom dissimilarity object using a library in python. Has anyone attempted or know of a work-around for creating a dissimilarity object from a csv file containing pair-wise distance

Re: [R] How to create a dissimilarity object

2010-10-14 Thread Peter Langfelder
On Thu, Oct 14, 2010 at 5:21 PM, Paul Rigor (ucla) pr...@ucla.edu wrote: Hi all, I would like to use the fpc and cluster packages for clustering. However, I would like to create a custom dissimilarity object using a library in python.  Has anyone attempted or know of a work-around for

  1   2   >