Re: [R] unbalanced repeated measurements Anova with mixed effects

2010-10-17 Thread Tal Galili
Hello Thijs, I think that as you wrote, the aov wouldn't work for you here (due to the unbalanced design). I'd recommend you to have a look at the {ezhttp://cran.r-project.org/web/packages/ez/index.html } package, which offers a nice wrapping of the car Anova functions. I've listed a bunch of

[R] Dragging an .RData file into R on win-7 doesn't work?

2010-10-22 Thread Tal Galili
Hi all, I sometimes drag an .RData file into an open R console so to load that data into the file. I use windows 7, and it works fine. But, if I open R by using: right click on icon - properties - compatibility - (mark the box) run this program as an administrator Then I can no longer drag the

Re: [R] create sequence of numbers

2010-10-22 Thread Tal Galili
Hi Alex, Could you give us the values you used, by providing the output of: dput(CRagent[[1]]$xy[1]) dput(CRagent[[2]]$xy[1]) ? Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com

Re: [R] question about decision trees

2010-10-22 Thread Tal Galili
You get a model that enables you to predict future outcomes. Nice examples are available here: http://www.statmethods.net/advstats/cart.html Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me:

Re: [R] wait for graph to finish plotting

2010-10-22 Thread Tal Galili
There are several ways. What I often use is: pdf(...) # Check: ?pdf for(i in something) { plot(things) } dev.off() And it works fine. Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me:

Re: [R] (no subject)

2010-10-22 Thread Tal Galili
Hi Penny, Could you provide the code you are using? (also, using a subject to the e-mail, would have been nice :) ) Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) |

Re: [R] wait for graph to finish plotting

2010-10-22 Thread Tal Galili
I suspect that using dev.copy2eps Is not going to help you here. Please try again using: pdf(...) # Check: ?pdf for(i in something) { plot(things) } dev.off() But give pdf() the file path. Make sure you can make it work with simple plots. then check it on your situation, and let us

Re: [R] wait for graph to finish plotting

2010-10-22 Thread Tal Galili
-statistics.com (English) -- On Fri, Oct 22, 2010 at 9:50 PM, n...@aleblanc.cotse.net wrote: Tal Galili tal.gal...@gmail.com writes: I suspect that using dev.copy2eps Is not going to help you here. Please try

Re: [R] wait for graph to finish plotting

2010-10-23 Thread Tal Galili
...@aleblanc.cotse.net wrote: Tal Galili tal.gal...@gmail.com writes: I suspect that using dev.copy2eps Is not going to help you here. Please try again using: pdf(...) # Check: ?pdf for(i in something) { plot(things) } dev.off() But give pdf() the file path

Re: [R] .R file

2010-10-25 Thread Tal Galili
There is most of what you need here: http://www.statmethods.net/interface/workspace.html Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il

[R] Which version control system to learn for managing R projects?

2010-10-26 Thread Tal Galili
Hello all, I wish to learn a version control system for managing my R (data analysis) projects. I know of SVN and github, and wonder if there is any reason for which I should prefer the one over the other (or any other platform). An example for a reason could be if it will make it easier for me

Re: [R] compare quality of clustering methods?

2010-10-30 Thread Tal Galili
It depends on how your clustered objects are stored. As written here: http://www.statmethods.net/advstats/cluster.html The function *cluster.stats() *in the *fpchttp://cran.r-project.org/web/packages/fpc/index.html * package provides a mechanism for comparing the similarity of two cluster

Re: [R] For loop

2010-10-30 Thread Tal Galili
I can't see how to vectorized your code, maybe it's possible. That leaves you with either using parallel processing (for example using the foreach package) Or, If you know C, you could put that calculation into a C code inside the R code using Rcpp. There was a recent video on the topic on a

Re: [R] Plotting a vector data

2010-11-04 Thread Tal Galili
Hi Nasrin, 1) You didn't define mean.radiation in your code (for example using mean.radiation-NULL) 2) Also, you're using attach, which is a good recipe for forgetting something in your environment which will lead into troubles. 3) You didn't define i (for example i - 1:30) Tal

Re: [R] can't load nlme on windoze 7

2010-11-07 Thread Tal Galili
Hello Mika, Most of my problems with win7 where permission problems. You can check if that is the case, by setting R to ran with administrator privileges, and see if that solves the problem. Best, Tal Contact Details:---

