Hello David,
I'm not sure I get your question; if you replied to SO, I had not seen it. I
posted there today. I'm reading it now! I chose not to receive replies in my
email from SO but I must change that. Thank you for making me see that!
Sorry, I'm new to R-help and, especially, SO.
Thanks for y
Hi all
I have a data frame with duplicate columns and i want to remove duplicates
by adding rows in each group of duplicates, but have lots of NA's.
Data:
dfrm <- data.frame(a = 1:4, b= 1:4, cc= 1:4, dd=1:10, ee=1:4)
names(dfrm) <- c("a", "a", "b", "b", "b")
dfrm[3,2:3]<-NA
dfrm
a a b b b
I have imported the data fram Excel and it comes like this:
Calendar Year/Month 01.2008 01.2008 01.2008 01.2008 01.2008 02.2008 02.2008
Calendar year / week01.2008 02.2008 03.2008 04.2008 05.2008 05.2008 06.2008
There are repeats in the weeks both belonging to two months. It's the same
at
Thanks Uwe,
it works!
I just have a problem at week 53 which gives me an NA. I guess, this week 53
has to do with the data type set at the database design and collection of
data. Depends on the week/year kind of counting.
--
View this message in context:
http://r.789695.n4.nabble.com/problem-co
ear, so I do:
>as.Date(adates,format=c("%W/%y"))
and get
[1] "2020-05-12" "2020-05-12" "2020-05-12" "2020-05-12" "2020-05-12"
[6] "2020-05-12" "2020-05-12" "2020-05-12" "2020-05-12" &quo
5 matches
Mail list logo