Re: [R] User input(unknown name and number of files)

2011-07-23 Thread Bansal, Vikas
, Vikas Cc: r-help@r-project.org Subject: Re: [R] User input(unknown name and number of files) On Fri, Jul 22, 2011 at 12:30 PM, Bansal, Vikas wrote: > Thanks for your reply.That is why I wrote in the message that I have sent > this message before but did not get any help (first line of my m

Re: [R] User input(unknown name and number of files)

2011-07-22 Thread Joshua Wiley
> From: Joshua Wiley [jwiley.ps...@gmail.com] > Sent: Friday, July 22, 2011 8:26 PM > To: Bansal, Vikas > Cc: r-help@r-project.org > Subject: Re: [R] User input(unknown name and number of files) > > On Fri, Jul 22, 2011 at 12:15 PM, Bansal,

Re: [R] User input(unknown name and number of files)

2011-07-22 Thread Bansal, Vikas
? lapply(c("file1", "file2", etc.), yourfunction) From: Joshua Wiley [jwiley.ps...@gmail.com] Sent: Friday, July 22, 2011 8:26 PM To: Bansal, Vikas Cc: r-help@r-project.org Subject: Re: [R] User input(unknown name and number of files) On Fri, J

Re: [R] User input(unknown name and number of files)

2011-07-22 Thread Joshua Wiley
On Fri, Jul 22, 2011 at 12:15 PM, Bansal, Vikas wrote: > Dear all, > > I need your help as I was not able to find out the solution.I sent this > message before but did not get any help.Please help me. You only sent the message yesterday!!! (then again a few hours ago, and *again* just now) rath

[R] User input(unknown name and number of files)

2011-07-22 Thread Bansal, Vikas
Dear all, I need your help as I was not able to find out the solution.I sent this message before but did not get any help.Please help me. The thing is- I am having a code which is reading file with this code- df=read.table("Case2.pileup",fill=T,sep="\t",colClasses="character") but as am making

[R] User input(unknown name and number of files)

2011-07-22 Thread Bansal, Vikas
Dear all, I need your help as I was not able to find out the solution. The thing is- I am having a code which is reading file with this code- df=read.table("Case2.pileup",fill=T,sep="\t",colClasses="character") but as am making a tool so that user can use it and can do analysis on his file.But

[R] User input(unknown name and number of files)

2011-07-21 Thread Bansal, Vikas
Dear all, I need your help as I was not able to find out the solution. The thing is- I am having a code which is reading file with this code- df=read.table("Case2.pileup",fill=T,sep="\t",colClasses="character") but as am making a tool so that user can use it and can do analysis on his file.But

Re: [R] user input.

2011-07-11 Thread Bert Gunter
Please! help.search("prompt") ?readline -- Bert On Mon, Jul 11, 2011 at 3:33 PM, mousy0815 wrote: > try something like: > > > cat("\n","Enter your number","\n") # prompt > y<-scan(n=1) #scans the line before > > ? perhaps? > > > -- > View this message in context: > http://r.789695.n4.nabble.co

Re: [R] user input.

2011-07-11 Thread mousy0815
try something like: cat("\n","Enter your number","\n") # prompt y<-scan(n=1) #scans the line before ? perhaps? -- View this message in context: http://r.789695.n4.nabble.com/user-input-tp3660993p3661031.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] user input.

2011-07-11 Thread David Winsemius
On Jul 11, 2011, at 6:03 PM, Bansal, Vikas wrote: Dear all, I have a dataframe and I want to introduce a new column in it.but the value i want is from user.Like there should be a message to user "enter your number" and the number user will type should come in a new column in data frame f

[R] user input.

2011-07-11 Thread Bansal, Vikas
Dear all, I have a dataframe and I want to introduce a new column in it.but the value i want is from user.Like there should be a message to user "enter your number" and the number user will type should come in a new column in data frame for all rows.I tries scan,menu and read.line but i did not

Re: [R] user input

2011-04-20 Thread Peter Ehlers
On 2011-04-20 02:51, Andreas Borg wrote: Hi Ivan, there are also data.entry() and edit(), which are more tailored to data frames and might look awkward for entering a single value. You could also take a look at CRAN, maybe there is a GUI package that does what you want. Ivan, have a look at t

Re: [R] user input

2011-04-20 Thread Andreas Borg
Hi Ivan, there are also data.entry() and edit(), which are more tailored to data frames and might look awkward for entering a single value. You could also take a look at CRAN, maybe there is a GUI package that does what you want. Andreas Ivan Calandra schrieb: Dear users, I have looked on

Re: [R] user input

2011-04-20 Thread Ivan Calandra
Thanks for your answer. But I don't understand anything, I would say it's far beyond my current knowledge. Could you please explain me in more details how this works? Ivan Le 4/20/2011 11:40, Juan Carlos Borrás a écrit : An alternative is to run your R programs as scripts (#!/usr/bin/env Rscr

[R] user input

2011-04-20 Thread Ivan Calandra
Dear users, I have looked on different sources and found different functions to prompt the user to provide input. However, I couldn't find one that does exactly what I'm looking for. select.list() and menu() are nice because a graphic window appears to prompt the user. However, the user can

Re: [R] User input in R program

2011-01-21 Thread jverzani
christiaan pauw gmail.com> writes: > > HI Everybody > > Does anyone know of documentation about different ways of obtaining user > input in R. I have used readline() but I wondered is there are sophisticated > packages that does things like validate answers or generate selection > lists. You m

Re: [R] User input in R program

2011-01-21 Thread Mauricio Zambrano
Probably, iplots may be useful for you: http://cran.r-project.org/web/packages/iplots/index.html Kinds, Mauricio -- === Linux user #454569 -- Ubuntu user #17469 === 2011/1/21 christiaan pauw : > HI Everybody > > Does anyone know of docume

Re: [R] User input in R program

2011-01-21 Thread D Kelly O'Day
Christian Have you looked at the http://www.stats.gla.ac.uk/~adrian/rpanel/ rpanel package? I have a post which shows an example of interactive input that allows user to adjust plot parameters. http://chartsgraphs.wordpress.com/2009/05/08/rpanel-package-adds-interactive-capabilites-to-r/ lin

Re: [R] User input in R program

2011-01-21 Thread Matt Shotwell
Martyn Plummer's 'coda' package has some nice interactive menus. The package appears to be written entirely in R. You could start with the codamenu() function in the package source: http://cran.r-project.org/web/packages/coda/index.html -Matt On Fri, 2011-01-21 at 14:26 +0200, christiaan pauw wr

Re: [R] User input in R program

2011-01-21 Thread Hugo Mildenberger
Hello Christian, for an example of interacting with graphic output, just run example(getGraphicsEvent) However, on X11, that feature had ceased to work since a pre-release of R-2.12 if Cairo support was enabled at compile time. The reason for this defect had already been documented in R's

[R] User input in R program

2011-01-21 Thread christiaan pauw
HI Everybody Does anyone know of documentation about different ways of obtaining user input in R. I have used readline() but I wondered is there are sophisticated packages that does things like validate answers or generate selection lists. bets regards Christaan [[alternative HTML versio

Re: [R] User input after opening graphing device

2010-11-12 Thread Duncan Murdoch
On 12/11/2010 8:58 AM, Jan Eitel wrote: Bert Gunter gene.com> writes: > > PLEASE follow the posting guide and give us the output of sessionInfo(). > > I was unable to duplicate your problem -- it worked fine for me. > > > sessionInfo() > R version 2.12.0 (2010-10-15) > Platform: i386-pc-

Re: [R] User input after opening graphing device

2010-11-12 Thread Jan Eitel
Bert Gunter gene.com> writes: > > PLEASE follow the posting guide and give us the output of sessionInfo(). > > I was unable to duplicate your problem -- it worked fine for me. > > > sessionInfo() > R version 2.12.0 (2010-10-15) > Platform: i386-pc-mingw32/i386 (32-bit) > > locale: > [1] LC_C

Re: [R] User input after opening graphing device

2010-11-11 Thread Bert Gunter
PLEASE follow the posting guide and give us the output of sessionInfo(). I was unable to duplicate your problem -- it worked fine for me. > sessionInfo() R version 2.12.0 (2010-10-15) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_U

[R] User input after opening graphing device

2010-11-11 Thread jeitel
If I run the following: > windows() > > bringToTop(-1) > > interactive() [1] TRUE > > run <- readline(prompt = "Continue (Yes = 1, No = 2):") Continue (Yes = 1, No = 2): > dummy <- 1 > run [1] "" it does not allow user input though the session is interactive (it jumps right

Re: [R] User input when running R code in batch mode

2009-10-27 Thread Martin Maechler
> Barry Rowlingson > on Tue, 27 Oct 2009 10:17:24 +0100 writes: > On Tue, Oct 27, 2009 at 9:20 AM, Kaushik Krishnan > wrote: >> $ r --vanilla < test.r >>> a <- scan(what='character',n=1); a >> 1: Read 0 items >> character(0) >> >> Now it's not wo

Re: [R] User input when running R code in batch mode

2009-10-27 Thread Bernd Kreuss
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kaushik Krishnan wrote: > Is there any way to make R stop for the user to enter values when > running in batch mode either by changing the way I invoke scan() or > readLines() or by using any other function? At least on linux this works: be...@t40:~/

Re: [R] User input when running R code in batch mode

2009-10-27 Thread Barry Rowlingson
On Tue, Oct 27, 2009 at 9:20 AM, Kaushik Krishnan wrote: > $ r --vanilla < test.r >> a <- scan(what='character',n=1); a > 1: Read 0 items > character(0) > > Now it's not working. Assuming this is a unix environment, the syntax '< test.r' means 'my standard input stream is the file test.r'.

[R] User input when running R code in batch mode

2009-10-27 Thread Kaushik Krishnan
Hi I've been stumbling over a simple issue that undoubtedly has an easy solution. I need to have some way for a user to enter some values into a data frame which R will then work on. I know that data entry should ideally be done otherwise and I should use R only for the computation, but R's data

Re: [R] user input in R

2009-10-11 Thread Petr PIKAL
And try also search statsrus The first hit shall be Paul Johnsons's howto's which helped me several years ago especially with basic issues. Regards Petr r-help-boun...@r-project.org napsal dne 10.10.2009 18:00:19: > > I'm just learning R (I don't know any other programming languages), > >

Re: [R] user input in R

2009-10-10 Thread Robert Baer
I'm just learning R (I don't know any other programming languages), and I have a question. I am trying to figure out how to ask for user input (say, a set of 3 numbers) then put those numbers into an array. I've looked around, but I haven't been able to find any answers that I understand.

Re: [R] user input in R

2009-10-09 Thread David Winsemius
On Oct 9, 2009, at 6:36 PM, Sharon Beckett wrote: I'm just learning R (I don't know any other programming languages), and I have a question. I am trying to figure out how to ask for user input (say, a set of 3 numbers) then put those numbers into an array. I've looked around, but I have

[R] user input in R

2009-10-09 Thread Sharon Beckett
I'm just learning R (I don't know any other programming languages), and I have a question. I am trying to figure out how to ask for user input (say, a set of 3 numbers) then put those numbers into an array. I've looked around, but I haven't been able to find any answers that I understa

[R] User input in batch mode

2009-01-22 Thread Sebastien Bihorel
Dear R-users, [Sorry to have to send this again but my former posts were trimmed because of some embedded HTML code] readline is a nice function to get user input when one is working with the terminal. This function does not allow any interaction with the user when a script in batch mode (I

Re: [R] User input in batch mode

2009-01-20 Thread Sebastien Bihorel
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] User input in batch mode

2009-01-16 Thread Sebastien Bihorel
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.