Re: [R] Command history

2021-03-01 Thread Dr Eberhard W Lisse
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

Re: [R] Command history

2021-03-01 Thread David Carlson
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

Re: [R] Command history

2021-02-28 Thread Dr Eberhard W Lisse
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

Re: [R] Command history

2021-02-28 Thread Mahmood Naderan-Tahan
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

Re: [R] Command history

2021-02-28 Thread Dr Eberhard W Lisse
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 / *

Re: [R] Command history

2021-02-28 Thread John Kane
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, >

[R] Command history

2021-02-28 Thread Mahmood Naderan-Tahan
Hi May I know where is the location of commands we used in R in the history? Regards, Mahmood [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-he

Re: [R] Obtaining the time to execute a R command

2019-11-20 Thread Rui Barradas
Hello, There is system.time {base} CPU Time Used Description Return CPU (and other) times that expr used. There are also packages microbenchmark or bench. Hope this helps, Rui Barradas Às 15:44 de 20/11/19, Jeff Reichman escreveu: R- Help Is there a command or way to obtain the ti

Re: [R] Obtaining the time to execute a R command

2019-11-20 Thread Eric Berger
Hi Jeff, You might want to check out the microbenchmark() function in the microbenchmark package. install.packages("microbenchmark") library(microbenchmark) ?microbenchmark HTH, Eric On Wed, Nov 20, 2019 at 5:45 PM Jeff Reichman wrote: > R- Help > > > > Is there a command or way to obtain the

[R] Obtaining the time to execute a R command

2019-11-20 Thread Jeff Reichman
R- Help Is there a command or way to obtain the time it took R to execute a command? Sincerely Jeff Reichman (314) 457-1966 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,

Re: [R] R command prompt newline treatment

2018-11-06 Thread Martin Maechler
> Jeff Newmiller > on Mon, 5 Nov 2018 18:47:00 -0800 writes: > Well, you may or may not have ruled out the Putty settings > (your hand waving is a bit hard for me to interpret), and > there may still be host side terminal settings involved, > or if you compiled R yours

Re: [R] R command prompt newline treatment

2018-11-05 Thread Jeff Newmiller
Well, you may or may not have ruled out the Putty settings (your hand waving is a bit hard for me to interpret), and there may still be host side terminal settings involved, or if you compiled R yourself you may have setup something wrong. However, in either case the R-sig-fedora mailing list wo

Re: [R] R command prompt newline treatment

2018-11-05 Thread Ben
Hi Jeff - thanks. I forgot to add originally that I use putty as a terminal for the old version of R I mentioned as well as the new, and also I can see the same issue with the new version of R when run in xterm. I’ve messed with some of the options putty offers and it doesnt change the new R beha

Re: [R] R command prompt newline treatment

2018-11-05 Thread Jeff Newmiller
I am pretty sure this is not an R issue (so it is off-topic here)... it sounds like the kind of misconfiguration that was common back when there were dozens of competing terminal manufacturers and the solution was to configure your Linux TERM variable and/or terminfo database to match up with yo

[R] R command prompt newline treatment

2018-11-05 Thread Ben
Hi all - I’m seeing a weird issue. I’m running R v3.3.2 on CentOS 7 Linux. The behavior of the command prompt when entering very long commands on a single line is strange compared to my use in older versions. Specifically, after hitting enter, the prompt continues on the line immediately after the

Re: [R] command to change some vars to missing into my dataset

2018-07-05 Thread Bert Gunter
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

Re: [R] command to change some vars to missing into my dataset

2018-07-05 Thread Jim Lemon
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

Re: [R] command to change some vars to missing into my dataset

2018-07-05 Thread Rui Barradas
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:

[R] command to change some vars to missing into my dataset

2018-07-05 Thread Adam Z. Jabir
Hi, I want to simulate missing at random for my dataset. Do you know an easy way to do it? I want to try not to have the missing�s for the same observations. I mean if one observation is been selected randomly to have missing I don�t want to have all the var of the same obs missing. I want to

Re: [R] command line fails

2018-02-02 Thread Michael Ashton
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

Re: [R] command line fails

2018-02-02 Thread Daniel Nordlund
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

Re: [R] command line fails

2018-02-02 Thread Enrico Schumann
: 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

Re: [R] command line fails

2018-02-02 Thread Enrico Schumann
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

Re: [R] command line fails

2018-02-02 Thread Michael Ashton
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

Re: [R] command line fails

2018-02-02 Thread Duncan Murdoch
: 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

Re: [R] command line fails

2018-02-02 Thread Michael Ashton
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

Re: [R] command line fails

2018-02-02 Thread Duncan Murdoch
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

[R] command line fails

2018-02-02 Thread Michael Ashton
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 simply flashes and closes. There's probably

Re: [R] Command for simple effects following 2 way anova with interaction

2016-11-30 Thread Richard M. Heiberger
## 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"

[R] Command for simple effects following 2 way anova with interaction

2016-11-30 Thread Ashim Kapoor
Dear All, Suppose I do :- head(warpbreaks) model1<- aov(breaks ~ wool*tension,data = warpbreaks) summary(model1) There is significant interaction. So I need to test for simple effects of wool at each level of tension and vice versa. I can do a subset and then do a one way anova for each level o

Re: [R] Command to combine means?

2016-06-30 Thread Carlos Renato M. Maia
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

Re: [R] Command to combine means?

2016-06-30 Thread Jim Lemon
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

Re: [R] Command to combine means?

2016-06-30 Thread Bert Gunter
... 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

Re: [R] Command to combine means?

2016-06-30 Thread S Ellison
; Moreira Maia > Sent: 30 June 2016 16:03 > To: r-help@r-project.org > Subject: [R] Command to combine means? > > Dear all, > I'm newbie with R (changing from STATA), and I can't find some commands. > One of those is the &quo

[R] Command to combine means?

2016-06-30 Thread Carlos R. Moreira Maia
Dear all, I'm newbie with R (changing from STATA), and I can't find some commands. One of those is the "combine", which I use to combine means like this: n1 m1 sd1 n2 m2 sd2 combine 12 3 1 34 45 4 Combine has calculated the following values: comb

Re: [R] Command to input a variable value in real time

2015-10-12 Thread Ivan Calandra
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

Re: [R] Command to input a variable value in real time

2015-10-12 Thread Ivan Calandra
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

Re: [R] Command to input a variable value in real time

2015-10-12 Thread Franklin Bretschneider
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

[R] Command to input a variable value in real time

2015-10-12 Thread nicholas . wray
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 be most grateful if anyone could p

Re: [R] R command to open a file "browser" on Windows and Mac?

2015-08-03 Thread Barry Rowlingson
And for completeness, on linux: system(paste0("xdg-open ",getwd())) there's a function in a package somewhere that hides the system dependencies of opening things with the appropriate application, and if you pass a folder/directory to it I reckon it will open it in the Explorer/Finder/Nautilus//x

Re: [R] R command to open a file "browser" on Windows and Mac?

2015-08-03 Thread Duncan Murdoch
On 03/08/2015 11:19 AM, Jonathan Greenberg wrote: > Folks: > > Is there an easy function to open a finder window (on mac) or windows > explorer window (on windows) given an input folder? A lot of times I want > to be able to see via a file browser my working directory. Is there a good > R hack t

Re: [R] R command to open a file "browser" on Windows and Mac?

2015-08-03 Thread Mark Sharp
Set your path with setwd(“my_path”) and then use file.choose(). You could have gotten this information sooner with a simple online search. Mark R. Mark Sharp, Ph.D. Director of Primate Records Database Southwest National Primate Research Center Texas Biomedical Research Institute P.O. Box 760549

[R] R command to open a file "browser" on Windows and Mac?

2015-08-03 Thread Jonathan Greenberg
Folks: Is there an easy function to open a finder window (on mac) or windows explorer window (on windows) given an input folder? A lot of times I want to be able to see via a file browser my working directory. Is there a good R hack to do this? --j [[alternative HTML version deleted]]

[R] vi[m] editing of past commands in R command line

2015-04-17 Thread Paul Domaskis
I've been told that my messages are being rejected because it is being posted via nabble in HTML format. I was advised to re-send this directly to r-help@r-project.org. My apologies if you get this twice. When I use bash + readline and ~/.inputrc contains "editing-mode vi", I can press "v" to sw

[R] vi[m] editing of past commands in R command line

2015-04-16 Thread paul
When I use bash + readline and ~/.inputrc contains "editing-mode vi", I can press "v" to switch to from the command line editing to a full vi session editing of a command. This doesn't seem to happen in R. Is there a configuration setting/file that I can set to get this behaviour? Furthermore

Re: [R] command help

2015-04-04 Thread John Kane
:11 -0400 > To: r-help@r-project.org > Subject: [R] command help > > Dear colleagues, > I wanted to run a command to do iteration for the following equation: > Pj+1=TT11+FtransposeTT22F-FtransposeTT21-TT12 > F+y[(Atranspose-FtransposeBtranspose)P(A-BF)] > > where TT11, TT22

Re: [R] command help

2015-04-03 Thread Jeff Newmiller
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

[R] command help

2015-04-03 Thread ali alRubaiee
Dear colleagues, I wanted to run a command to do iteration for the following equation: Pj+1=TT11+FtransposeTT22F-FtransposeTT21-TT12 F+y[(Atranspose-FtransposeBtranspose)P(A-BF)] where TT11, TT22,TT12, TT21, F transpose, A, B and F are matrices and y is a scalar we want to find the iteration for P

[R] "command not found" from system() call in GUI with proper PATH

2014-10-24 Thread Eric Archer - NOAA Federal
When running a system file from within R, I have just started to get a "command not found" error although my PATH seems to be properly set and I can run the same system file from the terminal. The program I am trying to run is 'fastsimcoal' and is in /usr/local/bin. I confirm this in the terminal

[R] command for plm

2014-10-18 Thread Amarjit Singh
Dear allI am trying to carry out step-wise panel regression analysis by making adaptation in the use of plm package. Say, I am trying to regress the explained variable (DEP) on 3 explanatory variables (EX1, EX2, EX3) using a panel data set (dat). Of course, the required set of instructions would

Re: [R] command

2014-06-06 Thread Timothy W. Cook
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

[R] command

2014-06-06 Thread kafi dano
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/ faculty of Science University Technology Malaysia 81310 UTM, Johor Bahru, Johor, Malaysia IC.

Re: [R] conversion error from numeric to factor in raster: Error in 1:ncol(r) : argument of length 0, r command: as.factor()

2014-05-07 Thread Stefan Schmidt
esday, May 6, 2014 11:22 AM To: r-help@r-project.org Subject: [R] conversion error from numeric to factor in raster: Error in 1:ncol(r) : argument of length 0, r command: as.factor() Hello together, I was wondering how I can solve the following conversion problem of a raster file: when I try to

Re: [R] conversion error from numeric to factor in raster: Error in 1:ncol(r) : argument of length 0, r command: as.factor()

2014-05-06 Thread David L Carlson
org] On Behalf Of Stefan Schmidt Sent: Tuesday, May 6, 2014 11:22 AM To: r-help@r-project.org Subject: [R] conversion error from numeric to factor in raster: Error in 1:ncol(r) : argument of length 0, r command: as.factor() Hello together, I was wondering how I can solve the following conversion