[R] Help with getting ?match to not sort

2010-11-08 Thread Tal Galili
Hello all, I think I am missing something about the sorting parameter in the match command/ Here is an example: a1 - data.frame(name = c(D, B, C, A, A, C)) a2 - data.frame(name = c(A, B, C, D), num = 1:4) a1 a2 merge(a1, a2, sort = F, by.x = T) The result is: name num 1D 4 2B

Re: [R] Help with getting ?match to not sort

2010-11-08 Thread Tal Galili
circumstances in which people might use merge(). HTH ... Peter Alspach -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Tal Galili Sent: Tuesday, 9 November 2010 10:10 a.m. To: r-help@r-project.org Subject: [R] Help with getting

[R] Why doesn't ?match keep the original (x) data.frame order?

2010-11-09 Thread Tal Galili
Hello all, Following on my question here ( http://www.mail-archive.com/r-help@r-project.org/msg116075.html), I understand now that when using sort = FALSE the order of the merged data frame is unspecified. But why was it designed this way? Why not keep the original order (when possible)?

Re: [R] repeatedrepeated measures in ANOVA or mixed model

2010-11-09 Thread Tal Galili
Hi Paul, Here are a bunch of tutorials on the topic: http://www.r-statistics.com/2010/04/repeated-measures-anova-with-r-tutorials/ I suggest a more specific question for people to help :) Best, Tal Contact Details:--- Contact

[R] Is there a way to have 'comment' keep a list?

2010-11-09 Thread Tal Galili
Hello all, I recently discovered the comment command. I see it can only hold a vector of characters. Is there a way (or an alternative), to make it possible to have it keep a list? (for example, to keep different pieces of information like date of creation, information of each variable and so

Re: [R] Merge Data

2010-11-09 Thread Tal Galili
Hello Nasrin, I think you might be wanting to use rbind instead of merge Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |

Re: [R] Merge Data

2010-11-10 Thread Tal Galili
axis.) Would you please help me with it? Thanks for your help! On Tue, Nov 9, 2010 at 12:23 PM, Tal Galili tal.gal...@gmail.com wrote: Hello Nasrin, I think you might be wanting to use rbind instead of merge Contact Details

[R] Adding meta-data when creating objects. e.g: changing - so to (for example) add creation time - how-to and pros/cons?

2010-11-11 Thread Tal Galili
My objective is to start having meta-data on objects that I create. For example, consider the following function: assign2 - function(x, ...) { assign(x, ...) attr(x, creation time) - Sys.time() x - x } assign2(x, 1:4) assign2 assigns to x the vector 1:4, and it then also adds the creation

Re: [R] Adding meta-data when creating objects. e.g: changing - so to (for example) add creation time - how-to and pros/cons?

2010-11-11 Thread Tal Galili
Rowlingson b.rowling...@lancaster.ac.uk wrote: On Thu, Nov 11, 2010 at 9:37 AM, Tal Galili tal.gal...@gmail.com wrote: 4) My real intention is to somehow change the - operator (not simply the assign). I am unsure as to how to do that. 5) Are there any major pros/cons to the adding

Re: [R] R on an iPad

2010-11-13 Thread Tal Galili
Hi Erin, I wrote about this half a year ago, I imagine most of the information there still holds true: http://www.r-statistics.com/2010/06/could-we-run-a-statistical-analysis-on-iphoneipad-using-r/ Contact Details:--- Contact

[R] Looking for R bloggers in non-English languages

2010-11-13 Thread Tal Galili
Hello everyone, Today I started a non-English version of R-bloggers, at: http://www.r-bloggers.com/lang/ R-bloggers.com is a blog aggregator (or a meta-blog) that offers content about R from 133 bloggers, publishing about 1 to 5 new posts a day. I am happy to see over 2700 people had already

Re: [R] About upgrade R

2010-11-14 Thread Tal Galili
Hi Stephen, I just happened to have upgraded my R today. Tips: 1) Make sure the folder has full permissions so that you'll be able to install/update packages on it. 2) I still find the advices (and code) I gave in that article to be worthwhile. And do pay attention to the directory into which you

Re: [R] About upgrade R

2010-11-14 Thread Tal Galili
Hi John, thank you for that input. It could be that the code I wrote here: http://www.r-statistics.com/2010/04/changing-your-r-upgrading-strategy-and-the-r-code-to-do-it-on-windows/ Should be updated so every time you install a new R version, you run the code for it to: 1) copy all packages from

