I don't use R.app.
And as I wrote later, there are a number of .Rhistory so it depends
on where you start R/RStudio from.
el
On 2021-03-01 22:29 , David Carlson wrote:
> On the Mac there can be 2 files. The R Studio uses .Rhistory, but Rapp
> uses .Rapp.history.
>
> David L Carlson
>
> On Su
On the Mac there can be 2 files. The R Studio uses .Rhistory, but Rapp
uses .Rapp.history.
David L Carlson
On Sun, Feb 28, 2021 at 9:06 AM Dr Eberhard W Lisse wrote:
> On the Mac it is ~/.Rhistory
>
> el
>
> On 2021-02-28 15:39 , Mahmood Naderan-Tahan wrote:
> > Hi
> >
> > May I know where is
Oh
find ~ -name .Rhistory 2>/dev/null
shows 12 file :-)-O
vriendelijke groeten/sincères amitiés,
el
On 2021-02-28 17:17 , Mahmood Naderan-Tahan wrote:
> OK. It seems that it depends on where R is launched.
>
> In my case, I found .Rhistory file in ~/Documents.
>
>
> Regards,
> Mahm
OK. It seems that it depends on where R is launched.
In my case, I found .Rhistory file in ~/Documents.
Regards,
Mahmood
From: R-help on behalf of Dr Eberhard W Lisse
Sent: Sunday, February 28, 2021 4:06:26 PM
To: r-help@r-project.org
Subject: Re: [R
On the Mac it is ~/.Rhistory
el
On 2021-02-28 15:39 , Mahmood Naderan-Tahan wrote:
> Hi
>
> May I know where is the location of commands we used in R in the history?
>
>
> Regards,
> Mahmood--
Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist
e...@lisse.na / *
I think it may depend on your operating system. In my case, Ubuntu 20.10,
it is a hidden file at /home level.
On Sun, 28 Feb 2021 at 08:40, Mahmood Naderan-Tahan <
mahmood.nade...@ugent.be> wrote:
> Hi
>
> May I know where is the location of commands we used in R in the history?
>
>
> Regards,
>
Jim/Rui:
Strictly speaking, this is wrong. What you have described is MCAR --
missing completely at random -- not MAR. They are different! Nevertheless,
the OP seems to be similarly confused about this, so MCAR may in fact be
what what was wanted. Without further context, it is as clear as mud to
Hi Adam,
Looks like you have a matrix or data frame and want to change one or
more observations to NA. I think this will do the trick:
# assume the matrix or data frame is named "ajdat"
randomNA<-function(x,nNA=1) {
dimx<-dim(x)
x[sample(1:dimx[1],nNA),sample(1:dimx[2],nNA)]<-NA
return(x)
}
So
Hello,
What type of data do you have? A vector? Or is it a matrix, a
data.frame, a list, etc?
Suppose it is a vector named x. Then you could do something like
rate <- 0.2
is.na(x) <- sample(length(x), rate*length(x))
At an R prompt type
?is.na
?sample
Hope this helps,
Rui Barradas
Às 21:
aniel Nordlund [mailto:djnordl...@gmail.com]
Sent: Friday, February 02, 2018 4:44 PM
To: Michael Ashton; r-help@r-project.org
Subject: Re: [R] command line fails
On 2/2/2018 4:52 AM, Michael Ashton wrote:
> Hi - Think this is quick help. Not sure how to trap what is causing my simple
> script to
On 2/2/2018 4:52 AM, Michael Ashton wrote:
Hi - Think this is quick help. Not sure how to trap what is causing my simple
script to run fine in R, but fail immediately when called from rscript. I can
put all sorts of traps in the script itself, but when called from the command
line the r window
: Michael Ashton
> Cc: Duncan Murdoch; r-help@r-project.org
> Subject: Re: [R] command line fails
>
>
> Quoting Michael Ashton :
>
>> Fascinating. The script runs fine in 3.2.5, but won't run in 3.4.3
>> even with ALL lines commented out.
>>
>> I have no i
om: Duncan Murdoch [mailto:murdoch.dun...@gmail.com]
Sent: Friday, February 02, 2018 9:03 AM
To: Michael Ashton; r-help@r-project.org
Subject: Re: [R] command line fails
On 02/02/2018 8:20 AM, Michael Ashton wrote:
I don't think it's the path or the slashes. I run other files in
this same m
1.655.8006
-Original Message-
From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com]
Sent: Friday, February 02, 2018 9:03 AM
To: Michael Ashton; r-help@r-project.org
Subject: Re: [R] command line fails
On 02/02/2018 8:20 AM, Michael Ashton wrote:
> I don't think it's the path or t
: 551.655.8006
-Original Message-
From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com]
Sent: Friday, February 02, 2018 8:16 AM
To: Michael Ashton; r-help@r-project.org
Subject: Re: [R] command line fails
On 02/02/2018 7:52 AM, Michael Ashton wrote:
Hi - Think this is quick help. Not sure
o: Michael Ashton; r-help@r-project.org
Subject: Re: [R] command line fails
On 02/02/2018 7:52 AM, Michael Ashton wrote:
> Hi - Think this is quick help. Not sure how to trap what is causing my simple
> script to run fine in R, but fail immediately when called from rscript. I can
> put all so
On 02/02/2018 7:52 AM, Michael Ashton wrote:
Hi - Think this is quick help. Not sure how to trap what is causing my simple
script to run fine in R, but fail immediately when called from rscript. I can
put all sorts of traps in the script itself, but when called from the command
line the r wind
## Use the split argument to summary.aov
## This tests the levels of tension within each level of wool using a common
## Residuals sum of squares.
sapply(warpbreaks, levels)
model2 <- aov(breaks ~ wool/tension, data = warpbreaks)
colnames(model.matrix(model2))
## [1] "(Intercept)""woolB"
thank you very much Jim!
I'll try it.
bw
c
Sent from my iPhone
> Em 30/06/2016, às 20:33, Jim Lemon escreveu:
>
> Hi Carlos,
> The STATA function assumes estimated population SDs. If you have
> sample SDs you can specify with this:
>
> combine<-function(n,mu,sd,sd.type=c("pop","sample")) {
> N
Hi Carlos,
The STATA function assumes estimated population SDs. If you have
sample SDs you can specify with this:
combine<-function(n,mu,sd,sd.type=c("pop","sample")) {
N<-sum(n)
mean<-sum(n*mu)/N
if(sd.type[1]=="sample") {
meanss<-(n[1]*(mean-mu[1])^2+n[2]*(mean-mu[2])^2)/N
SD<-sqrt(sum(sd
... Time to do your homework. Have you gone through any R tutorials?
Some recommendations here: https://www.rstudio.com/online-learning/#R
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breat
Stata's documentation lists this as a meta-analysis tool.
You may want to look at the rma function in the metafor package for various
approaches to that problem.
S Ellison
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Carlos R.
> Moreira Maia
> S
See this link for the function varEntryDialog() itself:
http://www.r-bloggers.com/user-input-using-tcltk/
Ivan
Le 12/10/15 15:57, Ivan Calandra a écrit :
Dear Nick,
You might find the function varEntryDialog() useful:
http://www.r-bloggers.com/user-input-using-tcltk-2/
HTH,
Ivan
--
Ivan Cal
Dear Nick,
You might find the function varEntryDialog() useful:
http://www.r-bloggers.com/user-input-using-tcltk-2/
HTH,
Ivan
--
Ivan Calandra, PhD
University of Reims Champagne-Ardenne
GEGENAA - EA 3795
CREA - 2 esplanade Roland Garros
51100 Reims, France
+33(0)3 26 77 36 89
ivan.calan...@univ
Dear nicholas.wray,
Re:
> Hi I am sure that there is a command in R which tells the prog to wait until
> you have input a value for a variable, but for the life of me I can't find it.
> Searches on the net only seem to talk about inputting datasets etc, not about
> real time single inputs. I'd
Reproducibility
https://github.com/hadley/devtools/wiki/Reproducibility
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
John Kane
Kingston ON Canada
> -Original Message-
> From: ali.alrubaiee1...@gmail.com
> Sent: Fri, 3 Apr 2015 14:16:11 -0400
> T
I cannot make sense of your email. This is partly due to your use of HTML,
which the Posting Guidelines warn you not to do.
The symbolic language used on this mailing list is R. The linear algebra
operations available in R are rather straightforward. Please read the
documentation and convey yo
GIYF
http://goo.gl/yUAIJl
On Fri, Jun 6, 2014 at 5:42 AM, kafi dano wrote:
> Hi
>
> for all user in R
>
> please send me the command of least absolute value (LAV ) in R programming
>
> TQ.
>
>
> Kafi Dano Pati
> Ph.D candidate ( mathematics/statistics)
> Department of mathematical Science/ f
deviation: "perl -walne 'blah regexp
print $F[0]' file.txt | r sd -", to plot my perl-extracted dataset: "perl
-walne 'regexp blah' | r -dp -".
It has few more perks, but running full R is always an option.
Tomek
P.S. I moved it to Google Code, for easier a
On Oct 2, 2013, at 11:07 , C.H. wrote:
> Have a look at the littler.
>
> http://dirk.eddelbuettel.com/code/littler.html
>
Or Rscript (comes standard with R) for that matter:
$ echo '2+2' | Rscript -
[1] 4
-pd
> On Sun, Sep 29, 2013 at 3:36 AM, Tomek R wrote:
>> Hi,
>> I have found myself
Have a look at the littler.
http://dirk.eddelbuettel.com/code/littler.html
On Sun, Sep 29, 2013 at 3:36 AM, Tomek R wrote:
> Hi,
> I have found myself often doing simple statistical analysis using Linux
> command line on a single dataset. Therefore, I put a perl script together,
> which makes
On Sat, Oct 23, 2010 at 6:43 PM, Lee Hachadoorian
wrote:
> sh -c 'R_DEFAULT_PACKAGES="$R_DEFAULT_PACKAGES Rcmdr" R "$@"'
>
> This is pulled directly from the launcher that Ubuntu creates when it
> installs Rcmdr from the repository.
>
It seems that the CRAN Rcmdr also ships an Rcmdr.desktop file i
On Sat, Oct 23, 2010 at 6:43 PM, Lee Hachadoorian
wrote:
> sh -c 'R_DEFAULT_PACKAGES="$R_DEFAULT_PACKAGES Rcmdr" R "$@"'
>
Oh, nice! Thanks a lot, it works like a charm. Regards
Liviu
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/lis
Liviu,
Try
sh -c 'R_DEFAULT_PACKAGES="$R_DEFAULT_PACKAGES Rcmdr" R "$@"'
This is pulled directly from the launcher that Ubuntu creates when it
installs Rcmdr from the repository.
--Lee
On 10/23/2010 11:37 AM, Liviu Andronic wrote:
> On Sat, Oct 23, 2010 at 5:30 PM, Henrique Dallazuanna
> wro
On Sat, Oct 23, 2010 at 5:30 PM, Henrique Dallazuanna wrote:
> In windows it work's fine
>
After further experimentation, it does work when I escape the
parentheses. However, both
l...@liv-laptop:~$ R --interactive -e require\(Rcmdr\)
and
l...@liv-laptop:~$ R -e require\(Rcmdr\) --interactive
fa
In windows it work's fine
On Sat, Oct 23, 2010 at 12:36 PM, Liviu Andronic wrote:
> On Sat, Oct 23, 2010 at 2:07 PM, Henrique Dallazuanna
> wrote:
> > You've tried removing the quotes around require?
> >
> Yes, but it fails:
> l...@liv-laptop:~$ R --interactive -e require(Rcmdr)
> bash: syntax e
On Sat, Oct 23, 2010 at 2:07 PM, Henrique Dallazuanna wrote:
> You've tried removing the quotes around require?
>
Yes, but it fails:
l...@liv-laptop:~$ R --interactive -e require(Rcmdr)
bash: syntax error near unexpected token `('
l...@liv-laptop:~$ R -e require(Rcmdr) --interactive
bash: syntax e
You've tried removing the quotes around require?
On Sat, Oct 23, 2010 at 6:19 AM, Liviu Andronic wrote:
> Dear all
> I would like to start R with Rcmdr from the cli, without tweaking
> Rprofile.site. This has been discussed in the past [1], but I don't
> see a solution that (1) could be used with
On Jul 21, 2010, at 5:33 PM, AndrewPage wrote:
Hi all,
I'm currently working on an R program where I have to access an FTP
server
to download some of the data I need. However, the people who post
up the
files I access are at times inconsistent with regards to time
posted, if
they post
On Thu, Jul 01, 2010 at 02:49:20PM -0400, Bierbryer, Andrew wrote:
> Do you know to pass named command line arguments into an R script?
>
> I have used littler and argv to pass a vector of arguments, but this
> requires you to maintain the order of the arguments.
Install the getopt package from C
Hi,
On Thu, Jul 1, 2010 at 2:49 PM, Bierbryer, Andrew
wrote:
> Do you know to pass named command line arguments into an R script?
>
> I have used littler and argv to pass a vector of arguments, but this
> requires you to maintain the order of the arguments.
>
> I'm wondering if there is a way to
This seems to work quite well and gives an ~85% speed increase compared to
the for loop. Thanks a bunch!
Peter Ehlers wrote:
>
> Or maybe aperm() is faster:
>
> max(colSums(aperm(yourArray, c(2,1,3
>
> -Peter Ehlers
>
> Peter Ehlers wrote:
>> Does this
>>
>> max(apply(yourArray, 3,
This gives the correct result but appears to be slower than the for loop I
was using, I do appreciate the suggestion though.
Peter Ehlers wrote:
>
> Does this
>
> max(apply(yourArray, 3, rowSums))
>
> give you what you want?
>
> -Peter Ehlers
>
> Will Carr wrote:
>> Working with an NxMx
David Winsemius wrote:
>
> What are M, N, and O? All the same magnitude?
>
In this case, 4,13,10.
> What are you doing based on that if( ) determination?
>
Increasing a counter.
> Are you sure you are interpreting your profile results correctly?
>
No, but I think I am. I'm using proc.t
On Nov 30, 2009, at 11:10 AM, Will Carr wrote:
Working with an NxMxO sized matrix, currently I can do this in my
code:
What are M, N, and O? All the same magnitude?
if (max(colSums(array)) >= number)
But to get an equivalent result using rowSums, I have to do:
for (i in 1:10)
{
if (max
Or maybe aperm() is faster:
max(colSums(aperm(yourArray, c(2,1,3
-Peter Ehlers
Peter Ehlers wrote:
Does this
max(apply(yourArray, 3, rowSums))
give you what you want?
-Peter Ehlers
Will Carr wrote:
Working with an NxMxO sized matrix, currently I can do this in my code:
if (max(co
Does this
max(apply(yourArray, 3, rowSums))
give you what you want?
-Peter Ehlers
Will Carr wrote:
Working with an NxMxO sized matrix, currently I can do this in my code:
if (max(colSums(array)) >= number)
But to get an equivalent result using rowSums, I have to do:
for (i in 1:10)
{
if
On Tue, 10 Nov 2009, Duncan Murdoch wrote:
--interactive tells R that there is a human producing the input stream, so it
can ask questions and expect them to be answered. In your experiments with
it, your input stream was the pipe holding the output of echo, and R got
confused because that p
Adam D. I. Kramer wrote:
Hello,
I am interested in passing a command or two to R on the command
line. The desired behavior is for R to run these commands first, and then
begin an interactive session. For example:
$ R -e 'foo <- read.csv("/tmp/foo.csv")'
...which would launch R and execu
On Aug 19, 2009, at 9:21 PM, Peng Yu wrote:
Hi,
I know that I can use the following script to get the command line
options for an R script. But the output shows two many irrelevant
That would be "too many".
arguments. For example, I only want to pass "a", "b" and "c" to the
script. The fir
Thank you! That's what I need!
Tamara Hoebinger
Uwe Ligges-3 wrote:
>
> If you want to integrate Fortran into R, see the manual Writing R
> Extensions.
>
> If you want to just call some external program (independent of the
> language it is written in) via the operating system, see ?system (
If you want to integrate Fortran into R, see the manual Writing R
Extensions.
If you want to just call some external program (independent of the
language it is written in) via the operating system, see ?system (and
?shell on Windows).
Uwe Ligges
thoeb wrote:
Hello!
Does exist a command t
On Tue, Dec 2, 2008 at 11:18 AM, Barry Rowlingson
<[EMAIL PROTECTED]> wrote:
> 2008/12/2 b g <[EMAIL PROTECTED]>:
>>
>> Since I'm a SAS programmer, I'm used to creating command files in an editor
>> for submission later. Is there a way to do this in R? I'd need to retain
>> an ouput listing and
2008/12/2 b g <[EMAIL PROTECTED]>:
>
> Since I'm a SAS programmer, I'm used to creating command files in an editor
> for submission later. Is there a way to do this in R? I'd need to retain an
> ouput listing and a log to check for errors.
You probably want R CMD BATCH from a command-line. Fo
You could also look at littler
Then you could use, under Linux,
#!PTHTOR/r
x <- read.csv(...)
lm(...)
.
.
.
Rainer
On Tue, Dec 2, 2008 at 4:07 PM, Blanchette, Marco
<[EMAIL PROTECTED]> wrote:
> Try
>
>> source('myFirstScript.R')
>
> Where myFirstScript.R as the following line
>
> x <- rnorm(10
Try
> source('myFirstScript.R')
Where myFirstScript.R as the following line
x <- rnorm(100)
y <- rnorm(100)
plot(x,y)
You could also use a editor like emacs with the ess-mode where one buffer can
be your script with a live R session in a second buffer.
Good luck
On 12/2/08 7:21 AM, "b g"
On Tue, Nov 18, 2008 at 4:09 AM, Wacek Kusnierczyk
<[EMAIL PROTECTED]> wrote:
> Wacek Kusnierczyk wrote:
>> Duncan Murdoch wrote:
>>
>>> paramValue <- 15
>>> source("myRfile.R")
>>>
>>> The quotes are necessary, because source(myRfile.R) would go looking
>>> for a variable named myRfile.R, rather t
Wacek Kusnierczyk wrote:
> Duncan Murdoch wrote:
>
>> paramValue <- 15
>> source("myRfile.R")
>>
>> The quotes are necessary, because source(myRfile.R) would go looking
>> for a variable named myRfile.R, rather than using "myRfile.R" as the
>> filename.
>>
>
> why?
i see this question has
On Mon, 2008-11-17 at 15:12 +0100, Wacek Kusnierczyk wrote:
> Duncan Murdoch wrote:
> >
> > paramValue <- 15
> > source("myRfile.R")
> >
> > The quotes are necessary, because source(myRfile.R) would go looking
> > for a variable named myRfile.R, rather than using "myRfile.R" as the
> > filename.
>
On 17/11/2008 9:14 AM, Brigid Mooney wrote:
Is there a better command to use rather than source which would take
command arguments?
I ask because I currently have 6 parameters, will likely have additional
paramaters later, and would like to be able to have default values for
each, if I do no
Is there a better command to use rather than source which would take command
arguments?
I ask because I currently have 6 parameters, will likely have additional
paramaters later, and would like to be able to have default values for each,
if I do not specify new values.
Thanks so much!
On Mon, No
Duncan Murdoch wrote:
>
> paramValue <- 15
> source("myRfile.R")
>
> The quotes are necessary, because source(myRfile.R) would go looking
> for a variable named myRfile.R, rather than using "myRfile.R" as the
> filename.
why?
vQ
__
R-help@r-project.org
Brigid Mooney wrote:
Hi Everyone,
I am pretty new to R and so far have mostly been using R interactively
through the Windows console.
I'm starting to write some scripts, and have been executing them using the
source() command, i.e. source(myRfile.R).
My questions is how can I pass command line
Try:
> mydata2 <- with(mydata, data.frame(Var1 = rep(Var1, Count),
+ Response=rep(Response, Count) )
+ )
> mydata2
Var1 Response
1A1
2A2
3A2
4B6
5B6
6B6
7A7
8A7
9A7
Hope this helps,
___
On 9/17/2008 1:42 PM, Farr, David wrote:
Could someone please tell me how to stop the package/function name from
being included before the command prompt? This started happening today
after I made some changes to my Rprofile.site file and I don't know why.
For example: if I enter example(AIC), i
Farr, David wrote:
> Could someone please tell me how to stop the package/function name from
> being included before the command prompt? This started happening today
> after I made some changes to my Rprofile.site file and I don't know why.
> For example: if I enter example(AIC), instead of just g
Prof Brian Ripley wrote:
>
>
>> So I guess my question changes to: Does anyone know if there are plans /
>> is it possible to add GNU Readline functionality in the Windoze port?
>
> No plans, especially as Rterm.exe already has getline with very similar
> functionality. But of course you ar
67 matches
Mail list logo