Hi Phillip,
Generally these problems come down to knowing/setting your working
directory. The first question is whether you have a directory named
"data" inside your "C:/Users/Owner/Documents" directory? You may need
to create this directory first, outside of R and/or RStudio (using
your Windows O
Jeff Newmiller wrote/hat geschrieben on/am 17.03.2020 05:39:
The coxph function appears to rely on finding the name of the data argument in
the environment in which the formula was created. The lm function does not have
this problem.
Oh, and df is the name of the F distribution density functio
The coxph function appears to rely on finding the name of the data argument in
the environment in which the formula was created. The lm function does not have
this problem.
Oh, and df is the name of the F distribution density function, which explains
why the error complained about a "closure".
I ran across an issue that looks like variable scoping in survfit is not acting
as I would expect. Here's a minimal example:
new<-as.data.frame(list(t=1:4,d=rep(1,4),s=c(1,0,0,1)))
library(survival)
mine<-function(ff,df){
fit<-coxph(ff,data=df)
out<-survfit(fit,df)
}
mine(as.form
Dear Brian,
> On Mar 16, 2020, at 8:23 PM, Brian Grossman wrote:
>
> John,
>
> It appears that the new version of R 3.6.3 does not have this issue. I will
> be doing more testing and will let you know if we have any issues.
I'm glad that the Rcmdr is now working normally for you -- thanks f
John,
It appears that the new version of R 3.6.3 does not have this issue. I will
be doing more testing and will let you know if we have any issues.
Thank you for your assistance,
Brian
On Tue, Mar 10, 2020 at 8:46 AM Fox, John wrote:
> Dear Brian,
>
> Normally I'd expect that a workspace sav
#bug fix
unique.consecutive <- function (x)
{ dx <- diff (x)
x [c (TRUE, dx != 0)]
}
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://w
... and in addition see ?file.choose for an interactive way to choose files
that may be easier and/or help you to diagnose your problems.
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom C
This is R-help, not RStudio-help, nor is it "Analyzing Baseball Data"-help,
which means you cannot assume we know anything about what you are don't unless
you tell us. However, it turns out that neither R nor RStudio are likely to be
at fault here... it is up to you to keep track of which direct
Hi Abby,
Thank you so much for your effort!! I really appreciate your help!!
I modified your code a little to get both maxv and corresponding alleles in
var1.
For now, I do not care too much for identifying small peaks.
Ding
var1 <-c(1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,2
Can’t get past first step of Chapter 7 page 164.
Opened a new RStudio window. Loaded tidyverse and keyed in library(tidyverse)
which of course includes dplyr. The working directory is:
C:/Users/Owner/Documents.
Then keyed in: db <- src_sqlite(“data/pitchrx.sqlite”,create=TRUE)
And got the fo
I think I need a different email.
Google is making it difficult to sent/receive/read completely plain
text messages.
On my end, it's automatically formatting plain text messages, and
doing so, incorrectly.
__
R-help@r-project.org mailing list -- To UNSUB
Sorry, internet's not working properly today.
Third time lucky
Here's a solution to your original question:
-
freq <- c (1,2,5,5,10,4,4,8,1,1,8,8,2,4,3,1,2,1,1,138,149,14,1,1)
unique.consecutive <- function (x)
{ dx <- diff (x)
x [dx != 0]
}
which.maxs <- function (x, ..., inc
Good afternoon,
Here below my reproducible R code. I don't get any results. I am looking for
MSE_fastMM value and the bootstrap CIs around MSE_fastMM value. How can I
finish/correct my R code to get the results ?
Many thanks for your help.
install.packages( "robustbase",dep
(Sorry, that was supposed to go to the mailing list).
Here's a solution to your original question:
-
freq <- c (1,2,5,5,10,4,4,8,1,1,8,8,2,4,3,1,2,1,1,138,149,14,1,1)
unique.consecutive <- function (x)
{ dx <- diff (x)
x [dx != 0]
}
which.maxs <- function (x, ..., include.e
Hi Jim,
Yes, you are right. I sorted the tem4$Var1 first, then find rising peaks in
Freq variable from left to right. I guess I probably need to define the
minimal rising and drop on both side of a potential maxima, so avoid
identifying really small rising peaks. For example, I only want to
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide com
Hi Ding,
While I was completely off the track in my first reply, the subsequent
posts make your problem somewhat clearer. The way you state the
problem suggests that the order of the values of "freq" is important.
That is, it is not just a matter of finding local maxima, but the
direction in which
18 matches
Mail list logo