Re: [R] About upgrade R

2010-11-14 Thread Tal Galili
Hi Stephen, It doesn't exist before you'll make it (that's one of the thing the code in my post does) Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) |

Re: [R] About upgrade R

2010-11-15 Thread Tal Galili
: Em 14/11/2010 20:42, csrabak escreveu: Em 14/11/2010 18:24, Tal Galili escreveu: Hi John, thank you for that input. It could be that the code I wrote here: http://www.r-statistics.com/2010/04/changing-your-r-upgrading-strategy-and-the-r-code-to-do-it-on-windows/ Should be updated so

Re: [R] AOV/LME

2010-11-16 Thread Tal Galili
Hi janesense, You might find it useful to go through the tutorial listed here for help: http://www.r-statistics.com/2010/04/repeated-measures-anova-with-r-tutorials/ Cheers, Tal Contact Details:--- Contact me:

Re: [R] Help me with R plotting

2010-11-18 Thread Tal Galili
?plot Will give a good solution #Example: set.seed(5) xx - data.frame(x = runif(50), y = runif(50), z = sample(c(1:3), 50, T)) with(xx, plot(x, y, col = z, pch = 19)) Now you can start going into how to play with the colors, and how to add ?legend to the image... Tal Contact

Re: [R] Help me with R plotting

2010-11-18 Thread Tal Galili
below the dots which is Do not what I want exactly. I would like below every plot to write some text but not inside any box that will cover part of the image. Best Regards Alex --- On *Thu, 11/18/10, Tal Galili tal.gal...@gmail.com* wrote: From: Tal Galili tal.gal...@gmail.com Subject: Re

Re: [R] RGoogleDocs stopped working

2010-11-19 Thread Tal Galili
I second Harlan's call. Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)

[R] Where can I find a working libeay32.dll file for RCurl ?

2010-11-20 Thread Tal Galili
Hi all, I was trying to run the latest version of RCurl on windows 7 with R 2.12 and got a missing libeay32.dll error. I now downloaded such a file from here: http://code.google.com/p/aion-inside/source/browse/trunk/out/libeay32.dll?spec=svn10r=10 And placed it in the system32 folder. Now I get

Re: [R] Where can I find a working libeay32.dll file for RCurl ?

2010-11-20 Thread Tal Galili
) -- On Sat, Nov 20, 2010 at 2:32 PM, Tal Galili tal.gal...@gmail.com wrote: Hi all, I was trying to run the latest version of RCurl on windows 7 with R 2.12 and got a missing libeay32.dll error. I now downloaded such a file from here: http://code.google.com/p/aion-inside/source/browse

Re: [R] RGoogleDocs stopped working

2010-11-20 Thread Tal Galili
Dear Farrel, Now, using the most updated version of the packages, I was able to make your example work for me - thank you very much for your help! Best, Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845

Re: [R] Calculating correlation

2010-11-22 Thread Tal Galili
Hi there, I'm not sure I understand your question. What are the two vectors you wish to check their correlation? Are they the two rows x and a? Because from your example it seems you are trying to do a correlation between two singular numbers (so probably I didn't get something straight). Tal

Re: [R] Calculating correlation

2010-11-23 Thread Tal Galili
outputs or everything in one output if possible. Please let me know if it is still confusing. thanx On Tue, Nov 23, 2010 at 3:35 PM, Tal Galili tal.gal...@gmail.com wrote: Hi there, I'm not sure I understand your question. What are the two vectors you wish to check their correlation

[R] Catching a RCurl error?

2010-11-23 Thread Tal Galili
Hi all, I'm running a complex script which accesses the internet, and sometimes it stops with the error: Error in curlPerform(url = url, headerfunction = header$update, curl = curl, : Failure when receiving data from the peer Is there a way to make the script wait longer, or not crash

Re: [R] Three-way ANOVA shows me two-way results

