[R] COURSE***R/S-plus Fundamentals and Programming Techniques***April2003 - Boston and San Francisco
XLSolutions Corporation (www.xlsolutions-corp.com) is proud to announce a 2-day course: "R/S-plus Fundamentals and Programming Techniques". Boston, MA-> April 10-11 San Francisco -> April 28-29 Course Description: This two-day R/S-plus course focuses on a broad spectrum of topics, from reading raw data to a comparison of R and S. We will learn the essentials of data manipulation, graphical visualization and R/S-plus programming. We will explore statistical data analysis tools, including graphics with data sets. How to enhance your plots. We will perform basic statistics and fit linear regression models. Participants are encouraged to bring data for interactive sessions Course Outline: - An Overview of R: Installation and Demonstration - Data Manipulation and Graphics - Using Lattice Graphics - A Comparison of R and S-Plus - How can R Complement SAS? - Writing Functions - Avoiding Loops - Vectorization - Statistical Modeling - Generalized Linear Models - Linear Regression - Parametric Models, etc - Project Management - Techniques for Effective use of R and S - Enhancing Plots - Using High-level Plotting Functions - Building and Distributing Packages (libraries) Payments are due AFTER the course and early-bird ends February 28. Registration: Email Sue Turner: [EMAIL PROTECTED] Phone: 206-686-1578 x221 Visit us: www.xlsolutions-corp.com/training.htm Course Format: This course consists of a series of short lectures with demonstrations and interactive sessions for the participants. Each student is provided with bound copies of the notes and a CD-ROM containing all examples, exercises and software used on the course. Share Your Thoughts: Are there any additional topics you would like for this course to address? Would you like for this course to be offered in another city? Please let us know by contributing to our recommendation list: [EMAIL PROTECTED] R/S-Plus Fundamentals and Programming Techniques / Boston March 2003 Pre-registration Form (Please email or print and fax: 206-686-1578) XLsolutions Corporation: For your Solutions needs, Consulting and Training. www.xlsolutions-corp.com Title.. First Name . Last Name Organization.. Mailing Address... . . Zip Code.. Country. Telephone... Fax ... E-mail Elvis Miller, PhD Manager Training and Technical Support North American Division XLSolutions Corporation Email: [EMAIL PROTECTED] Phone: 206-686-1578 Web: www.xlsolutions-corp.com __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R]
On Wed, 19 Mar 2003, kjetil brinchmann halvorsen wrote: > On 19 Mar 2003 at 8:57, Michael D. Ward wrote: > > Please use a subject line! > > I have a machine with 1.5Gb of physical memory, and have for a long > time used --max-mem-size 2G, > without any problems. Just yesterday that wasn't enough, so I tried > to increase to --max-mem-size 4G, which was rejected by R. > I lowered to 3G, and the program seemt to be running fine, but > eventually I had to kill the process (hanging). > > This is windows XP professional. So, at least on XP, there is > certainly not a hard coded limit of 1G. But why the limit somewhere > between 3 and 4G? > Well, 4Gb is the maximum addressable with 32bit pointers and you would need to fit the operating system and the R program in there as well as the R heap. -thomas __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] Question about Error due to memory allocation issue
On Thu, 20 Mar 2003, Jeannette Wicks-Lim wrote: > Hi, > > I'm new to using R and I'm having problems in trying to do some quantile > regressions with the package quantreg. When I try to use rq [specifically, I > type in: rq(lnwagehr~lnmin1 + lncpi + ue03 + ue35 + ue57 + ue79, tau=.05, > data=mydata, weights=pworwgt, method="fn", na.omit) ] , the computer churns for > about 15 minutes and then spits out the following error message: > > Error: cannot allocate vector of size 109035 Kb > This means that it tried to allocate 109035k on top of what was already allocated, and couldn't. You probably can't fit this model in the memory. Fortunately you probably don't want to. You can almost certainly either aggregate to a smaller number of observations or analyse subgroups of the data and get a more useful result as well as one that R can compute. -thomas __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] Your Free Traffic Software!
Hello R Thank you for visiting our Marketing 2 Success website. If you haven't yet had a good look at our website, you should because we offer a simple turnkey business solution that makes money for anyone willing to spend a few hours per week. This is not your typical internet get-rich money game! This is a real, worldwide home business opportunity that will work for anyone. http://www.marketing2success.com/cgi-bin/r.cgi/trackID M2S Staff You can get your free internet promotion software and internet detective via the below link. http;//www.marketing2success.com/edownload.html You can also have 20 of the hottest selling E-books for free, with full resale rights. It's all yours for the taking. http://www.marketing2success.com/edownload.html To unsubscribe: http://www.marketing2success.com/cgi-bin/autoresponder/ar.cgi?mode=r&a=m2s&[EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] The best way to end up with TIFF {Was: end up with WMF)
On 21 Mar 2003, Peter Dunn wrote: > I posted a couple of days ago about how to end up with wmf files > eventually in R for linux. > > The short answer was: you (probably) can't...and don't! > > The journal in question also accepts TIFF files, I am told (it's > a physiology journal). > > So I adjust my question: What is the best way to get TIFF files > out of R? It can't create them directly as far as I can tell. > ImageMagick's convert can create TIFF; what is the best way to > get there from R? Thru postscript first? Via PNG, probably, although bitmap() will automate going via postscript. Note that TIFF is a multitude of formats, and not all tools accept all the sub-formats, in particular compression schemes, so I would use uncompressed TIFF. -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] The best way to end up with TIFF {Was: end up with WMF)
Hi all I posted a couple of days ago about how to end up with wmf files eventually in R for linux. The short answer was: you (probably) can't...and don't! The journal in question also accepts TIFF files, I am told (it's a physiology journal). So I adjust my question: What is the best way to get TIFF files out of R? It can't create them directly as far as I can tell. ImageMagick's convert can create TIFF; what is the best way to get there from R? Thru postscript first? P. -- Dr Peter Dunn (USQ CRICOS No. 00244B) Web:http://www.sci.usq.edu.au/staff/dunn Email: dunn @ usq.edu.au Opinions expressed are mine, not those of USQ. Obviously... __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] R-1.6.2: installation problem on Solaris 2.8
> > There is a bug in gcc-3.2.1 (and 3.2.2) on Solaris. Don't use them. > > It has been reported and acknowledged by the gcc maintainers. I changed to gcc-2.95.3 (by setting CC and CXX environment variables) and everything is fine now. Thanks. -- Bo Peng __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] command line limit?
Is there a limit on the length of a command line in R? Thanks, Dan __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] param() in R
Are there equivalent functions in R to the param() and parameters() in Splus? Thank you. __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] Plot multi series on one plot
R help, How can I plot the below data table by Data ~ Site and group by Grinder and Equip Id so I get a chart like this Excel version? I have tried coplot with little success and lattice makes a pretty good chart like I want, but I am using the DCOM so it does not display correctly. I would like to make this using the base library if possible. <<...OLE_Obj...>> DATA TABLE BATCH EQUIPID MEAN RANGEGRINDER SITEDATA 1 10100018 2250.073 461.01 GRD001 LOC001 2429.86 2 10100018 2250.073 461.01 GRD001 LOC002 2300.81 3 10100018 2250.073 461.01 GRD001 LOC003 2327.50 4 10100018 2250.073 461.01 GRD001 LOC004 2318.72 5 10100018 2250.073 461.01 GRD001 LOC005 2363.11 6 10100018 2250.073 461.01 GRD001 LOC006 2413.53 7 10100018 2250.073 461.01 GRD001 LOC007 2586.55 8 10100018 2250.073 461.01 GRD002 LOC001 2252.66 9 10100018 2250.073 461.01 GRD002 LOC002 2136.54 10 10100018 2250.073 461.01 GRD002 LOC003 2139.90 11 10100018 2250.073 461.01 GRD002 LOC004 2160.41 12 10100018 2250.073 461.01 GRD002 LOC005 2160.30 13 10100018 2250.073 461.01 GRD002 LOC006 2202.80 14 10100018 2250.073 461.01 GRD002 LOC007 2301.19 15 10100018 2250.073 461.01 GRD003 LOC001 2224.50 16 10100018 2250.073 461.01 GRD003 LOC002 2132.33 17 10100018 2250.073 461.01 GRD003 LOC003 2125.54 18 10100018 2250.073 461.01 GRD003 LOC004 2145.55 19 10100018 2250.073 461.01 GRD003 LOC005 2140.55 20 10100018 2250.073 461.01 GRD003 LOC006 2159.47 21 10100018 2250.073 461.01 GRD003 LOC007 2229.72 22 10100019 2229.146 460.00 GRD001 LOC001 2278.88 23 10100019 2229.146 460.00 GRD001 LOC002 2303.24 24 10100019 2229.146 460.00 GRD001 LOC003 2342.55 25 10100019 2229.146 460.00 GRD001 LOC004 2226.61 26 10100019 2229.146 460.00 GRD001 LOC005 2577.06 27 10100019 2229.146 460.00 GRD001 LOC006 2301.44 28 10100019 2229.146 460.00 GRD001 LOC007 2211.39 29 10100019 2229.146 460.00 GRD002 LOC001 2152.65 30 10100019 2229.146 460.00 GRD002 LOC002 2272.51 31 10100019 2229.146 460.00 GRD002 LOC003 2219.08 32 10100019 2229.146 460.00 GRD002 LOC004 2152.11 33 10100019 2229.146 460.00 GRD002 LOC005 2321.38 34 10100019 2229.146 460.00 GRD002 LOC006 2178.04 35 10100019 2229.146 460.00 GRD002 LOC007 2175.39 36 10100019 2229.146 460.00 GRD003 LOC001 2120.77 37 10100019 2229.146 460.00 GRD003 LOC002 2220.48 38 10100019 2229.146 460.00 GRD003 LOC003 2151.57 39 10100019 2229.146 460.00 GRD003 LOC004 2117.06 40 10100019 2229.146 460.00 GRD003 LOC005 2219.41 41 10100019 2229.146 460.00 GRD003 LOC006 2131.36 42 10100019 2229.146 460.00 GRD003 LOC007 2139.09 Mike __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] Install R on unix
Hello, I just tried to install R (unix version), but I have not successed. I download the file and uncompresssed it in a R folder. then I used the following commands: ./configure make The attached are error message: Could any one tell me how to fix it?? Thanks R is now configured for sparc-sun-solaris2.6 Source directory: . Installation directory:/usr/local C compiler:gcc -g -O2 C++ compiler: g++ -g -O2 Fortran compiler: f77 -g X11 support: yes Gnome support: no Tcl/Tk support:yes Readline support: no R profiling support: yes R as a shared library: no Recommended packages: yes configure: WARNING: you cannot build DVI versions of the R manuals configure: WARNING: you cannot build info versions of the R manuals configure: WARNING: you cannot build PDF versions of the R manuals slri05:/home/pingzhao/R/R-1.6.2> make creating src/scripts/R.fe mkdir -p -- ../../bin Stata 6 installation The installation files are missing (no action taken) *** Error code 1 make: Fatal error: Command failed for target `install-cmds' Current working directory /home/pingzhao/R/R-1.6.2/src/scripts *** Error code 1 make: Fatal error: Command failed for target `R' Current working directory /home/pingzhao/R/R-1.6.2/src/scripts *** Error code 1 make: Fatal error: Command failed for target `R' Current working directory /home/pingzhao/R/R-1.6.2/src *** Error code 1 make: Fatal error: Command failed for target `R' __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] RH 8.0, Mozilla and help.start() - Deja Vu All Over Again....
Hi all, In the continuing process of dealing with the upgrades to Mozilla under RH 8.0 Linux (present stable release is 1.3) and as a result, the "breakage" of R's help.start() function, which is a java applet based search engine, I wanted to point out to folks some key points of information. If you are upgrading to Mozilla version 1.3 under RH 8.0 from an older version, even one of the devel versions such as 1.3a or 1.3b, you need to carefully read the Installation Notes at: http://www.mozilla.org/releases/mozilla1.3/ Most significantly in this case, is that the RPMS for RH 8.0 of this version of Mozilla are compiled with gcc version 3.2. The present official release of Java from Sun is not and therefore the Sun Java plugins for Mozilla will not work with 1.3, breaking help.start(). As of this writing Sun does not have a gcc 3.2 compiled Java download available, though is expected to in the near future. In order to get help.start() working in this scenario, you need to download the gcc 3.2 compiled versions of Java from one of the Blackdown.org mirrors at: http://www.blackdown.org/java-linux/mirrors.html Once at the mirror of your choice, go into the JDK-1.4.1/i386/01 folder. Download: j2re-1.4.1-01-linux-i586-gcc3.2.bin INSTALL-j2re README Be sure to read the README and INSTALL-j2re files carefully and fully. The .bin file is the install executable and you of course, need to change the file attributes to make it executable after download. Note that by default this file will extract and install in its download directory and it does not prompt you for a target. Again, read the installation instructions carefully. The key will be to remove the existing Java shortcut in your Mozilla plugins folder, which for me using Moz 1.3 is: /usr/lib/mozilla-1.3/plugins Depending upon what version of Java you presently have installed, the existing shortcut may be to .../javaplugin_oji.so or to .../libjavaplugin_oji.so. Once you have installed the Blackdown.org version of Java as per the installation instructions, you will need to recreate the shortcut to the new Java plugin, which for me is: /usr/java/j2re1.4.1/plugin/i386/mozilla/javaplugin_oji.so Hence, in the /usr/lib/mozilla-1.3/plugins folder using a terminal as root, enter: ln -s /usr/java/j2re1.4.1/plugin/i386/mozilla/javaplugin_oji.so Of course, in each case, replace my path(s) with yours, if different. Finally, be sure that in the Mozilla Preferences settings, you have BOTH Java and JavaScript enabled on the Advanced and Advanced/Scripts&Plugins tabs respectively. Basically, once you have completed these steps, help.start() should work with Moz 1.3. If it is working properly, you should see a Mozilla status line message indicating that the Java applet has started ("Applet SearchEngine Started") when you go to the Search Engine & Keywords search page (not the initial page). I hope that this information helps folks. This seems to be an ongoing (but hopefully not never ending) saga. Best regards, Marc Schwartz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] ANOVA: F value >1 or < 1
The F ratio compares the variability between groups to a supposedly independent estimate of what that variability would be if there were no group effect. If F is large (much greater than 1), it suggests that there probably is a group effect. If F is small (quite close to 0), it suggests some other violation of assumptions. This can occur in a balanced 2-way layout where factor A is unimportant while B is large but excluded from the model. tst.df2 <- data.frame(A=rep(letters[1:2], each=2), B=rep(letters[1:2], 2), y = rep(1:2, 2)+0.01*rnorm(4)) anova(lm(y~A, tst.df2)) Analysis of Variance Table Response: y Df Sum Sq Mean Sq F value Pr(>F) A 1 0.00010 0.00010 2e-04 0.9896 Residuals 2 0.96970 0.48485 Hope this helps Spencer Graves Rishabh Gupta wrote: Hello, I have a question regarding anova. I am a bit comfused about the F value. My understanding is that the F value indicates the ability of numerical variable V to discriminate between different values of grouping variable G. If the F value is equal or close to 1.0, it means that all the variances of the groups are similar and that V is unable to discriminate for G. On the other hand if the F value is far from 1.0, it suggests that the variances of the groups are different. The issues that I am comfused about is F values of <1 vs >1. My understanding is that the values are equal to their reciprocal as far as the discriminance is concerned. So 0.5 is equivalent to 1/0.5. Could somebody please tell me whether this is correct or not, or whether I have got it completely wrong. Your help is greatly apprecited. Many Thanks Rishabh __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] R help
Dear colleagues, Where I can find datasets for exploring the “detection of change-point in regression relationship” problem? I would appreciate any information about sources of such datasets inside or outside R. Thank you, Max --- This message contains no viruses. Guaranteed by Kaspersky Anti-Virus. www.antivirus.lv __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] Question about Error due to memory allocation issue
Hi, I'm new to using R and I'm having problems in trying to do some quantile regressions with the package quantreg. When I try to use rq [specifically, I type in: rq(lnwagehr~lnmin1 + lncpi + ue03 + ue35 + ue57 + ue79, tau=.05, data=mydata, weights=pworwgt, method="fn", na.omit) ] , the computer churns for about 15 minutes and then spits out the following error message: Error: cannot allocate vector of size 109035 Kb I'm not sure what it going on but here is some (possibly) relevant info: -My computer has 512Mb of memory -My data set was originally in Stata and I read it into R using the package foreign -My data set is VERY LARGE: about 1.4 million obs. The data set was 90Mb in Stata. The model I've tried to evaluate only has 5 variables, but I'd like to expand this to about 43 (I have lots of state and year dummies). I have tried using the command: memory.size(max=TRUE): > memory.size(max=TRUE) [1] 2076487680 but I then get (after submitting another rq command): Error: cannot allocate vector of size 76324 Kb Thanks very much for any help you can provide! Jeannette Wicks-Lim Department of Economics University of Massachusetts, Amherst Amherst, MA 01003 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] ANOVA: F value >1 or < 1
Hello, I have a question regarding anova. I am a bit comfused about the F value. My understanding is that the F value indicates the ability of numerical variable V to discriminate between different values of grouping variable G. If the F value is equal or close to 1.0, it means that all the variances of the groups are similar and that V is unable to discriminate for G. On the other hand if the F value is far from 1.0, it suggests that the variances of the groups are different. The issues that I am comfused about is F values of <1 vs >1. My understanding is that the values are equal to their reciprocal as far as the discriminance is concerned. So 0.5 is equivalent to 1/0.5. Could somebody please tell me whether this is correct or not, or whether I have got it completely wrong. Your help is greatly apprecited. Many Thanks Rishabh __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] Measure of Redundancy In Variables
Have you considered "factanal" in library "mva"? How do the "uniquenesses" in the "factanal" object relate to what you want? From what I read of your question, it sounds like they estimate exactly what you want. Hope this helps. Spencer Graves Rishabh Gupta wrote: Hi all, I have a question which I guess is more of a general stats question than a specific R quetions. I have a data set that contains a large number of numerical variables (in the hundreds). What I would like to do is quantify the redundancy in those variables. Let me explain what I mean by that. If I use Principle Component Analysis (PCA) to reduce the amount of variables, the process measures the relationship between the different variables and reorganises it so that each variable provides unique information and removes any redundancy between different variables. What I would like to do is a kind of measure between the data before PCA and after PCA. For example, if there is no redundancy, i.e. all of the pre-PCA variables provide unique information, the redundancy rate would be 100%. On the other hand if all the pre-PCA variables provide the same information than the redundancy rate would be 1%. Could anyone tell me if there is a method of measuring this redundancy rate or something similar in R. If somebody could help me with this issue it would be greatly appreciated. Many Thanks Rishabh __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] Measure of Redundancy In Variables
Hi all, I have a question which I guess is more of a general stats question than a specific R quetions. I have a data set that contains a large number of numerical variables (in the hundreds). What I would like to do is quantify the redundancy in those variables. Let me explain what I mean by that. If I use Principle Component Analysis (PCA) to reduce the amount of variables, the process measures the relationship between the different variables and reorganises it so that each variable provides unique information and removes any redundancy between different variables. What I would like to do is a kind of measure between the data before PCA and after PCA. For example, if there is no redundancy, i.e. all of the pre-PCA variables provide unique information, the redundancy rate would be 100%. On the other hand if all the pre-PCA variables provide the same information than the redundancy rate would be 1%. Could anyone tell me if there is a method of measuring this redundancy rate or something similar in R. If somebody could help me with this issue it would be greatly appreciated. Many Thanks Rishabh __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] postscript problems
On Wed, 19 Mar 2003, Charles Taylor wrote: > I am using R-1.6.1 and when I save a figure using > > dev.print(file="figure.eps") > > and then insert this figure into a LaTeX file (using > \includegraphics and the package graphicx) , the figure > obscures some nearby text (it gets blanked out by "white"). > > Comparing the postscript file to that produced by an earlier > version of R I can see the extra lines marked with a star below: > > > > %%Page: 1 1 > bp > /bg { 1. 1. 1. } def * > 0.00 0.00 841.89 595.28 r p2 * > 204.83 90.14 318.71 513.85 cl * > 204.83 90.14 318.71 513.85 cl > > > If I remove these 3 lines by hand the problem disappears, but > surely there is an easier way!? It works for a particular example on WinNT, R-1.6.2. Please tell us your OS. Please provide an example that reproduces your problem. Uwe Ligges __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] dataframes (The message that once had a suspicious header)
Ernesto Jardim wrote: > Hi > > I want to combine 2 dataframes (t1 and t2) in order to get a third one > (t3). The dataframes are below. > > In SQL I would do something like: > > SELECT t1.f1,t1.f2,t1.f3,t2.f4 FROM t1, t2 > WHERE t1.f1=t2.f1 AND t1.f2=t2.f2 > > How can I do it with R ? > > Thanks > > EJ > > > t1 > f1 f2 f3 > 1 A C E1 > 2 A D E2 > 3 B C E3 > 4 B D E4 > > t2 > f1 f2 f4 > 1 A C F1 > 2 A C F2 > 3 B C F3 > 4 B C F4 > 5 A D F5 > 6 A D F6 > > t3 > f1 f2 f3 f4 > 1 A C E1 F1 > 2 A C E1 F2 > 3 B C E3 F3 > 4 B C E3 F4 > 5 A D E2 F5 > 6 A D E2 F6 > > __ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help Try function "merge". For details see: help(merge) > t1 [,1] [,2] [,3] [1,] "A" "C" "E1" [2,] "A" "D" "E2" [3,] "B" "C" "E3" [4,] "B" "D" "E4" > t2 [,1] [,2] [,3] [1,] "A" "C" "F1" [2,] "A" "C" "F2" [3,] "B" "C" "F3" [4,] "B" "C" "F4" [5,] "A" "D" "F5" [6,] "A" "D" "F6" > merge(t1,t2,1:2) V1 V2 V3.x V3.y 1 A C E1 F1 2 A C E1 F2 3 A D E2 F5 4 A D E2 F6 5 B C E3 F3 6 B C E3 F4 --- Peter Wolf __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] R-1.6.2: installation problem on Solaris 2.8
On Thu, Mar 20, 2003 at 07:29:00AM +, [EMAIL PROTECTED] wrote: > > I tried to compile R-1.6.2 from source on Solaris 2.8. There is no > > problem with configure and make. However, `make test' fails with error > > message: > [...] > > I am using gcc 3.2.1, I can supply further info if necessary. > There is a bug in gcc-3.2.1 (and 3.2.2) on Solaris. Don't use them. > It has been reported and acknowledged by the gcc maintainers. That is unfortunate. Is there any work-around? I tried to set environment variable cpp as /usr/site/gcc-2.95.3/bin/gcc or gcc-3.0.4 but ./configure says ... checking command to parse /usr/ccs/bin/nm -p output... ok checking how to run the C preprocessor... /usr/site/gcc-2.95.3/bin/gcc configure: error: C preprocessor "/usr/site/gcc-2.95.3/bin/gcc" fails sanity check See `config.log' for more details. -- Bo Peng __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] dataframes (The message that once had a suspicious header)
Hi I want to combine 2 dataframes (t1 and t2) in order to get a third one (t3). The dataframes are below. In SQL I would do something like: SELECT t1.f1,t1.f2,t1.f3,t2.f4 FROM t1, t2 WHERE t1.f1=t2.f1 AND t1.f2=t2.f2 How can I do it with R ? Thanks EJ > t1 f1 f2 f3 1 A C E1 2 A D E2 3 B C E3 4 B D E4 > t2 f1 f2 f4 1 A C F1 2 A C F2 3 B C F3 4 B C F4 5 A D F5 6 A D F6 > t3 f1 f2 f3 f4 1 A C E1 F1 2 A C E1 F2 3 B C E3 F3 4 B C E3 F4 5 A D E2 F5 6 A D E2 F6 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] [Fwd: Your message to R-help awaits moderator approval]
I've received this message from the R list. What is this ? Why is my header "suspicious" ? EJ -Forwarded Message- > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Your message to R-help awaits moderator approval > Date: 20 Mar 2003 15:36:40 +0100 > > Your mail to 'R-help' with the subject > > combining dataframes > > Is being held until the list moderator can review it for approval. > > The reason it is being held: > > Message has a suspicious header > > Either the message will get posted to the list, or you will receive > notification of the moderator's decision. If you would like to cancel > this posting, please visit the following URL: > > > https://www.stat.math.ethz.ch/mailman/confirm/r-help/c5faf8e878507308cb9ec9afd25782cbb1e96239 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] The best way to end up with WMF files
Hi Peter, Have you looked at openoffice? http://www.openoffice.org/ It can import and export to a variety of formats, including WMF. It works on my Windows version, not sure about the Linux version. HTH steve > > -Original Message- > > From: Peter Dunn [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, March 19, 2003 6:57 PM > > To: [EMAIL PROTECTED] > > Subject: [R] The best way to end up with WMF files > > > > > > Hi all > > > > I am doing some stats work for a group of biologists > > who require windows metafiles (*.wmf) for their publications. > > To create these, I appear to have two choices: > > > > 1. Restart my machine in Windows and use savePlot > > 2. Keep my machine in linux, save as another format, > > then convert. > > > > I'd rather stay in linux; but how do I get wmf files? I looked > > at using ImageMagick's convert, but it appears only to *read* > > wmf files and not write them according to the help (not that > > I could get it to read them when I tried... but that's another > > story). > > > > And if I do create another format first and eventually end up with > > a wmf, what is the best way to get there without loosing quality > > on the way through the conversion(s)? > > > > So my question is this: How can I end up with a wmf files using > > linux, without sacrificing too much (any?) quality on the way? > > > > I looked in the Mail archives and couldn't find anything useful. > > > > Thanks as always, > > > > P. > > > > -- > > Dr Peter Dunn (USQ CRICOS No. 00244B) > > Web:http://www.sci.usq.edu.au/staff/dunn > > Email: dunn @ usq.edu.au > > Opinions expressed are mine, not those of USQ. Obviously... > > > > __ > > [EMAIL PROTECTED] mailing list > > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > > > > -- > > __ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
RE: [R] Matrix problems
It 'unwraps' the 200,000 x 2 matrix into a vector with 400,000 elements and giving you the location/subscripts of this vector that matches the criterion. Instead you should use apply(mat1, 2, function(y) which( y == 2 )) which gives you the rows in each column that corresponds to 185. Try length(mat1) and dim(mat1) and you will see that for length(), it coerces the object into a vector first. -Original Message- From: Mmarques INESC [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 7:49 PM To: R-help Mailing list. Subject: [R] Matrix problems Hi all. I do not know if it is a bug in the windows version but i have this problem. Reading a file with 20 rows, 2 columns and transforming into a 20 x 2 matrix. If I try to find an element by using the which command which gives some correct indexes plus some others passing the 20 row boundaries. If I try to reach those "outbound" indexs I get an "Error: subscript out of bounds" . Is this a limitation of matrix function ? or am i doing something wrong ? Example : > str(mat1) num [1:20, 1:2] 185 212 222 269 342 349 361 367 397 423 ... > which(mat1 == 185) [1] 1 201920 203792 205211 206604 220417 223767 225169 239420 243768 249351 249395 252077 What could be happening ? Thanks in advance Mark Marques __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] Matrix problems
On Thu, 20 Mar 2003, Mmarques INESC wrote: > Hi all. > I do not know if it is a bug in the windows version but i have this > problem. > Reading a file with 20 rows, 2 columns and transforming into a > 20 x 2 matrix. > If I try to find an element by using the which command which gives > some correct indexes plus some others passing the 20 row > boundaries. > If I try to reach those "outbound" indexs I get an "Error: subscript out > of bounds" . > Is this a limitation of matrix function ? or am i doing something > wrong ? > Example : > > > str(mat1) > num [1:20, 1:2] 185 212 222 269 342 349 361 367 397 423 ... > [1] 1 201920 203792 205211 206604 220417 223767 225169 239420 243768 249351 > 249395 252077 > What could be happening ? > > which(mat1 == 185) mat1 is a matrix 20x2 but also a vector of length 40. Try > ?which and > which(mat1 == 185, arr.ind = TRUE) Göran --- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] Matrix problems
Hi all. I do not know if it is a bug in the windows version but i have this problem. Reading a file with 20 rows, 2 columns and transforming into a 20 x 2 matrix. If I try to find an element by using the which command which gives some correct indexes plus some others passing the 20 row boundaries. If I try to reach those "outbound" indexs I get an "Error: subscript out of bounds" . Is this a limitation of matrix function ? or am i doing something wrong ? Example : > str(mat1) num [1:20, 1:2] 185 212 222 269 342 349 361 367 397 423 ... > which(mat1 == 185) [1] 1 201920 203792 205211 206604 220417 223767 225169 239420 243768 249351 249395 252077 What could be happening ? Thanks in advance Mark Marques __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
RE: [R] The best way to end up with WMF files
Hi Peter, > And if I do create another format first and eventually end up with > a wmf, what is the best way to get there without loosing quality > on the way through the conversion(s)? > > So my question is this: How can I end up with a wmf files using > linux, without sacrificing too much (any?) quality on the way? If I understand your questions correctly, one other potential option comes from the libEMF ( http://libemf.sourceforge.net/ and http://sourceforge.net/projects/libemf ) library and a tool called pstoedit ( http://www.pstoedit.net/pstoedit/ ). With these I have had some success converting PostScript formatted (single) data graphs into Enhanced Windows Metafile format (EMF) under Linux. My tests have not been extensive, however, just some simple scatterplots with lowess curves and a couple of the lattice/grid examples. The quality of the graphs was acceptable to me in these simple tests, and the desirable resolution characteristics of vector-based graphs remained. Some fiddling was needed to get pstoedit to recognize libEMF at build time - I use Mandrake 9.0. The libEMF library in particular required some patches to handle gcc 3.x. These patches have been submitted but the libEMF author has not updated the original tarball yet. The patches were fairly simple to apply, although I did not document my path in doing so. Also, pstoedit runs under Windows, and the conversion to WMF/EMF is implicit in its already built installer, so perhaps the biologists would not object to doing the conversion from PostScript -> WMF directly on their machines? (No GUI, of course, and ghostscript installation may be required if I remember correctly, so I understand this may not be feasible for your target audience. I also recall that the a flag to rotate the graphs was needed.) Hope that helps, Bill Bill Pikounis, Ph.D. Biometrics Research Department Merck Research Laboratories PO Box 2000, MailDrop RY84-16 126 E. Lincoln Avenue Rahway, New Jersey 07065-0900 USA [EMAIL PROTECTED] Phone: 732 594 3913 Fax: 732 594 1565 > -Original Message- > From: Peter Dunn [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 19, 2003 6:57 PM > To: [EMAIL PROTECTED] > Subject: [R] The best way to end up with WMF files > > > Hi all > > I am doing some stats work for a group of biologists > who require windows metafiles (*.wmf) for their publications. > To create these, I appear to have two choices: > > 1. Restart my machine in Windows and use savePlot > 2. Keep my machine in linux, save as another format, > then convert. > > I'd rather stay in linux; but how do I get wmf files? I looked > at using ImageMagick's convert, but it appears only to *read* > wmf files and not write them according to the help (not that > I could get it to read them when I tried... but that's another > story). > > And if I do create another format first and eventually end up with > a wmf, what is the best way to get there without loosing quality > on the way through the conversion(s)? > > So my question is this: How can I end up with a wmf files using > linux, without sacrificing too much (any?) quality on the way? > > I looked in the Mail archives and couldn't find anything useful. > > Thanks as always, > > P. > > -- > Dr Peter Dunn (USQ CRICOS No. 00244B) > Web:http://www.sci.usq.edu.au/staff/dunn > Email: dunn @ usq.edu.au > Opinions expressed are mine, not those of USQ. Obviously... > > __ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > -- __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help