, 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
> 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,
?
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
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
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
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
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
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
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.
___
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
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
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
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
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
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
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
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
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
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
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
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
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-
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
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
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
> 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
-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:~/
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'.
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
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),
> >
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.
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
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
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
__
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-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.
36 matches
Mail list logo