2010-11-23 Thread Tal Galili
It seems your model defines more parameters then your data permits (e.g: singular). What you can do is try something like this: summary(aov(formula('FP ~ (lum + obj + man)^2 - Error(vp/(lum + obj + man)^2)),data=dataf)) (notice the use of + and ^) This is something your data might permit

Re: [R] Wilcoxon Rank Sum in R with a multiple testing correction

2010-11-23 Thread Tal Galili
For the BH, you can use the command ?p.adjust(..., BH) For reading the files in and doing the analysis, here is an example: http://www.r-tutor.com/elementary-statistics/non-parametric-methods/wilcoxon-signed-rank-test You'd then need to extract all the P values like this: x - wilcox.test(... ) i

[R] Is there an implementation for URL Encoding (/format) in R?

2010-11-25 Thread Tal Galili
Hello all, I would like some R function that can translate a string to a URL encoding (see here: http://www.w3schools.com/tags/ref_urlencode.asp) Is it implemented? (I wasn't able to find any reference to it) Thanks, Tal Contact

Re: [R] Is there an implementation for URL Encoding (/format) in R?

2010-11-25 Thread Tal Galili
Thank you Duncan, Romain and Gustavo for referring me to both: URLencode and curlEscape I see that both functions work great for English, but fail to provide with the proper translation for Hebrew characters. For example, the word שלום (Peace, in Hebrew) Should be this:

Re: [R] Summing over intervals

2010-07-15 Thread Tal Galili
You might find it useful to look at rollmean from the zoo package. Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |

Re: [R] package for rank ordered logit

2010-07-16 Thread Tal Galili
Did you try: library(MASS) ?polr ? Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)

Re: [R] Help with Reshaping from Wide to Long

2010-07-17 Thread Tal Galili
Hi John, 1) Read the help for the reshape package. What you want is to use the melt function. 2) There are various ways of doing Repeated measures Anova in R, you might want to have a look at this: http://www.r-statistics.com/2010/04/repeated-measures-anova-with-r-tutorials/ (I especially like

Re: [R] Help with Reshaping from Wide to Long

2010-07-17 Thread Tal Galili
Hi John, Try posting a sample of your data in reply to this e-mail by using: dput(head(accuracy)) And me (or someone else) will be sure to fix your command. Regarding the ANOVA, read more :) Tal Contact Details:--- Contact

Re: [R] UseR! 2010 - my impressions

2010-07-26 Thread Tal Galili
Dear Ravi - I echo everything you wrote, useR2010 was an amazing experience (for me, and for many others with whom I have spoken about it). Many thanks should go to the wonderful people who put their efforts into making this conference a reality (and Kate is certainly one of them). Thank you for

Re: [R] as.dendrogram for DICE coefficient.

2010-07-27 Thread Tal Galili
Hello Shubha, To my understanding, Once you get a dist matrix, you would wish to put it into a clustering algorithm, who's output you would then put into a plot (which will produce a dendrogram). You might want to have a look at the steps given here:

Re: [R] Statistical mailing list

2010-07-29 Thread Tal Galili
This is the new and exiting kid on the block: http://stats.stackexchange.com/ There is also: http://metaoptimize.com/qa For more machine learning type questions. Best, Tal http://stats.stackexchange.com/ Contact Details:---

Re: [R] New Open Source Community

2010-07-29 Thread Tal Galili
You mean along with: http://stats.stackexchange.com/ and http://stats.stackexchange.com/http://metaoptimize.com/qa/ We have passed the online-over-proliferation stage for out topic of interest... :) Tal Contact Details:---

Re: [R] hi! l have a question please help me

2010-07-30 Thread Tal Galili
Is this a question from your homework? Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)

Re: [R] logos and goodies

2010-07-30 Thread Tal Galili
Interesting topic and question. I hope someone who knows will answer this. Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |

Re: [R] multiple graphics windows open