[R] conversion error from numeric to factor in raster: Error in 1:ncol(r) : argument of length 0, r command: as.factor()

2014-05-06 Thread Stefan Schmidt
Hello together, I was wondering how I can solve the following conversion problem of a raster file: when I try to convert the values from the raster (r) from numeric into a factor via as.factor(r) always the error appears: "Error in 1:ncol(r) : argument of length 0". r <- raster(ncol=5, nrow=

Re: [R] R command execution at specific time from within R

2013-12-26 Thread Greg Snow
te a code that executes an R command at specific time > intervals. > > É want R to do that instead of the operating system. > > Any help/pointer extremely welcome. > > Thanks in advance, > Costas > > [[alternative HTML version deleted]] > > >

Re: [R] R command execution at specific time from within R

2013-12-23 Thread Dirk Eddelbuettel
Costas Vorlow gmail.com> writes: > I am trying to write a code that executes an R command at specific time > intervals. > > É want R to do that instead of the operating system. > > Any help/pointer extremely welcome. Don't do it. Just rely on cron [if you're

[R] R command execution at specific time from within R

2013-12-23 Thread Costas Vorlow
Hello, I am trying to write a code that executes an R command at specific time intervals. É want R to do that instead of the operating system. Any help/pointer extremely welcome. Thanks in advance, Costas [[alternative HTML version deleted

Re: [R] Command line r

2013-10-02 Thread Tomek R
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

Re: [R] Command line r

2013-10-02 Thread peter dalgaard
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

Re: [R] Command line r

2013-10-02 Thread C.H.
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

Re: [R] Help about a R command

2013-09-28 Thread Duncan Murdoch
On 13-09-28 11:18 AM, Srinivas Sridhara wrote: Hi, I was trying to get an answer to this issue: bookRatingData <- read.table(file.choose(),header=TRUE,nrows=1048570) Warning message: In read.table(file.choose(), header = TRUE, nrows = 1048570) : incomplete final line found by readTableHeade

[R] Command line r

2013-09-28 Thread Tomek R
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 it easier:https://github.com/religa/statshttps://github.com/religa/stats/blob/master/r The idea behind simpleR is that it becomes a s

[R] Help about a R command

2013-09-28 Thread Srinivas Sridhara
Hi, I was trying to get an answer to this issue: bookRatingData <- read.table(file.choose(),header=TRUE,nrows=1048570) Warning message: In read.table(file.choose(), header = TRUE, nrows = 1048570) : incomplete final line found by readTableHeader on 'C:\Users\srinivas\Downloads\BX-Book-Ratings

Re: [R] knitr: Was previously " Sweave: printing an underscore in the output from an R command"

2013-09-02 Thread Yihui Xie
On Mon, Sep 2, 2013 at 5:01 PM, David Epstein wrote: > Dear Yihui > Thanks very much for drawing my attention to knitr, which I had not heard of > before. Also thanks for pointing out the bug in Sweave, which I don't fully > understand, but I don't want to spend time and effort on understanding

[R] knitr: Was previously " Sweave: printing an underscore in the output from an R command"

2013-09-02 Thread David Epstein
in the command sub, because sub does not seem to be able to output an >> expression with a single backslash. >> >> I tried the previous version as follows in my .Rnw document >> \Sexpr{print(sub("_", "_", version$platform))} >> When Sweave is run,

Re: [R] Sweave: printing an underscore in the output from an R command

2013-09-02 Thread Yihui Xie
; You have to escape the underscore >> >> \Sexpr{gsub("_", "\_", print(version$platform))} >> >> Best regards, >> >> Thierry >> >> >> Van: r-help-boun...@r-project.org [r-help-boun...

Re: [R] Sweave: printing an underscore in the output from an R command

2013-09-02 Thread Duncan Murdoch
On 13-09-02 3:18 PM, David Epstein wrote: Dear Thierry, Your suggestion doesn't work on my version of R. Here's what I get gsub("_", "\_", print(version$platform) Error: '\_' is an unrecognized escape in character string starting ""\_" print(gsub("_", "\_", version$platform)) Error: '\_' is

Re: [R] Sweave: printing an underscore in the output from an R command

2013-09-02 Thread David Epstein
> > Thierry > > ________ > Van: r-help-boun...@r-project.org [r-help-boun...@r-project.org] namens David > Epstein [david.epst...@warwick.ac.uk] > Verzonden: maandag 2 september 2013 17:38 > Aan: r-help@r-project.org > Onderwerp: [R] Sweave:

Re: [R] Sweave: printing an underscore in the output from an R command

2013-09-02 Thread ONKELINX, Thierry
maandag 2 september 2013 17:38 Aan: r-help@r-project.org Onderwerp: [R] Sweave: printing an underscore in the output from an R command I am working with Sweave and would like to print out into my latex document the result of the R command version$platform So what I first tried in my .Rnw docum

[R] Sweave: printing an underscore in the output from an R command

2013-09-02 Thread David Epstein
I am working with Sweave and would like to print out into my latex document the result of the R command version$platform So what I first tried in my .Rnw document was \Sexpr{print(version$platform)}. However, the output from this command is the string "x86_64-apple-darwin10.8.0" (w

Re: [R] Import from excel button in R-command

2012-04-03 Thread Jeff Newmiller
o work with it from home, >but >there is no button to import from excel in my edition. Is there anyone >who >knows how to get this feature, so i dont have to type in commands or >change >my excel documents everytime? > >Thanks in advance >/Nick > >-- >View this messa

Re: [R] Import from excel button in R-command

2012-04-03 Thread David Winsemius
On Apr 3, 2012, at 10:57 AM, nimoke wrote: Hello I have been searching for almost 2 hours for a certain plug-in/ package, so im making this thread as i hope you can help me find it. I had my first lesson in "Statistics in use" today, and when we worked on the school computers, we could d

[R] Import from excel button in R-command

2012-04-03 Thread nimoke
excel documents everytime? Thanks in advance /Nick -- View this message in context: http://r.789695.n4.nabble.com/Import-from-excel-button-in-R-command-tp4529023p4529023.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-proj

Re: [R] How can I ran an R command whcih is present as the content of a character object

2012-02-23 Thread Aniruddha Mukherjee
Michael, GREAT !! It worked. Thanks a lot. Aniruddha. From: "R. Michael Weylandt" To: Aniruddha Mukherjee Cc: R-help Date: 02/23/2012 07:10 PM Subject: Re: [R] How can I ran an R command whcih is present as the content of a character object eval(parse(text = rcom)) Micha

Re: [R] How can I ran an R command whcih is present as the content of a character object

2012-02-23 Thread R. Michael Weylandt
eval(parse(text = rcom)) Michael On Thu, Feb 23, 2012 at 8:30 AM, Aniruddha Mukherjee wrote: > I have an object called rcom which was created by the command rcom > <-"mean(mat_rix$COL_1)". Also the data-frame mat_rix is well defined with > numeric values in its column 1 and its name is "COL_1".

[R] How can I ran an R command whcih is present as the content of a character object

2012-02-23 Thread Aniruddha Mukherjee
I have an object called rcom which was created by the command rcom <-"mean(mat_rix$COL_1)". Also the data-frame mat_rix is well defined with numeric values in its column 1 and its name is "COL_1". My question is how to extract (or do something with) the content of rcom so that it provides the m

[R] best R command to assess SNP-covariates logistic regression

2012-02-22 Thread Kyoto 812
Good morning In case control study I do have 35 covariates (personal and environmental details about the patients) and genotype data for 50 SNPs I need to apply all the covariates and one SNP at a time in the logistic regression model How can i do this in R ? I have the Covariate file and

Re: [R] Is there a R command for testing the difference of two liear regressions?

2012-01-27 Thread David Winsemius
" better. > But I > could be wrong > which I only realized after reading your recommendation. michael: if > i'm > wrong, then disregard the paper reference that I sent earlier. > > > Mark > > > > On Fri, Jan 27, 2012 at 2:29 PM, Richard M. Heiberger &g

Re: [R] Is there a R command for testing the difference of two liear regressions?

2012-01-27 Thread Michael
;> >>>>> and he wants to see which coefficient ( B1 or B2 ) "works" better. But >>>>> I >>>>> could be wrong >>>>> which I only realized after reading your recommendation. michael: if >>>>> i'm >>>>> wrong

Re: [R] Is there a R command for testing the difference of two liear regressions?

2012-01-27 Thread David Winsemius
On Thu, Jan 26, 2012 at 11:59 PM, Michael wrote: Hi al, I am looking for a R command to test the difference of two linear regressoon betas. Lets say I have data x1, x2...x(n+1). beta1 is obtained from regressing x1 to xn onto 1 to n. beta2 is obtained from regressing x2 to x(n+1) onto 1 to n. Is

Re: [R] Is there a R command for testing the difference of two liear regressions?

2012-01-27 Thread Mark Leeds
gt;>> y = x2 * B2 + epsilon_2 >>>> >>>> and he wants to see which coefficient ( B1 or B2 ) "works" better. But >>>> I could be wrong >>>> which I only realized after reading your recommendation. michael: if >>>> i'm wrong, the

Re: [R] Is there a R command for testing the difference of two liear regressions?

2012-01-27 Thread Michael
aper reference that I sent earlier. >>> >>> >>> Mark >>> >>> >>> >>> On Fri, Jan 27, 2012 at 2:29 PM, Richard M. Heiberger >>> wrote: >>> >>>> It looks like you might be asking for the anova() on two mode

Re: [R] Is there a R command for testing the difference of two liear regressions?

2012-01-27 Thread Mark Leeds
x1 + x2 + x3, data=something) >>> M2 <- lm(y ~ x2 + x3, data=something) >>> anova(M1, M2) >>> >>> Please send a reproducible example to the list if more detail is needed. >>> >>> Rich >>> >>> On Thu, Jan 26, 2012 at 11:

Re: [R] Is there a R command for testing the difference of two liear regressions?

2012-01-27 Thread Michael
els. >> >> M1 <- lm(y ~ x1 + x2 + x3, data=something) >> M2 <- lm(y ~ x2 + x3, data=something) >> anova(M1, M2) >> >> Please send a reproducible example to the list if more detail is needed. >> >> Rich >> >> On Thu, Jan 26, 2012 a

Re: [R] Is there a R command for testing the difference of two liear regressions?

2012-01-27 Thread Mark Leeds
. > > Rich > > On Thu, Jan 26, 2012 at 11:59 PM, Michael wrote: > > > Hi al, > > > > I am looking for a R command to test the difference of two linear > > regressoon betas. > > > > Lets say I have data x1, x2...x(n+1). > > beta1 is obtained fr

Re: [R] Is there a R command for testing the difference of two liear regressions?

2012-01-27 Thread Richard M. Heiberger
wrote: > Hi al, > > I am looking for a R command to test the difference of two linear > regressoon betas. > > Lets say I have data x1, x2...x(n+1). > beta1 is obtained from regressing x1 to xn onto 1 to n. > > beta2 is obtained from regressing x2 to x(n+1) onto 1

Re: [R] Is there a R command for testing the difference of two liear regressions?

2012-01-26 Thread Mark Leeds
283. On Thu, Jan 26, 2012 at 11:59 PM, Michael wrote: > Hi al, > > I am looking for a R command to test the difference of two linear > regressoon betas. > > Lets say I have data x1, x2...x(n+1). > beta1 is obtained from regressing x1 to xn onto 1 to n. > > beta2 is ob

[R] Is there a R command for testing the difference of two liear regressions?

2012-01-26 Thread Michael
Hi al, I am looking for a R command to test the difference of two linear regressoon betas. Lets say I have data x1, x2...x(n+1). beta1 is obtained from regressing x1 to xn onto 1 to n. beta2 is obtained from regressing x2 to x(n+1) onto 1 to n. Is there a way in R to test whether beta1 and

Re: [R] R command window

2011-06-08 Thread Duncan Murdoch
On 11-06-08 9:28 AM, Michael Davidsen wrote: Hello. I'm a visually impaired statistician, working at the National Institute of Public Health in Denmark. I would like to use R for some analysis and have succesfully installed version 2.13.0 on my Windows XP labtop. I then would like to run R in

[R] R command window

2011-06-08 Thread Michael Davidsen
Hello. I'm a visually impaired statistician, working at the National Institute of Public Health in Denmark. I would like to use R for some analysis and have succesfully installed version 2.13.0 on my Windows XP labtop. I then would like to run R interactively but unfortunately the textfont of t

[R] command prompt shell suppressing stdout?

2011-03-22 Thread Michael Neely
After four years of using R, I finally have run into a problem to which I can't find a solution in the guides or forums and thus I am making my first post. Our lab has Fortran code for population modeling. I have been using R as a wrapper to process the raw data, generate a batch script that co

[R] command history in slave mode

2011-02-16 Thread Jannis
Dear list, I am running R in slave mode to run some calculations on a remote cluster and would like to somehow retrieve the last command in the case that it causes an error. When an error occours, my job is just quitted and it takes me a lot of work to find out which command in my rather lengt

Re: [R] R command execution from shell

2011-01-05 Thread Sebastien Bihorel
Thank you for this alternative. Both seem to work on my systems. Sebastien Prof Brian Ripley wrote: On Tue, 4 Jan 2011, Duncan Murdoch wrote: On 04/01/2011 3:21 PM, Sebastien Bihorel wrote: Dear R-users, Is there a way I can ask R to execute the "write("hello world",file="hello.txt")" comma

Re: [R] R command execution from shell

2011-01-04 Thread Prof Brian Ripley
On Tue, 4 Jan 2011, Duncan Murdoch wrote: On 04/01/2011 3:21 PM, Sebastien Bihorel wrote: Dear R-users, Is there a way I can ask R to execute the "write("hello world",file="hello.txt")" command directly from the UNIX shell, instead of having to save this command to a .R file and execute this f

Re: [R] R command execution from shell

2011-01-04 Thread Sebastien Bihorel
Thank you That is exactly what I was looking for. Sebastien Duncan Murdoch wrote: On 04/01/2011 3:21 PM, Sebastien Bihorel wrote: Dear R-users, Is there a way I can ask R to execute the "write("hello world",file="hello.txt")" command directly from the UNIX shell, instead of having to save th

Re: [R] R command execution from shell

2011-01-04 Thread Duncan Murdoch
On 04/01/2011 3:21 PM, Sebastien Bihorel wrote: Dear R-users, Is there a way I can ask R to execute the "write("hello world",file="hello.txt")" command directly from the UNIX shell, instead of having to save this command to a .R file and execute this file with R CMD BATCH? Yes. Some versions

[R] R command execution from shell

2011-01-04 Thread Sebastien Bihorel
Dear R-users, Is there a way I can ask R to execute the "write("hello world",file="hello.txt")" command directly from the UNIX shell, instead of having to save this command to a .R file and execute this file with R CMD BATCH? Thank you Sebastien

Re: [R] command to start R and Rcmdr?

2010-10-23 Thread Liviu Andronic
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

Re: [R] command to start R and Rcmdr?

2010-10-23 Thread Liviu Andronic
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

  1   2   3   >