Re: [R] Find classes for each column of a data.frame

2010-08-26 Thread Barry Rowlingson
On Thu, Aug 26, 2010 at 4:31 PM, Daniel Brewer daniel.bre...@icr.ac.uk wrote: Hello, Is there a simple way to get the class type for each column of a data.frame?  I am in the situation where I would like to get all the columns of a data.frame that are factors. I have tried:

Re: [R] Find classes for each column of a data.frame

2010-08-26 Thread Barry Rowlingson
On Thu, Aug 26, 2010 at 4:44 PM, Marc Schwartz marc_schwa...@me.com wrote: sapply(iris, class) Sepal.Length  Sepal.Width Petal.Length  Petal.Width      Species   numeric    numeric    numeric    numeric     factor Note that comparing the result of class(foo) is a bad way of telling if

Re: [R] sendmailR-package-valid code needed

2010-08-24 Thread Barry Rowlingson
On Tue, Aug 24, 2010 at 7:18 AM, veepsirtt veepsi...@gmail.com wrote: I could not install Rmail Package . I got the following errors. Then how to do.please  library(caTools) install.packages(Rmail,contriburl=http://www.math.mcmaster.ca/~bolker/R/src/contrib;) Warning: dependency ‘caTools’

Re: [R] How to remove all objects except a few specified objects?

2010-08-24 Thread Barry Rowlingson
2010/8/24 500600 romu...@gmail.com: a - 1 b - 2 c - 3 ls()[-a]  # set minus to all the objects you want to retain rm(list = ls()[-a]  # will remove all the objects - except a ls()  # presto Only because a=1 and a is the first item in the list! Not because you are doing '-a'! If a is 0

Re: [R] sendmailR-package-valid code needed

2010-08-23 Thread Barry Rowlingson
On Mon, Aug 23, 2010 at 3:55 PM, Velappan Periasamy veepsi...@gmail.com wrote: Hello Chris Campbell , I tried this for my email id it give me errors from - sprintf(sendma...@%s, Sys.info()[4]) to - veepsi...@gmail.com subject - Hello from R msg - It works! sendmail(from, to, subject,

Re: [R] Recursion problem

2010-08-22 Thread Barry Rowlingson
On Sun, Aug 22, 2010 at 11:19 AM, jim holtman jholt...@gmail.com wrote: We replied once that your function Grx is not correct.  It will recurse to an infinite depth because there is no condition to end the calls.  I would expect that there would be some test at the beginning of the function to

Re: [R] R reports

2010-08-21 Thread Barry Rowlingson
On Sat, Aug 21, 2010 at 4:09 AM, Donald Paul Winston satchwins...@yahoo.com wrote: The ability to generate standard detail, summary, cross-tabs, and control break reports is very important in government and corporate enterprises. The great thing about standards, as a wise man once said, is

Re: [R] Making a series of similar, but modified .r files - suggested method(s)?

2010-08-21 Thread Barry Rowlingson
On Sat, Aug 21, 2010 at 6:48 PM, Laura S lesla...@gmail.com wrote: Dear all: Any suggestions are much appreciated. I am looking for a way to make a series of similar, but slightly modified, .r files. My issue is automating making 320 .r files that change the for(i in 1:x) in my base .r file

Re: [R] graphing plots of plots

2010-08-21 Thread Barry Rowlingson
On Sat, Aug 21, 2010 at 8:48 PM, r.ookie r.oo...@live.com wrote: I'm trying to understand your question because when I think of a graph, I think of one canvas, on which, various functions are plotted (a function can be one point for example). So, when you say each 'element' do you mean each

Re: [R] Latex no where to be seen

2010-08-20 Thread Barry Rowlingson
On Fri, Aug 20, 2010 at 5:18 AM, Donald Paul Winston satchwins...@yahoo.com wrote: I'm experimenting using R as a report writer. I'm told LaTex is the destination for my quest. But ?latex() gives me an error. The package manager does not have it. The package installer can't find it. Where is

Re: [R] Determining the length of unique items in a vector

2010-08-20 Thread Barry Rowlingson
On Fri, Aug 20, 2010 at 11:01 AM, Ron Michael ron_michae...@yahoo.com wrote: Dear all, let suppose I have following vector: dat1 - c(rep(asd, 5), rep(xyz, 12), rep(erd, 17)) dat1 - dat1[sample(1:length(dat1), length(dat1), replace=F)] dat1  [1] erd xyz erd asd asd erd xyz asd erd erd asd xyz

Re: [R] which one give clear picture-pdf, jpg or tiff?

2010-08-20 Thread Barry Rowlingson
On Fri, Aug 20, 2010 at 12:32 PM, Ted Harding ted.hard...@manchester.ac.uk wrote: Now that you remind me, I do recall sending EPS (not EPSI) files to someone and they could see them in Word (recent version). So perhaps Office has moved on (slightly)! Like you, I use Linux and try to avoid

Re: [R] Using objectname in function

2010-08-18 Thread Barry Rowlingson
On Wed, Aug 18, 2010 at 12:10 PM, JesperHybel jesperhy...@hotmail.com wrote: f-function(x,y){ table(x,y If you look at the code for 'plot', you'll see it does that with some deparse/substitute magic. Then use the dnn option to table to set the names: f-function(x,y){

Re: [R] R Send an Email

2010-08-17 Thread Barry Rowlingson
On Tue, Aug 17, 2010 at 3:54 PM, Doran, Harold hdo...@air.org wrote: Just out of curiosity, has anyone ever written a function that sends an email to you when an R process has finished? For instance, I often work with very large data sets and certain tasks (e.g., merging records, lmer runs)

Re: [R] how to test if a vector contain a value?

2010-08-16 Thread Barry Rowlingson
On Mon, Aug 16, 2010 at 2:06 PM, Hyunchul Kim hyunchul.kim@gmail.com wrote: Hi all, How to convert following simple python script to R if x in a_list:    print x OR simply, how to test if a vector contain a value? if(any(a_list == x)){ print(x) } Or use %in%:

Re: [R] R with CouchDB?

2010-08-16 Thread Barry Rowlingson
On Mon, Aug 16, 2010 at 12:40 PM, David Mitchell monch1...@gmail.com wrote: What's the best way to go about extracting data from CouchDB databases, so that I can process it using R?  There don't seem to be any specific R modules for CouchDB, but I find it hard to believe that I'd be the first

Re: [R] Where the data file is stored?

2010-08-12 Thread Barry Rowlingson
On Thu, Aug 12, 2010 at 12:37 PM, Stephen Liu sati...@yahoo.com wrote: - Original Message From: Alain Guillet alain.guil...@uclouvain.be To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Thu, August 12, 2010 5:28:32 PM Subject: Re: [R] Where the data file is stored?

Re: [R] Where the data file is stored?

2010-08-12 Thread Barry Rowlingson
On Thu, Aug 12, 2010 at 4:51 PM, Stephen Liu sati...@yahoo.com wrote: Hi Barry, Following 2 commands are useful to me; row.names(subset(file.info(list.files(getwd(),full.name=TRUE)),isdir)) showing directories. row.names(subset(file.info(list.files(getwd(),full.name=TRUE)),!isdir))

Re: [R] accessing return variables from a function

2010-07-09 Thread Barry Rowlingson
On Fri, Jul 9, 2010 at 10:20 AM, Noah Silverman n...@smartmediacorp.com wrote: Hi, I am trying to figure out a short way to access two values output from the sort function. x - c(3,4,3,6,78,3,1,2) sort(x, index.return=T) $x [1]  1  2  3  3  3  4  6 78 $ix [1] 7 8 1 3 6 2 4 5 It would

Re: [R] Plotting text in existing plot?

2010-07-09 Thread Barry Rowlingson
On Fri, Jul 9, 2010 at 11:22 AM, Jim Lemon j...@bitwrit.com.au wrote: The text function in the graphics package will place text on your plot. It centers the text by default, so that: text(3,4,my neat\ntwo liner) will place the two lines of text centered at x=3 and y=4. BUT it only works

Re: [R] how to plot two histograms overlapped in the same plane coordinate

2010-07-09 Thread Barry Rowlingson
On Fri, Jul 9, 2010 at 2:29 PM, Mao Jianfeng jianfeng@gmail.com wrote: Dear R-help listers, I am new. I just want to get helps on how to plot two histograms overlapped in the same plane coordinate. What I did is very ugly. Could you please help me to improve it? I want to got a plot with

Re: [R] UK map in R

2010-07-05 Thread Barry Rowlingson
On Sun, Jul 4, 2010 at 9:10 PM, happy naren narender.ku...@gmail.com wrote: Hi, i am currently working on a problem where i need to plot latitude and longitude data on a respective county of UK. After this i want to plot altitude data to make a 3d surface on which then i have to plot my

Re: [R] All possible permutations of letter A with other letters

2010-06-30 Thread Barry Rowlingson
On Wed, Jun 30, 2010 at 11:57 AM, Yen Ngo yen.ng...@yahoo.se wrote: Dear list, I have a vector of letter strings as follow: LETTERS[c(1:7,9,15,18:25)]  [1] A B C D E F G I O R S T U V W X Y I need to find sequences of length 11, which are made from  all possible permutations with

Re: [R] Popularity of R, SAS, SPSS, Stata...

2010-06-22 Thread Barry Rowlingson
On Tue, Jun 22, 2010 at 2:37 PM, Marc Schwartz marc_schwa...@me.com wrote: Well yes, I've used it myself I think, but I was hoping for something a bit 'sexier'.  L'analyse des Données Say it with a deep voice   ;-) If you use R in a health or medical context, and are asked what you

Re: [R] Same function name

2010-06-21 Thread Barry Rowlingson
On Mon, Jun 21, 2010 at 2:29 PM, Filoche pmassico...@hotmail.com wrote: Hi everyone. I want to use 2 different functions (in 2 packages) that have same name. for instance, if I call the function, it will use the one in the last called package.  Is there a way to specify the package to use

Re: [R] Pretty printing progress

2010-06-17 Thread Barry Rowlingson
On Thu, Jun 17, 2010 at 3:33 PM, Doran, Harold hdo...@air.org wrote: I have a function that is an iterative process for estimating some MLEs. I want to print some progress to screen as the process iterates. I would like to try and line things up nicely in the R window, but am not sure the

Re: [R] Pretty printing progress

2010-06-17 Thread Barry Rowlingson
On Thu, Jun 17, 2010 at 4:56 PM, Doran, Harold hdo...@air.org wrote: Hi Barry: I don't think so. In addition to what I put in the example below, there are some other diagnostics I want to print to screen as the optimization proceeds. I don't see in the help page whether that is possible in

Re: [R] R licensing query

2010-06-17 Thread Barry Rowlingson
On Thu, Jun 17, 2010 at 5:11 PM, Frank E Harrell Jr f.harr...@vanderbilt.edu wrote: Pardon my english but you're working for idiots.  I'd look elsewhere if there are other options.  IT departments should be here to help get things done, not to help prevent good work from being done. Just

Re: [R] Reading data from xls..........please help

2010-06-16 Thread Barry Rowlingson
On Wed, Jun 16, 2010 at 7:29 PM, Christofer Bogaso bogaso.christo...@gmail.com wrote: Can anyone help me how to read xls file into R. I have tried following library(gdata) xlsfile - file.path(.path.package('gdata'),'xls','iris.xls') read.xls(xlsfile) I got following error: Converting xls

Re: [R] Compiling R with multi-threaded BLAS math libraries - why not actually ?

2010-06-12 Thread Barry Rowlingson
On Sat, Jun 12, 2010 at 3:16 PM, Tal Galili tal.gal...@gmail.com wrote: Hello Douglas, Thank you for the BLAST!=BLAS correction (I imagine my slip was due to some working I have done recently with an RNA analysis software called BLAST). Also, thank you for the very interesting posting here

Re: [R] Data Frame as Hash Table

2010-05-30 Thread Barry Rowlingson
On Sun, May 30, 2010 at 9:03 AM, Alan Lue alan@gmail.com wrote: I'm interested in using a data frame as if it were a hash table.  For instance if I had the following, (d - data.frame(key=seq(0.5, 3, 0.5), value=rnorm(6)))  key        value 1 0.5 -1.118665122 2 1.0  0.465122921 3 1.5

Re: [R] Using a loop to define new variables

2010-05-28 Thread Barry Rowlingson
On Fri, May 28, 2010 at 12:52 PM, Andre Easom aea...@sportingindex.com wrote: Hi, I'm a novice R user, much more used to SAS.  My problem is pretty simple - basically, in a data frame, I have variables named x1,,x10 and y1,...,y10; and I would like to create r1 = x1 / y1 etc Apologies

Re: [R] error variable names are limited to 256 bytes when sourcing code

2010-05-26 Thread Barry Rowlingson
On Wed, May 26, 2010 at 6:00 PM, Wu Gong gho...@gmail.com wrote: I can only repeat your error message :) n256 - paste(rep(A,256),collapse=) assign(n256, 1) n257 - paste(rep(A,257),collapse=) assign(n257, 1) Error in assign(n257, 1) : variable names are limited to 256 bytes If a

Re: [R] R: website address for the pseuso-XLS files

2010-05-25 Thread Barry Rowlingson
On Tue, May 25, 2010 at 3:09 PM, Ted Harding ted.hard...@manchester.ac.uk wrote: It is OpenOffice 2.0 (as updated to openoffice.org-core, dfsg.2-7etch9 Sat Jan 16 2010) running on Linux (Debian Etch, originally installed Sept 2007), so none of it is particularly recent. The command to view the

Re: [R] R eat my data

2010-05-25 Thread Barry Rowlingson
On Tue, May 25, 2010 at 4:42 PM, Changbin Du changb...@gmail.com wrote: HI, Dear R community, My original file has 1932 lines, but when I read into R, it changed to 1068 lines, how comes? c...@nuuk:~/operon$ wc -l id_name_gh5.txt 1932 id_name_gh5.txt

Re: [R] Functioning and source code location of .Primitive()

2010-05-24 Thread Barry Rowlingson
On Mon, May 24, 2010 at 9:03 AM, Stefano Baraldo stefano.bara...@gmail.com wrote: Hi all. I began examining the R source code in the last few days, for a better understanding of its structure. I read the manuals and digged deeply (maybe not enough?) into the source code, but I couldn't

Re: [R] timing a function

2010-05-17 Thread Barry Rowlingson
On Mon, May 17, 2010 at 6:24 PM, Peter Ehlers ehl...@ucalgary.ca wrote: Try  system.time(y - f(x)) and see ?=.  -Peter Ehlers Ah ha. That explains the curly brackets I saw in a posting with system.time on stack overflow just now: system.time({y=f(x)}) works as expected since the {}

Re: [R] Revolution R and the R Community?

2010-05-11 Thread Barry Rowlingson
On Tue, May 11, 2010 at 4:08 PM, ivo welch ivo...@gmail.com wrote: As an end-user, I wonder about Revolution R.  Is the relationship between Revolution R and the R community at-large a positive one?  Do the former contribute to the development efforts of the latter?  Is there a competitive

Re: [R] What is the best way to have R output tables in an MS

2010-05-07 Thread Barry Rowlingson
On Fri, May 7, 2010 at 12:44 AM, Frank E Harrell Jr f.harr...@vanderbilt.edu wrote: Ted I can't resist offering my $.02, which is that I'm puzzled why LaTeX, being free, flexible, and powerful, is used only by millions of people and not tens of millions. I think it's the whole geek/suit

Re: [R] What is the best way to have R output tables in an MS

2010-05-06 Thread Barry Rowlingson
On Thu, May 6, 2010 at 9:07 PM, Ted Harding ted.hard...@manchester.ac.uk wrote: Given what he said in his latest message, I now have even more sympathy. It's not about begging in the streets for someone to charitably do the job for him! It's a job that could be a service to many, and if it

Re: [R] how to name the column after converting a vector to a data frame

2010-05-03 Thread Barry Rowlingson
On Mon, May 3, 2010 at 7:21 PM, wei x1 weix1_2...@hotmail.com wrote: hell all: I have a vector as follows: head(res) 1007_s_at.value   1053_at.value    117_at.value    121_at.value 1255_g_at.value    0.225801033     0.009747404     0.709517954     0.008825740     0.496859178  

Re: [R] X11() device widht and height parameters limited to one screen

2010-04-30 Thread Barry Rowlingson
On Fri, Apr 30, 2010 at 8:53 AM, Florian Burkart florian.burk...@whu.edu wrote: Hi, if I specify the width and height of a plot I want to see via X11(width=14,height=7) X11(width=28,height=14) X11(width=20,height=14) X11(width=13,height=14) X11(width=15,height=14) any width greater than

Re: [R] What is the best way to have R output tables in an MS Word format?

2010-04-30 Thread Barry Rowlingson
On Fri, Apr 30, 2010 at 11:13 PM, Max Gunther max.gunt...@vanderbilt.edu wrote: Dear R list, Our statisticians usually give us results back in a PDF format. I would like to be able to copy and past tables from R output directly into a Microsoft Word table since this will save us tons of time,

Re: [R] Split a vector by NA's - is there a better solution then a loop ?

2010-04-29 Thread Barry Rowlingson
On Thu, Apr 29, 2010 at 1:27 PM, Henrique Dallazuanna www...@gmail.com wrote: Another option could be: split(x, replace(cumsum(is.na(x)), is.na(x), -1))[-1] One thing none of the solutions so far do (except I haven't tried Tal's original code) is insert an empty group between adjacent NA

Re: [R] Determining whether plot.new has been called

2010-04-28 Thread Barry Rowlingson
On Wed, Apr 28, 2010 at 5:21 PM, Dennis Fisher fis...@plessthan.com wrote: Colleagues I have a lengthy script that calls mtext.  Under most circumstances, a graphics device is open and a plot exists, in which case mtext works as expected.  However, there are some instances where the

Re: [R] read.csv data frame thousands separator

2010-04-23 Thread Barry Rowlingson
On Fri, Apr 23, 2010 at 2:00 PM, arnaud Gaboury arnaud.gabo...@gmail.com wrote: Dear group, 2,421.5000, 2,448.5000, 1,380., 1,383., 1,383., 1,386., 1,386., 1,388., 1,389., 1,389. trades1=read.csv2(LSCTrades.csv,dec=.,sep=,,as.is=T,h=T,skip=1) The csv

Re: [R] Amusing coincidence

2010-04-22 Thread Barry Rowlingson
On Thu, Apr 22, 2010 at 3:27 PM, peter dalgaard pda...@gmail.com wrote: ...that this Danish movie would have an official release today: http://www.imdb.com/title/tt1434443/ Does it have music by this composer: http://www.imdb.com/name/nm1731203/ and stills photography by:

Re: [R] shift and pop equivalent in R

2010-04-20 Thread Barry Rowlingson
On Tue, Apr 20, 2010 at 7:03 PM, Xie Chao xiech...@gmail.com wrote: Dear All, I am wondering is there any shift (or pop or push or unshift) equivalent in R? For example, shift(x)   # should return x[1], and x becomes x[-1] I seem to have implemented a FIFO stack in 2003:

Re: [R] Serverless databases in R

2010-04-19 Thread Barry Rowlingson
On Sun, Apr 18, 2010 at 11:30 PM, kMan kchambe...@gmail.com wrote: It was my understanding that .Rdata files were not very portable, and do not natively handle queries. Otherwise we'd all just use .RData files instead of farming the work out to SQL drivers external libraries, and colleagues

Re: [R] How to pass a list of parameters into a function

2010-04-19 Thread Barry Rowlingson
On Mon, Apr 19, 2010 at 5:58 PM, Gene Leynes gleyne...@gmail.com wrote: Does anyone know how to pass a list of parameters into a function? for example: somefun=function(x1,x2,x3,x4,x5,x6,x7,x8,x9){    ans=x1+x2+x3+x4+x5+x6+x7+x8+x9    return(ans) } somefun(1,2,3,4,5,6,7,8,9) # I would

Re: [R] Serverless databases in R

2010-04-18 Thread Barry Rowlingson
On Sun, Apr 18, 2010 at 1:00 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: SQLite and H2.  These databases are included right in the driver packages RSQLite and RH2 so there is nothing extra to install except you must have Java installed in the case of H2.  Also both are supported by

Re: [R] Does sink stand for anything?

2010-04-16 Thread Barry Rowlingson
On Fri, Apr 16, 2010 at 1:49 AM, Sharpie ch...@sharpsteen.net wrote: Sink captures R output and directs it elsewhere- common places are a file or device such as /dev/null Personally it always connected with the concept of a sink in a mathematical system as something that removes constituants

Re: [R] Exporting an rgl graph

2010-04-15 Thread Barry Rowlingson
On Thu, Apr 15, 2010 at 10:24 AM, cgeno...@u-paris10.fr wrote: Hi the list, I use rgl to produce a 3D graph. I would like to show this graph to some collaborator. Is there a way to save it and send it to someone else? See ?rgl.postscript and ?rgl.snapshot Or use some kind of screen capture

Re: [R] Exporting an rgl graph

2010-04-15 Thread Barry Rowlingson
On Thu, Apr 15, 2010 at 1:01 PM, cgeno...@u-paris10.fr wrote: Thanks for you answer. Let me precise my question. In fact, I do not want to capture a screen, I want to save an object that can be seen in 3D. With rgl, using my mouse, I can make the object move. This is what I want to export:

Re: [R] import file formatted RFC-822

2010-04-14 Thread Barry Rowlingson
On Wed, Apr 14, 2010 at 6:20 PM, Sebastian Kruk residuo.so...@gmail.com wrote: I have a problem, In a few cases robot-exclusion-useragent have 2 or more values, is there a manner to fix it? For example, robot askjeeves has three names. use 'all=TRUE'? test data: foo: 1 bar: 2 foo: 1 foo: 2

Re: [R] import file formatted RFC-822

2010-04-13 Thread Barry Rowlingson
On Tue, Apr 13, 2010 at 6:26 PM, Sebastian Kruk residuo.so...@gmail.com wrote: Dear R-list users: I would like to import a database of web robots, http://www.robotstxt.org/db/all.txt, it´s formatted RFC-822, ¿how can I do it? RFC822 looks very much like R's package DESCRIPTION files, and

Re: [R] Help me with writing function sort()

2010-04-11 Thread Barry Rowlingson
On Sun, Apr 11, 2010 at 2:30 PM, maslakos masla...@gmail.com wrote: Hello everyone, i`m new here.. I just started with learning R language and i have hard homework. I need to write function like sort().. Anyone know how to do it? Can u give me algorithm for sorting vector? x=c(1,2,-1,1,3,4) or

Re: [R] It This data viz possible in R?

2010-04-07 Thread Barry Rowlingson
On Wed, Apr 7, 2010 at 2:28 PM, Brock Tibert btibe...@yahoo.com wrote: Hi All, I am new to R, but it has been a lot of fun learning as I go and have been blow away by what it can do.  Came across this example and wanted to see if ggplot2 or some other visualization package could make this

Re: [R] It This data viz possible in R?

2010-04-07 Thread Barry Rowlingson
On Wed, Apr 7, 2010 at 3:20 PM, baptiste auguie baptiste.aug...@googlemail.com wrote: Hi, Barry suggested a way to place the text labels; I would like to point out the grid.curve() function that might help in connecting the labels with nice-looking curves. I don't know of a base graphics

Re: [R] SAS and R on multiple operating systems

2010-04-06 Thread Barry Rowlingson
On Tue, Apr 6, 2010 at 6:27 PM, Roger DeAngelis(xlr82sas) rdean...@amgen.com wrote: Hi,  First a quick note about FDA and Style Guides.  Frank is correct the FDA does not require strict formatting. I once worked for small startup and they sent EXCEL sheets to the FDA. However big pharma

Re: [R] appending an R-object to a list

2010-04-06 Thread Barry Rowlingson
On Tue, Apr 6, 2010 at 10:28 PM, David.Epstein david.epst...@warwick.ac.uk wrote: How do I append an R-object to a list? I want to start with an empty list, and append R-objects one by one. Does this start with a command like mylist - NULL ?? I have read a few answers on R-help to

Re: [R] R 2.6 Support Question

2010-04-05 Thread Barry Rowlingson
On Mon, Apr 5, 2010 at 3:20 PM, Raadt, Timothy W. twra...@fedins.com wrote: Hello, I have a question on the support of the R 2.6 software.  We are in the process of planning for a  hardware refresh and our new machines will be running Windows 7 and Internet Explorer 8.   My question is if

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Barry Rowlingson
On Mon, Apr 5, 2010 at 9:13 PM, Roger DeAngelis(xlr82sas) rdean...@amgen.com wrote: Hi, This is not meant to be critical of R, but is intended as a possible source for improvements to R. SAS needs the competition. I am reasonably knowledgeable about R SAS-(all products including IML)

Re: [R] compare two fingerprint images

2010-04-03 Thread Barry Rowlingson
On Sat, Apr 3, 2010 at 8:18 PM, Juan Antonio Gil Pascual j...@edu.uned.es wrote: I need to compare two fingerprint images and let me know if you can do with R. I have used the technique of minutiae but it seems to work better with the cross-correlation and wanted to know if you can do with R.

Re: [R] Problems with PDF/Latex when building a package

2010-04-02 Thread Barry Rowlingson
On Fri, Apr 2, 2010 at 11:43 PM, Erin Hodgess erinm.hodg...@gmail.com wrote: Dear R People: I'm building a packages on an Ubuntu Karmic Koala 9.10 system and am getting the following errors: * checking PDF version of manual ... WARNING LaTeX errors when creating PDF version. This

Re: [R] Confusing concept of vector and matrix in R

2010-03-30 Thread Barry Rowlingson
On Tue, Mar 30, 2010 at 2:42 AM, Rolf Turner r.tur...@auckland.ac.nz wrote: Well then, why don't you go away and design and build your own statistics and data analysis language/package to replace R?  You can then make whatever design decisions you like, and you won't have to live with the

Re: [R] R package licences

2010-03-30 Thread Barry Rowlingson
On Tue, Mar 30, 2010 at 10:15 AM, Uwe Behrens ubehre...@gmail.com wrote: Hi, please, can SOMEBODY help me to find the right characters to fit into the field \details{ ... ... License: \tab \cr } What file is this? Because \details belongs in a .Rd documentation file, but the

Re: [R] library(): load library from a specified location

2010-03-30 Thread Barry Rowlingson
On Tue, Mar 30, 2010 at 7:58 PM, Rolf Turner r.tur...@auckland.ac.nz wrote: But ***please*** say ``load *package*'', not ``load library''.  The *location* (collection of packages) from which you wish to load the given package is the ``library''. Anyone vote for deprecating the library()

Re: [R] Ellipse that Contains 95% of the Observed Data

2010-03-29 Thread Barry Rowlingson
On Mon, Mar 29, 2010 at 4:02 AM, Ben Bolker bol...@ufl.edu wrote:  I'll be interested to hear what others come up with.  I'm not sure the problem as you have stated it is well-posed, or necessarily possible. Suppose there is a true unknown bivariate probability distribution with a

Re: [R] any quick way to write this label

2010-03-28 Thread Barry Rowlingson
On Sun, Mar 28, 2010 at 8:56 AM, Roslina Zakaria zrosl...@yahoo.com wrote: Hi r-users, Is there any quick way to write this label? c(0,50,100,150,200,250,300,350,400,450, 500,550,600,650,700,750,800,850,900) Not sure what you mean by 'write this label'. But to generate that vector, yes

[R] NA values in indexing

2010-03-26 Thread Barry Rowlingson
If you index a vector with a vector that has NA in it, you get NA back: x=101:107 x[c(NA,4,NA)] [1] NA 104 NA x[c(4,NA)] [1] 104 NA All well and good. ?[ says, under NAs in indexing: When extracting, a numerical, logical or character ‘NA’ index picks an unknown element and

Re: [R] NA values in indexing

2010-03-26 Thread Barry Rowlingson
On Fri, Mar 26, 2010 at 4:15 PM, Bert Gunter gunter.ber...@gene.com wrote: Is this, from the man page, relevant? An empty index selects all values: this is most often used to replace all the entries but keep the attributes. No, I think that means doing x[], and only in replacement:

Re: [R] NA values in indexing

2010-03-26 Thread Barry Rowlingson
On Fri, Mar 26, 2010 at 4:15 PM, Matthew Dowle mdo...@mdowle.plus.com wrote: The type of 'NA' is logical. So x[NA] behaves more like x[TRUE] i.e. silent recycling. class(NA) [1] logical x=101:108 x[NA] [1] NA NA NA NA NA NA NA NA x[c(TRUE,NA)] [1] 101  NA 103  NA 105  NA 107  NA

Re: [R] Off Topic: teenie weenie numbers -- Was: Precision level

2010-03-26 Thread Barry Rowlingson
On Fri, Mar 26, 2010 at 4:31 PM, Bert Gunter gunter.ber...@gene.com wrote: *** COMPLETELY OFF TOPIC *** Although machine precision (smallest numerical values that can be exactly represented) is important for numerical calculations, what is the smallest number that anyone has actually seen

Re: [R] setting sensitivity of r to errors

2010-03-25 Thread Barry Rowlingson
On Thu, Mar 25, 2010 at 12:17 PM, Jannis bt_jan...@yahoo.de wrote: Dear all, does anyone of you know how to increase Rs sensitivity to errors? There's a few things you can do with options(): check.bounds warns you extending vectors 'accidentally', 'warn' lets you do stuff like turn warnings

Re: [R] importing .bil files

2010-03-22 Thread Barry Rowlingson
On Mon, Mar 22, 2010 at 12:09 PM, Sebastian Leuzinger sebastian.leuzin...@env.ethz.ch wrote: Dear list Has anyone got a recipie at hand to import .bil files into R? From what I understand the .bil files I got contain layered matricies which I would lke to make available in R as an array or

Re: [R] Find a rectangle of maximal area

2010-03-22 Thread Barry Rowlingson
On Mon, Mar 22, 2010 at 4:28 PM, Hans W Borchers hwborch...@googlemail.com wrote: Still I believe that a clever approach might be possible avoiding the need to call a commercial solver. I am getting this hope from one of Jon Bentley's articles in the series Programming Pearls. Is this the

Re: [R] Why \\ instead of simple / to specify a file path

2010-03-22 Thread Barry Rowlingson
On Mon, Mar 22, 2010 at 5:22 PM, Bogaso bogaso.christo...@gmail.com wrote: Hi all, I have saved my workplace in a .RData format. However if I want to open that, I need to use following code : load(C:\\..) Here my question is why \\. In all the time generally we use / like when we use

Re: [R] importing .bil files

2010-03-22 Thread Barry Rowlingson
On Mon, Mar 22, 2010 at 12:09 PM, Sebastian Leuzinger sebastian.leuzin...@env.ethz.ch wrote: Dear list Has anyone got a recipie at hand to import .bil files into R? From what I understand the .bil files I got contain layered matricies which I would lke to make available in R as an array or

Re: [R] Encrypt/decrypt in R

2010-03-19 Thread Barry Rowlingson
On Fri, Mar 19, 2010 at 5:00 PM, Hadley Wickham had...@rice.edu wrote: Hi all, Does any one know of any encryption/decryption algorithms in R?  I'm not looking for anything robust - I want some way of printing output to the screen that the user can't read immediately, but can decrypt a

Re: [R] Encrypt/decrypt in R

2010-03-19 Thread Barry Rowlingson
On Fri, Mar 19, 2010 at 5:10 PM, Barry Rowlingson b.rowling...@lancaster.ac.uk wrote: On Fri, Mar 19, 2010 at 5:00 PM, Hadley Wickham had...@rice.edu wrote: Hi all, Does any one know of any encryption/decryption algorithms in R?  I'm not looking for anything robust - I want some way

Re: [R] Creating images without X11

2010-03-14 Thread Barry Rowlingson
On Sun, Mar 14, 2010 at 5:14 AM, Sharpie ch...@sharpsteen.net wrote: I had this exact same problem last summer when attempting to set up an automated process involving image generation on a remote server.  Since I didn't have admin rights to the server, I ended up switching to the Cairo

Re: [R] format: from list to data frame

2010-03-13 Thread Barry Rowlingson
On Sat, Mar 13, 2010 at 4:46 PM, Javier j.perez-barbe...@macaulay.ac.uk wrote: Dear users, Is anyone out there on a Saturday to answer this easy question? I have the yo object data in a list format: str(yo)  num [1:259, 1:173] 16.3 NA NA NA NA ...  - attr(*, dimnames)=List of 2  ..$ x:

Re: [R] Creating images without X11

2010-03-13 Thread Barry Rowlingson
On Sat, Mar 13, 2010 at 4:27 PM, Jillian E Kozyra jill...@gmail.com wrote: Dear Colleagues, We are attempting to create trees using R with our Ruby on Rails application. However, we are running into a problem involving the creation of the graphic. We would like them to be in either jpg or png

Re: [R] Form using R

2010-03-12 Thread Barry Rowlingson
On Fri, Mar 12, 2010 at 7:06 PM, Nilza BARROS nilzabar...@gmail.com wrote: It would be a form that is filled daily, but some fields were tabulated and other fields would be filled with only the opinions of users. Currently, my form is a Word document that is the filling and printed. At the

Re: [R] Print density of 600 dpi for a plot

2010-03-12 Thread Barry Rowlingson
On Fri, Mar 12, 2010 at 9:52 PM, Bob Green bgr...@dyson.brisnet.org.au wrote: I have to create a plot with a print density of 600 dpi . Within R, is there a way to determine the print density of a plot? Any assistance is much appreciated, A PostScript, embedded PostScript, or PDF file has

Re: [R] Name of frame

2010-03-11 Thread Barry Rowlingson
On Thu, Mar 11, 2010 at 12:30 PM, Tom Backer Johnsen bac...@psych.uib.no wrote: Is it possible to get hold of the name of a frame? I can't see a direct way, but you could capture the output of print: framename=function(frame){capture.output(print(frame))}

Re: [R] A slight trap in read.table/read.csv.

2010-03-09 Thread Barry Rowlingson
On Tue, Mar 9, 2010 at 8:11 AM, Patrick Connolly p_conno...@slingshot.co.nz wrote: If you use ESS, you have the benefit of completions.  Depending on what else could begin with T or F, you can press the TAB key after typing the first letter or two.  Admittedly, three keystrokes isn't much

Re: [R] is there an inverse method for table()?

2010-03-09 Thread Barry Rowlingson
On Tue, Mar 9, 2010 at 3:58 PM, vincent laperriere vincent_laperri...@yahoo.fr wrote: Hi, In R, I know the method table(), which builds a contingency table of the counts y at each level for the factor x. But I would like to know what is the inverse method of table(), if it exists, to

Re: [R] Help! I need to use R to calculate a recursive function!

2010-03-09 Thread Barry Rowlingson
On Tue, Mar 9, 2010 at 4:01 PM, anan1986 ayc_...@hotmail.com wrote: hi,all Z(i)=0.05X(i)+0.95Z(i-1), where i = 1.32, and X's are given data, the question is how to use r to get the 32 values of Z. I couldn't do this in R and wish somebody can help me. Can you do anything in R? Have

Re: [R] Help! I need to use R to calculate a recursive function!

2010-03-09 Thread Barry Rowlingson
On Tue, Mar 9, 2010 at 9:06 PM, anan1986 ayc_...@hotmail.com wrote: I tried! but my solution is not correc! -- View this message in context: http://n4.nabble.com/Help-I-need-to-use-R-to-calculate-a-recursive-function-tp1586189p1586590.html Sent from the R help mailing list archive at

Re: [R] Executable for Production Use

2010-03-08 Thread Barry Rowlingson
On Mon, Mar 8, 2010 at 6:44 PM, Ma Ismail - NewYork-MEAG-NY i...@meag-ny.com wrote: Hi, A few of the developers on our Quant team are using R for data calculation and to generate a resulting CSV file.  They have R installed on their workstations.  We are interested in having this deployed

Re: [R] Unsigned Posts; Was Setting graphical parameters

2010-03-07 Thread Barry Rowlingson
On Thu, Mar 4, 2010 at 11:47 PM, Jim Lemon j...@bitwrit.com.au wrote: I had a working hypothesis about this, but decided to check the data before replying. Looking at the ten most recent obvious pseudonyms, all were from free email accounts like gmail or yahoo. A few of these included all or

Re: [R] turn character string into unevaluated R object

2010-03-03 Thread Barry Rowlingson
On Wed, Mar 3, 2010 at 8:26 AM, carol white wht_...@yahoo.com wrote: Thanks for all replies but it is still not what I wanted. Referring to the previous example that I gave, I want that the objects mat1, mat2 and mat3 be created as matrix object. I want to access their value without get()

Re: [R] Random real numbers

2010-03-02 Thread Barry Rowlingson
On Tue, Mar 2, 2010 at 4:05 PM, Paul Hiemstra p.hiems...@geo.uu.nl wrote: frederik vanhaelst wrote: Hi, How could i generate random real numbers between 0 en 2*pi? Thanks, Googeling for R generate random number gave this as a second hit (on my machine):

Re: [R] Preserving lists in a function

2010-02-27 Thread Barry Rowlingson
On Sat, Feb 27, 2010 at 11:29 AM, Gabor Grothendieck ggrothendi...@gmail.com wrote: Or use modifyList which is in the core of R. All these solutions appear to be adding on more and more code with less and less semantics. Result: messy code which is harder to read and debug. It seems that the

Re: [R] Preserving lists in a function

2010-02-26 Thread Barry Rowlingson
On Fri, Feb 26, 2010 at 10:56 PM, Shang Gao s...@econone.com wrote: Dear R users, A co-worker and I are writing a function to facilitate graph plotting in R. The function makes use of a lot of lists in its defaults. However, we discovered that R does not necessarily preserve the defaults if

Re: [R] How to use same function for diffrent input values

2010-02-19 Thread Barry Rowlingson
On Fri, Feb 19, 2010 at 8:20 AM, Madhavi Bhave madhavi_bh...@yahoo.com wrote: rates = indiv_rate(n = read.csv('number.csv')$n, rate_name = read.csv('rate.csv')$rate_name, rate = read.csv('rate.csv')$rate, rate_rf1 = read.csv('rate_rf.csv')$rate_rf1, rate_rf2 =

Re: [R] parsing strings between [ ] in columns

2010-02-18 Thread Barry Rowlingson
On Thu, Feb 18, 2010 at 8:29 AM, milton ruser milton.ru...@gmail.com wrote: Dear all, I have a data.frame with a column like the x shown below myDF-data.frame(cbind(x=c([[1, 0, 0], [0, 1]],   [[1, 1, 0], [0, 1]],[[1, 0, 0], [1, 1]],   [[0, 0, 1], [0, 1]]))) myDF                    x 1

Re: [R] parsing strings between [ ] in columns

2010-02-18 Thread Barry Rowlingson
On Thu, Feb 18, 2010 at 8:29 AM, milton ruser milton.ru...@gmail.com wrote: Dear all, I have a data.frame with a column like the x shown below myDF-data.frame(cbind(x=c([[1, 0, 0], [0, 1]],   [[1, 1, 0], [0, 1]],[[1, 0, 0], [1, 1]],   [[0, 0, 1], [0, 1]]))) myDF After identify the groups

<    1   2   3   4   5   6   7   >