2010-07-30 Thread Tal Galili
Hi Erin, Could you please add a simple self contained code for us to try and help you with? (giving us code with doesn't help) Best, Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me:

Re: [R] hi! l have a question please help me

2010-07-30 Thread Tal Galili
Then please read this: http://www.r-project.org/posting-guide.html *Basic statistics and classroom homework:* R-help is not intended for these. If you want learning materials for R you can check out: http://stats.stackexchange.com/questions/138/resources-for-learning-r And:

Re: [R] Reading .eps file created in Illustrator

2010-07-30 Thread Tal Galili
Hi Patrick, I don't have an answer for you. But thought it might be worth to have a look at this: http://www.r-bloggers.com/getting-data-from-an-image-introductory-post/ Also, there was someone who presented a really simple GUI system in useR2010. Where his code gave a GUI based on R base

Re: [R] multiple graphics windows open

2010-07-30 Thread Tal Galili
with a line segment between the two points. The second is the graph of the subset. The third is the EWMA of the subset data. Thanks, Erin On Fri, Jul 30, 2010 at 10:13 AM, Tal Galili tal.gal...@gmail.com wrote: Hi Erin, Could you please add a simple self contained code for us to try

Re: [R] multiple graphics windows open

2010-07-31 Thread Tal Galili
...@gmail.comwrote: This will work. I was hoping for 3 distinct graphs so the user would be able to click on them. Thanks, Erin On Fri, Jul 30, 2010 at 11:07 PM, Tal Galili tal.gal...@gmail.com wrote: Hello Erin. I think I understand. Those the following code solve your issue

Re: [R] Is there paid support for R?

2010-08-02 Thread Tal Galili
As others have mentioned, A simple place to start looking at would be to go through the list on the wiki page: http://en.wikipedia.org/wiki/R_(programming_language)#Commercialized_versions_of_R And contacting the companies one by one. The other alternative I would check is to contact the

Re: [R] Kruskal Walllis test

2010-08-03 Thread Tal Galili
I would suggest to you the following: 1) Run the same thing, but with a loop instead of apply 2) add the to loop a printing that shows you on what cycle of the loop the function breaks 3) see if that vector has any Inf or NA values (although in general I think you are using a numeric instead of a

Re: [R] How to extract ICC value from irr package?

2010-08-03 Thread Tal Galili
And in general, you can use: str(NameOfObject) To understand it's *str*ucture, and where the value resides. Cheers. Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) |

Re: [R] R: classification tree model!

2010-08-03 Thread Tal Galili
People who speak only English and Hebrew (like myself), can't help you. Consider reposting in English. Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) |

Re: [R] applying strsplit to a whole column

2010-08-04 Thread Tal Galili
Have a look at the stringr package It simplifies such things... Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com

Re: [R] applying strsplit to a whole column

2010-08-04 Thread Tal Galili
In such cases (which I don't think must happen), consider using ?lapply and also ?unlist Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il

Re: [R] Output (graphics and table/text)

2010-08-04 Thread Tal Galili
Fun question. Here is one solution that has come to mind: # graphics output test a - c(1,3,2,1,4) b - c(2,1,1,1,2) c - c(4,7,2,4,5) d - rnorm(500) e - rnorm(600) op - par(mfrow=c(2,2)) pie(a) pie(b) pie(c) txt - capture.output(ks.test(d,e)) txt - txt[txt != ] txt - paste(txt, collapse = \n )

Re: [R] Is R GPL or LGPL (or can I write a commercial front end to R)?

2010-08-06 Thread Tal Galili
From what I've seen on other OSS project, GPL can be a bit viral, making it (purposefully) difficult for someone to close the source code for free reuse. My tip for you would be to try and see what REvolution computing has been doing with their product (which is a repackaging of R with more code

Re: [R] data.frame: return all rows where at least one...

2010-08-06 Thread Tal Galili
One solution - let's say our data.frame is xx Then: xx - matrix(rnorm(9), 3,3) apply(xx 0, 1, any) Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) |

Re: [R] p.adjust( , fdr)

2010-08-08 Thread Tal Galili
Hi Qing. I believe what you are referring to is: p.adjust(..., BH) The fdr option uses the method of Benjamini, Hochberg, and Yekutieli. (Not the original Benjamini, Hochberg article) It might be the method described here:

Re: [R] Delete rpart/mvpart cross-validation output

2010-08-18 Thread Tal Galili
Hi Marie and Gavin, I do remember there is some command doing silent, so to suppress output (as if directing it to sink, but not really directing it anywhere). The problem is I don't remember the command at the moment - but some searching might yield you results. Cheers, Tal

Re: [R] Help with ANOVA

2010-08-18 Thread Tal Galili
Hi Sneeketeeke, Did you happen to have a look at the example on ?aov and ?TukeyHSD Also, you might need to move your data from wide to long. For which you might wish to look at ?reshape (or better yet the ?melt ?cast commands from the reshape package) Tal Contact

Re: [R] Plotting K-means clustering results on an MDS

2010-08-18 Thread Tal Galili
Hi trzeszutek, Another approach you might want to look at is the clustergram: http://www.r-statistics.com/2010/06/clustergram-visualization-and-diagnostics-for-cluster-analysis-r-code/ http://www.r-statistics.com/2010/06/clustergram-visualization-and-diagnostics-for-cluster-analysis-r-code/

Re: [R] Help with ANOVA

2010-08-18 Thread Tal Galili
) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) -- On Thu, Aug 19, 2010 at 6:02 AM, Stephen Liu sati...@yahoo.com wrote: - Original Message From: Tal Galili tal.gal...@gmail.com

