As the Posting Guide says... this is a plain text mailing list. You will help
yourself if you pay attention when posting.
The standard instructions for Ubuntu [1] describe how to set up authentication.
[1] https://cran.r-project.org/bin/linux/ubuntu/README.html
On August 6, 2019 10:52:05 AM PDT
Dear All,
I was thinking of two possible ways to plot a time-varying coefficient
in a Cox model.
One is simply to use survival::plot.cox.zph which directly produces a
beta(t) vs t diagram.
The other is to transform the dataset to counting process format and
manually include an interaction with t
We have a test system for boostrapping a production machine running R
code. It spins up a new machine and tries to install this version whenever
there is a new commit to our infrastructure code repo. This version has
been in place since Mar 2018 but a few weeks ago this test fails because it
can
I guess this is what you meant:
controls$control <- rep(1,nrow(controls))
t1=merge(tot,controls, by="eid", all = T)
On Tue, Aug 6, 2019 at 2:15 PM Patrick (Malone Quantitative) <
mal...@malonequantitative.com> wrote:
> This should get you going:
>
> Add a vector of 1s to controls before
This should get you going:
Add a vector of 1s to controls before joining the datasets.
On Tue, Aug 6, 2019 at 3:01 PM Ana Marija wrote:
>
> I really don't know how I would implement this
>
> On Tue, Aug 6, 2019 at 1:42 PM Patrick (Malone Quantitative)
> wrote:
>>
>> See the posting guide for t
I really don't know how I would implement this
On Tue, Aug 6, 2019 at 1:42 PM Patrick (Malone Quantitative) <
mal...@malonequantitative.com> wrote:
> See the posting guide for this list about plain text.
>
> Again, what have you tried? This is also mentioned in the posting guide.
>
>
> On Tue, Au
Hi Patrick,
yes both controls and tot have "eid" column, please see attached
Can you please tell em what means to post in "plain text" ?
Thanks
Ana
On Tue, Aug 6, 2019 at 1:33 PM Patrick (Malone Quantitative) <
mal...@malonequantitative.com> wrote:
> Do you have some kind of ID variable? If so
See the posting guide for this list about plain text.
Again, what have you tried? This is also mentioned in the posting guide.
On Tue, Aug 6, 2019 at 2:38 PM Ana Marija wrote:
>
> Hi Patrick,
>
> yes both controls and tot have "eid" column, please see attached
>
> Can you please tell em what me
Do you have some kind of ID variable? If so, it should be
straightforward with the appropriate joining function.
What have you tried?
Also, please post in plain text.
On Tue, Aug 6, 2019 at 2:16 PM Ana Marija wrote:
>
> Hello,
>
> I am filtering my data frame "tot" via:
>
> controls=tot %>% fi
Hello,
I am filtering my data frame "tot" via:
controls=tot %>% filter_all(any_vars(. %in% c("E109", "E119","E149"))) %>%
filter_all(any_vars(. %in% c("Caucasian"))) %>% filter_all(any_vars(. %in%
c("No kinship found","Ten or more third-degree relatives identified")))
> dim(controls)
[1] 15381
Hi Sigbert:
Is there a label argument, please? I think that might be it.
Thanks,
Erin
On Tue, Aug 6, 2019 at 1:52 AM Sigbert Klinke
wrote:
> Hi,
>
> I'am using
>
> sliderTextInput('myinput', choices=list("choice1"=1, "choice2"=2,
> "choice3"=3))
>
> But in the shiny app the UI element shows '1
Frankly, this is great. I don’t really care if it base or tidy, I just need it
to work.
Thank you kindly!
Shawn Way, PE
From: Eric Berger
Sent: Tuesday, August 06, 2019 8:30 AM
To: Shawn Way
Cc: r-help@r-project.org
Subject: Re: [R] Using Partial Column Matching for Mutate
** External Email
Hi Shawn,
Here is a solution using base R (no dplyr). The only regex appears in the
statement to get the common prefixes.
colsPrefixes <- sub("_Planned$","",colnames(gross_test)[
grep("_Planned$",colnames(gross_test))])
f <- function(s) {
gross_test[,paste(s,"Diff",sep="_")] <<-
gross_test[,past
I have a tibble that has a large number of variables and because I'm partial
lazy (and I really want to know how to do this), I would like find out if it
possible to partial column matching with the mutate function in the tidyverse.
I have a tibble with the following
> gross_test <- gross_df %
Hello,
I don't know if you want something like this:
hc_long <- reshape::melt(hc, id.vars = "Cluster") # convert to long format
library(ggplot2)
ggplot(hc_long, aes(x = Cluster, y = value, colour = variable)) +
geom_point() +
geom_line() +
coord_flip() +
facet_wrap(~ variable)
#Data
Hi Sigbert,
Just leave out the '=...', as in
sliderTextInput('myinput', choices=list("choice1", "choice2", "choice3") )
HTH,
Eric
On Tue, Aug 6, 2019 at 10:52 AM Sigbert Klinke
wrote:
> Hi,
>
> I'am using
>
> sliderTextInput('myinput', choices=list("choice1"=1, "choice2"=2,
> "choice3"=3))
Wow...Great one BOB...Gracias, Merci.
On Tue, 6 Aug 2019, 10:46 Bob O'Hara, wrote:
> For a start, try this:
>
> for(i in 1:5) {
> x <- runif(4,0,1)
> }
>
> Which will do what you want, but will over-write x each time (so isn't
> very good). Better (if you want to use the random numbers outside
For a start, try this:
for(i in 1:5) {
x <- runif(4,0,1)
}
Which will do what you want, but will over-write x each time (so isn't
very good). Better (if you want to use the random numbers outside the
loop) is this:
x <- matrix(NA, nrow=5, ncol=4)
for(i in 1:5) {
x[i,] <- runif(4,0,1)
}
But
Thanks guys, I've tried all you're suggesting, both for (x in 1:5) and
break, but I cant seem to ascertain when the loop has generated a vector of
4 random numbers 5 times.
On Tue, 6 Aug 2019, 10:09 Jim Lemon, wrote:
> Hi Tolulope,
> The "in" operator steps through each element of the vector o
Hi Tolulope,
The "in" operator steps through each element of the vector on the
right. You only have one element. Therefore you probably want:
for(x in 1:5)
...
Jim
Jim
On Tue, Aug 6, 2019 at 6:54 PM Tolulope Adeagbo
wrote:
>
> Hey guys,
>
> I'm trying to write a loop that will repeat an action
Is there anything wrong with just doing this?
x <- runif(5, min = 0, max = 1)
Also note that you use x to be at last 2 things: in
for (x in 5) {
you set it to 5, and then in the loop you
x = runif(1:4, min = 0, max = 1)
you make it a vector of length 4.
You also fail to use break to stop the
Hey guys,
I'm trying to write a loop that will repeat an action for a stipulated
number of times. I have written some code but i think i'm missing something.
for (x in 5) {
repeat{
x = runif(1:4, min = 0, max = 1)
print(x)
if (x== var_1[5]){
print("done")
}
pri
Hi,
I'am using
sliderTextInput('myinput', choices=list("choice1"=1, "choice2"=2,
"choice3"=3))
But in the shiny app the UI element shows '1', '2', instead of
'choice1', 'choice2' etc.
I think the reason is that in shinyTextInput is done
if (!is.character(choices)) {
choices <-
23 matches
Mail list logo