I upgraded from R 4.0.2 to R 4.0.3 for Apple Mac at Duke University. Now, the
only output I get from R 4.0.3 is an error message. Greg Coats
2021-01-07 22:58:42.997 R[8311:37566] Warning: Expected min height of view:
() to be less than or equal to 30
but got a height of 32.00. This error wil
Hi R users,
I was trying to plot a graph with a secondary axis, and used the following
code for the data but the secondary line and secondary y -axis value did
not match. I would like to show both lines in one graph.
Any suggestions?
library(ggplot2)
library(reshape2)
daT<-structure(list(x = c(1L
Hello Dirk,
Many thanks for the feedback. I did came across your SO answer but
didn't know the RcppBDT package, thanks for pointing that out.
Best regards,
Jeremie
On Thursday, 7 Jan 2021 at 13:59, Dirk Eddelbuettel wrote:
> Jeremie,
>
> As months have irregular number of dates, one needs to us
Hello Jim,
Many thanks for the feedback
> Using "month" first advances the month without changing the day: if
> this results in an invalid day of the month, it is counted forward
> into the next month: see the examples.
Indeed I missed the documentation of seq.Date that refers to
seq.POSIXt. Ma
Hi Rui,
Thank you so much!! You code works well and I am looking into the pivot_wider
function.
Yuan Ding
-Original Message-
From: Rui Barradas [mailto:ruipbarra...@sapo.pt]
Sent: Thursday, January 7, 2021 12:19 PM
To: Yuan Chun Ding ; r-help@r-project.org
Subject: Re: [R] non-standa
Hello,
Here is a dplyr solution. The main trick is to create a column of 1's,
then pipe to pivot_wider.
library(dplyr)
library(tidyr)
df.long %>%
mutate(values = 1) %>%
pivot_wider(
id_cols = sample,
names_from = marker,
values_from = values,
values_fill = NA
)
Note:
Hi Bert,
Many thanks for your response.
Best,
Le mercredi 6 janvier 2021 à 21:47:14 UTC+1, Bert Gunter
a écrit :
Per the posting guide linked below:
"If the question relates to a contributed package , e.g., one downloaded from
CRAN, try contacting the package maintainer first. You can
Jeremie,
As months have irregular number of dates, one needs to use a function that
accounts for that (date libraries and packages have that, one of the earliest
for R was my RcppBDT package using Boost Date_Time), or be otherwise clever.
Here is a one-liner using the latter approach:
seq(a
yes it is the expected behaviour is you check the documentation:
Using "month" first advances the month without changing the day: if
this results in an invalid day of the month, it is counted forward
into the next month: see the examples.
Jim Holtman
Data Munger Guru
What is the problem that you
Hello,
I recently bumped into a behavior that surprised me.
When performing the following command, I would expect the second
argument to be "2012-09-30" but got "2012-10-01" instead
> seq(as.Date("2012-08-31"),by="1 month",length=2)
[1] "2012-08-31" "2012-10-01"
When the same command is performed
Show us your attempt on your example data. Also note that warnings are
*not* errors, though they typically do indicate problems.
-- Bert
On Thu, Jan 7, 2021 at 11:09 AM Yuan Chun Ding wrote:
> Hi Bert,
>
>
>
> No, this Is not home work related. Original data have 87352 rows. I used
> the stand
Hi Bert,
No, this Is not home work related. Original data have 87352 rows. I used the
standard reshape function and got warning message. So I reformatted the wide
format to meet my research purpose.
mut2 <-mut[,c("Tumor_Sample_Barcode","mut.id", "Hugo_Symbol")]
mut2 <-mut2[order(mut2$Hugo_Symb
Is this homework? There is a no-homework policy on this list.
If not, note that you are usually asked to show what you tried and the
error messages you received.
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley
Dear R user,
I want to reshape a long data frame to wide format, I made the following
example files. Can you help me?
Thank you,
Yuan Chun Ding
sample <-c("xr" , "xr" , "fh" , "fh" , "fh" , "uy" , "uy" , "uy" , "uy");
marker <-c("x" , "y" , "g" , "x" , "k" , "y" , "x" , "u" , "j");
df.long <-
On 07/01/2021 10:02 a.m., Magnus Torfason wrote:
I had sent the following to r-devel a while ago, but perhaps r-help is more
appropriate.
No, this is definitely an R-devel topic. You didn't get any replies
there, but that doesn't mean you should post it again in the wrong place.
Duncan Murd
I had sent the following to r-devel a while ago, but perhaps r-help is more
appropriate. I guess my question is what to do with this, would people
generally file an issue, or is there a way to hear if this is something
that makes sense to add – whether more info would be helpful and so on?
=
I
On 2021-01-07 11:34 +1100, Jim Lemon wrote:
> On Thu, Jan 7, 2021 at 10:40 AM Gordon Ballingrud
> wrote:
> >
> > Hello all,
> >
> > I have asked this question on many forums without response. And although
> > I've made progress myself, I am stuck as to how to respond to a particular
> > error mess
Hi Stephen,
Thanks for the advice, from my understanding, the function foo1 should
provide a vector of coefficients which are the same length as the columns
in the data frame provided. This is based on the results from glmnet. With
foo2, this should be the same case, I've provided an if statement
18 matches
Mail list logo