Re: [R] Displaying Results in Two Columns

2010-08-18 Thread Tal Galili
You could find several good examples on the first several results here: http://www.google.com/search?sourceid=chromeie=UTF-8q=plot.ci+R Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me:

Re: [R] Help making box plots in R when the x axis is a quantitative variable

2010-08-22 Thread Tal Galili
Hi FishLover, I believe this will answer your question: # getting some dummy data seed(10) y - rnorm(100) x - sample(c(1,2,5.5), 100 , T) boxplot(y~x) # won't work boxplot(y~x, at = c(1,2,5.5), xlim = c(0,6)) # will work Cheers, Tal Contact

[R] Saving plot to tiff, with high resolution for publication ?

2010-08-29 Thread Tal Galili
Hello all. A Journal we are sending an article to is asking for the following: To ensure the best reproduction quality of your figures we would appreciate high resolution files. All figures should preferably be in TIFF or EPS format... and should have the following resolution: Graph: 800 - 1200

[R] Why is vector assignment in R recreates the entire vector ?

2010-09-01 Thread Tal Galili
Hello all, A friend recently brought to my attention that vector assignment actually recreates the entire vector on which the assignment is performed. So for example, the code: x[10]- NA # The original call (short version) Is really doing this: x- replace(x, list=10, values=NA) # The original

[R] Where can the benchmark2 function be downloaded from?

2010-09-01 Thread Tal Galili
Hello all, I am looking for the function benchmark2 ( a nice function for comparing the performance of two or more functions). I found online it exists in the butler package http://crantastic.org/packages/butler But for some reason, that package was removed from CRAN:

Re: [R] Where can the benchmark2 function be downloaded from?

2010-09-01 Thread Tal Galili
(English) -- On Wed, Sep 1, 2010 at 6:37 PM, David Winsemius dwinsem...@comcast.netwrote: On Sep 1, 2010, at 11:13 AM, Tal Galili wrote: Hello all, I am looking for the function benchmark2

Re: [R] Why is vector assignment in R recreates the entire vector ?

2010-09-01 Thread Tal Galili
: On 01/09/2010 11:09 AM, Tal Galili wrote: Hello all, A friend recently brought to my attention that vector assignment actually recreates the entire vector on which the assignment is performed. So for example, the code: x[10]- NA # The original call (short version) Is really doing

[R] Help request: highlighting R code on WordPress.com blogs

2010-09-09 Thread Tal Galili
Hello dear R help members (and also Yihui and Romain), There are currently 28 R bloggers (out of the 117 R-bloggershttp://www.r-bloggers.com/I know of) that are using wordpress.com for publishing their R code (and I suspect this number will increase with time). WordPress.com doesn't support R

Re: [R] Help request: highlighting R code on WordPress.com blogs

2010-09-09 Thread Tal Galili
. Regards, Yihui -- Yihui Xie xieyi...@gmail.com Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, Sep 9, 2010 at 3:02 AM, Tal Galili tal.gal...@gmail.com wrote: Hello dear R help members (and also Yihui

Re: [R] Help request: highlighting R code on WordPress.com blogs

2010-09-10 Thread Tal Galili
Hello D, Thanks for sharing your technique, nice work :) I hope the solution the people here are helping with will make it both cheaper and simpler for people with less CSS expreince. p.s: thank you for the kinds words regarding R-bloggers.com Best, Tal Contact

Re: [R] Save R-Part Tree

2010-09-11 Thread Tal Galili
Would using the ?save function on the rpart object do what you want ? Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |

[R] The future of R - Ross Ihaka stirs discussions around the web

2010-09-13 Thread Tal Galili
Hello all, There is currently a (very !) lively discussions happening around the web, surrounding the following topics: 1) Is R efficient? (scripting wise, and performance wise) 2) Should R be written from scratch? 3) What should be the license of R (if it was made a new)? Very serious people

