Re: [R] Executable expressions

2012-01-18 Thread Charlie Sharpsteen
On Wed, Jan 18, 2012 at 1:18 PM, Ajay Askoolum aa2e...@yahoo.co.uk wrote: Given a-c(1,2,3,4,5) How can  I evaluate the variable a to return a (numeric) vector comprising of 1,2,3,4,5? Thanks. You can also use an active binding:     makeActiveBinding('a', function(){c(1,2,3,4,5)},

[R] [R-pkgs] tikzDevice 0.6.2

2011-11-18 Thread Charlie Sharpsteen
Version 0.6.2 of the tikzDevice was recently posted to CRAN and should be making its way to a local mirror. The tikzDevice package provides a graphics device that translates R graphics into TeX code suitable for inclusion in LaTeX documents. Version 0.6.2 is primarily a maintenance release that

[R] [R-pkgs] tikzDevice 0.6.0

2011-04-14 Thread Charlie Sharpsteen
Cameron and I are pleased to announce version 0.6.0 of the tikzDevice package which should be available shortly at your local CRAN mirror! The tikzDevice makes it possible to export R graphics as LaTeX code that can be included in other documents or compiled into stand alone figures. The full

[R] [R-pkgs] tikzDevice 0.5.3 released to CRAN

2010-12-07 Thread Charlie Sharpsteen
A new release of the tikzDevice was posted to CRAN today and will soon be available from mirrors worldwide. The tikzDevice package provides a graphics device that translates R graphics into TeX code suitable for seamless integration with LaTeX documents. Version 0.5.3 of the tikzDevice is a

[R] [R-pkgs] Announcing TikZ Device 0.5.2

2010-10-16 Thread Charlie Sharpsteen
Version 0.5.2 of the tikzDevice is now available on CRAN in source form. Binary builds will become available in the next few days. This build supersedes 0.5.1, which was just released a couple of days ago. Version 0.5.2 is a recommended upgrade for all users as it contains fixes a major issue:

[R] [R-pkgs] tikzDevice 0.5.0 released to CRAN

2010-08-10 Thread Charlie Sharpsteen
# tikzDevice --- ## Description The tikzDevice package new graphics device for R which enables direct output of graphics in a LaTeX-friendly way. Plotting commands issued by R functions are transformed into LaTeX code blocks. These blocks are interpreted with the help of TikZ-- a graphics

Re: [R] R help question: How can we enable useRs to contribute corrections to help files faster ?

2010-03-01 Thread Charlie Sharpsteen
, could you change the man page attribution from: \author{ David Scott d.sc...@auckland.ac.nz from code on R-help originally due to Sharpie ch...@sharpsteen.net. } To: \author{ David Scott d.sc...@auckland.ac.nz from code on R-help originally due to Charlie Sharpsteen sou...@sharpsteen.net

Re: [R] open script file from command line

2010-02-05 Thread Charlie Sharpsteen
On Thu, Feb 4, 2010 at 4:53 PM, Wade Wall wade.w...@gmail.com wrote: Hi all, Is there a function to open a script file from the command line? I have several students who are Mac users and when they open up a script file it does not send commands to the console, and unfortunately I don't

Re: [R] open script file from command line

2010-02-05 Thread Charlie Sharpsteen
On Linux and Unix machines, such as OS X, a the following hashbang line could be added to the top of the script: #!/usr/bin/env Rscript Then the script can be run from a terminal using: cd path/to/script/files I forgot to mention that in order to use the hashbang method of

Re: [R] mysterious extra spaces appearing in expression paste

2010-02-05 Thread Charlie Sharpsteen
On Fri, Feb 5, 2010 at 9:41 AM, George Locke george.locke.phys...@gmail.com wrote: Hey, So I found workaround for what I'm now pretty sure is a bug. the reason I'm sure it's a bug is that i found that I found that linebreaks are handled in a wonky but regular way.  There's a rule, and it's

Re: [R] 2 dimensional interpolation from matlab to R

2010-02-05 Thread Charlie Sharpsteen
On Thu, Feb 4, 2010 at 4:03 AM, karine heerah karine.hee...@hotmail.fr wrote: Hi everybody. i have 2 datasets : one with a long grid a lat grid and a bathymetry grid the second one only has the long and lat coordinates. So i want to know the bathymetry associated to the second dataset. I

Re: [R] Reading large files

2010-02-05 Thread Charlie Sharpsteen
On Thu, Feb 4, 2010 at 5:27 PM, Vadlamani, Satish {FLNA} satish.vadlam...@fritolay.com wrote: Folks: I am trying to read in a large file. Definition of large is: Number of lines: 333, 250 Size: 850 MB Perhaps this post by JD Long will provide an example that is suitable to your situation:

Re: [R] How to uninstall R packages

2010-01-04 Thread Charlie Sharpsteen
On Mon, Jan 4, 2010 at 7:37 AM, David Winsemius dwinsem...@comcast.net wrote: On Jan 4, 2010, at 10:23 AM, Uwe Ligges wrote: On 04.01.2010 16:20, wenjun zheng wrote: Dear all, I am puzzled that how can i uninstall a R package that have been installed earlier (especially in MacOS). Any

Re: [R] Package creation - require statement?

2009-12-19 Thread Charlie Sharpsteen
On Fri, Dec 18, 2009 at 3:50 PM, Jeff Breiwick jeff.breiw...@noaa.gov wrote: Thanks for you advice.  I do, in fact, have a call to RODBC in my function that uses RODBC functions. The first line of that function is require(RODBC). The odd thing is if I leave off ROBDC from the DESCRIPTION file

Re: [R] How to print to file?

2009-12-18 Thread Charlie Sharpsteen
On Fri, Dec 18, 2009 at 12:12 PM, Peng Yu pengyu...@gmail.com wrote: I don't find a function to print a string to file. Would somebody let me know what function I should use? I generally use writeLines() to print a string or vector of strings. -Charlie [[alternative HTML version

Re: [R] how to import data from excel to R

2009-12-17 Thread Charlie Sharpsteen
On Thu, Dec 17, 2009 at 9:24 AM, sta_2...@spectrum.net.in wrote: Hi,   I am using R and I want to know how data can be transferred from Excel Spread sheet to R for analyzing. I have done like this mydata-read.table(C:\Documents and Settings\admin\Desktop\data.txt); but its not working how

Re: [R] Why a list of NULL's are reduced to NULL?

2009-12-11 Thread Charlie Sharpsteen
On Fri, Dec 11, 2009 at 10:24 AM, Peng Yu pengyu...@gmail.com wrote: How do you figure out all the possibilities? Well, the Value section of the third party function's help page should outline the return types it produces. If it doesn't cover all cases, write a letter to the package

Re: [R] Is R-2.10.0 released already

2009-12-01 Thread Charlie Sharpsteen
On Tue, Dec 1, 2009 at 6:19 PM, Hiroto Miyoshi hiroto_miyo...@nexyzbb.ne.jp wrote: Dear R users, and Dr. Delagard I got an R-announce message which tells that R-2.10.0 will be released on December 4, 2009. According to the message I received it was the first patch release, 2.10.1, that was

Re: [R] Reading from Google Docs

2009-11-25 Thread Charlie Sharpsteen
On Wed, Nov 25, 2009 at 5:39 AM, Farrel Buchinsky fjb...@gmail.com wrote: I recently installed R 2.10 Now I get library(RGoogleDocs) Loading required package: RCurl Loading required package: bitops Loading required package: XML Attaching package: 'RGoogleDocs'        The following

Re: [R] Reading from Google Docs

2009-11-25 Thread Charlie Sharpsteen
On Wed, Nov 25, 2009 at 12:02 PM, Farrel Buchinsky fjb...@gmail.com wrote: I reinstalled from a binary that Duncan Temple Lang placed in omegahat. I see that omegahat has a subdirectory for each version of R. There is not a directory for 2.10. I took the liberty of taking it from the 2.9

Re: [R] Calling R (GAMM) from Fortran

2009-11-19 Thread Charlie Sharpsteen
On Thu, Nov 19, 2009 at 12:14 PM, Paul Warren Simonin paul.simo...@uvm.edu wrote:   Hello,     I am currently working on a modeling project using Fortran to run large repetitive loops (many DO loops). As part of this process I would like to use a model fit in R and currently stored as an R

Re: [R] Is there an variant of apply() that does not return anything?

2009-11-19 Thread Charlie Sharpsteen
On Thu, Nov 19, 2009 at 2:21 PM, Peng Yu pengyu...@gmail.com wrote: There are a few version of apply() (e.g., lapply(), sapply()). I'm wondering if there is one that does not return anything but just silently apply a function to the list argument. For example, the plot function is applied to

Re: [R] Web implementation of R?

2009-11-05 Thread Charlie Sharpsteen
On Thu, Nov 5, 2009 at 10:54 PM, Sam Albers tonightstheni...@gmail.com wrote: Hello, Can anyone recommend a good example of web implementation of R? Can't seem to find anything on my own. Thanks in advance! Sam What do you mean by web implementation? An interactive session? A

Re: [R] Safe way to automatically install required packages...

2009-11-02 Thread Charlie Sharpsteen
On Mon, Nov 2, 2009 at 10:56 AM, Jonathan Greenberg greenb...@ucdavis.edu wrote: R-helpers:   I'm working on an r-package that I want to make as easy-to-use as possible for a novice R-user, which includes automatically installing required packages.   I, myself, am a novice R-packager, so the

Re: [R] How to execute a funcition which name is stored in a string?

2009-11-01 Thread Charlie Sharpsteen
On Sun, Nov 1, 2009 at 8:07 PM, Ning Ma pnin...@gmail.com wrote: Hi, everybody Is there any way to execute a function, which name is stored in a string. such as: a - ls() foo(a) ## same as ls() itself. One way to accomplish this by using get() to search for a function that matches your

Re: [R] Color of graph

2009-10-01 Thread Charlie Sharpsteen
On Thu, Oct 1, 2009 at 6:57 AM, Ashta sewa...@gmail.com wrote: I am trying to plot a line graph for 3 or more regression lines abline(m1) abline(m2) abline(m3) Can I change the color of each line? if so how? Thanks in advance Ashta Try passing the 'col' parameter to abline: abline(

Re: [R] How to download from github

2009-09-24 Thread Charlie Sharpsteen
Hmm, clicking on the 'Download' button and then on either the 'TAR' or 'ZIP' icons is working fine for me. It might take a while for the actual download to start-- GitHub has to compress the files which can take a half a minute or more. Also, GitHub appears to be preparing for a move to a new set

Re: [R] Fortran vs R

2009-09-23 Thread Charlie Sharpsteen
-- Forwarded message -- From: Charlie Sharpsteen ch...@sharpsteen.net Date: Wed, Sep 23, 2009 at 8:47 AM Subject: Re: [R] Fortran vs R To: Paul Simonin paul.simo...@uvm.edu Cc: r-h...@r-project.or On Wed, Sep 23, 2009 at 8:13 AM, Paul Simonin paul.simo...@uvm.edu wrote: Hello

Re: [R] Pattern Matching within Vector?

2009-09-21 Thread Charlie Sharpsteen
On Mon, Sep 21, 2009 at 8:07 AM, Anne-Marie Ternes amter...@gmail.comwrote: Dear mailing list, I'm stuck with a tricky problem here - at least it seems tricky to me, being not really talented in pattern matching and regex matters. I'm analysing amino acid mutations by position and type of

Re: [R] xtable - print - suppress output

2009-09-21 Thread Charlie Sharpsteen
On Mon, Sep 21, 2009 at 3:52 PM, Don MacQueen m...@llnl.gov wrote: snip... In other words, there is no such thing as saving the html table into a variable. It just doesn't work that way. All that is possible is to write it (print it) to either the screen or a file. Which leads back to the

Re: [R] Computer Modern Fonts in R graphic

2009-08-31 Thread Charlie Sharpsteen
code that gets produced. Good luck and thanks for giving the package a try! -Charlie On Mon, Aug 31, 2009 at 1:19 AM, Liviu Andronic landronim...@gmail.comwrote: Hello And sorry for the brief highjacking. On 8/31/09, Charlie Sharpsteen ch...@sharpsteen.net wrote: The tikzDevice

Re: [R] Computer Modern Fonts in R graphic

2009-08-31 Thread Charlie Sharpsteen
is a very nice developing thing. I already tried to create my graphic with this device, but unfortunately the created *.tex file exceeded the main memory size of my tex processor. Therefore I tried the classic way of implementing the CMF. Greetings, Friedricksen Charlie Sharpsteen wrote

Re: [R] Computer Modern Fonts in R graphic

2009-08-30 Thread Charlie Sharpsteen
If you are trying to use Computer Modern fonts because the R graphics will be included in a LaTeX report, you could try the TikZ Device Cameron Bracken and I wrote: http://r-forge.r-project.org/projects/tikzdevice The tikzDevice translates R graphics instructions into a LaTeX-friendly format that