Re: [R] Object oriented programming in R.

2010-09-14 Thread Tal Galili
Hello Alaios, I see a bunch of good materials here: http://www.google.co.il/search?sourceid=chromeie=UTF-8q=Object+oriented+programming+in+R http://www.google.co.il/search?sourceid=chromeie=UTF-8q=Object+oriented+programming+in+RDid you look into them ? Contact

Re: [R] R Founding

2010-09-16 Thread Tal Galili
, Sep 16, 2010 at 12:49 PM, jaropis jaro...@zg.home.pl wrote: A few days ago Tal Galili posted a message about some controversies concerning the future of R. Having read the discussions, especially those following Ross Ihaka's post, I have come to the conclusion, that, as usual, the problem

Re: [R] R Founding

2010-09-18 Thread Tal Galili
(English) -- On Thu, Sep 16, 2010 at 12:49 PM, jaropis jaro...@zg.home.pl wrote: A few days ago Tal Galili posted a message about some controversies concerning the future of R. Having read

Re: [R] Tal Galili wants to stay in touch on LinkedIn

2010-09-20 Thread Tal Galili
contact e-mail address! Edwin -- On Mon, 20 Sep 2010 02:14:17 -0700 (PDT) Tal Galili via LinkedIn mem...@linkedin.com wrote: LinkedIn Tal Galili requested to add you as a connection on LinkedIn: -- Arnaud, I'd like to add you

Re: [R] Sorting and subsetting

2010-09-20 Thread Tal Galili
Hi Harold, I thought of one way to do this, but maybe (probably) there is a faster way: tmp - data.frame(index = gl(3,20), foo = rnorm(60)) subset.first.x.elements - function(INDEX, num.of.elements = 5) { t.INDEX - table(factor(INDEX, levels = unique(INDEX))) running.indexes -

Re: [R] Package for calculating bandwidths

2010-09-21 Thread Tal Galili
Bandwidth of what? Internet traffic/some sort of smoother? Your question is not clear to me. Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il

Re: [R] Web forum - should I make one?

2010-09-21 Thread Tal Galili
And of course there is also: http://stats.stackexchange.com/questions/tagged/r Cheers, T Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il

Re: [R] (no subject)

2010-09-25 Thread Tal Galili
Did you look at: ?curve Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)

Re: [R] textplot

2010-09-27 Thread Tal Galili
Have a look at ?textplot From the gplots package: http://cran.r-project.org/web/packages/gplots/index.html Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) |

Re: [R] Output Graphics GIF

2010-09-27 Thread Tal Galili
I am guessing you are saving the plot using the menu system. If that is the case, have a look at: ?pdf ?png Generally, I like saving my graphics to pdf since it is vectorized. Cheers, Tal Contact Details:--- Contact me:

[R] A problem with plotting a long expression in ylab ?

2010-09-28 Thread Tal Galili
Hello, It seems that there is a problem when plotting an expression in the ylab of a plot in case it is too long. Example: plot(1) title(ylab = test looong ) # work plot(1) title(ylab = expression(paste(test (% of 360

Re: [R] A problem with plotting a long expression in ylab ?

2010-09-28 Thread Tal Galili
, Tal Galili tal.gal...@gmail.com wrote: Hello, It seems that there is a problem when plotting an expression in the ylab of a plot in case it is too long. Example: plot(1) title(ylab = test looong ) # work

Re: [R] A problem with plotting a long expression in ylab ?

2010-09-29 Thread Tal Galili
My honor. A short question: if there is something in the device that is sensitive to the overlapping of the text, then is it possible to add a warning massage output when the length of the text is longer then the device dimensions? With much respect, Tal Contact

Re: [R] R 2.11.1 crashes

2010-10-01 Thread Tal Galili
Hello Steve, You'll need to give more information for people to help you. 1) Is this the first time you installed R? Or was it a working R version that suddenly started having this problem? 2) Did you try uninstalling this version, downloading a new version, installing it - and seeing what

Re: [R] plotting wind rose data (Karl Ropkins)

2010-10-02 Thread Tal Galili
Hi Karl, There is an example of using Deducer's with ggplot2 to produce a rose plot (including a video of use), I thought you might find it useful: http://www.r-statistics.com/2010/08/rose-plot-using-deducers-ggplot2-plot-builder/

  1   2   3   4   5   6   7   8   >