Displaying 6 results from an estimated 6 matches for "201101".
Did you mean:
20110
2013 Mar 15
3
How to list the all products' information of the latest month?
Hi,
I have data frame like this:
Product Price Year_Month PE
A 100 201012 -2
A 98 201101 -3
A 97 201102 -2.5
B 110 201101 -1
B 100 201102 -2
B 90 201103 -4
How can I achieve the following result using R:
Product Price Year_Month PE
A...
2012 Jun 01
2
Day or Month difference between dates???
HI, R-Users:
I got a questions. have been struggling so long time....
I have this data:
> m1$Year_Month
201009 201010 201011 201101 201102
> min(m1$Year_Month)
201009
I want to calculate the following two answers, how do I program it?
> difference in Month?????
[1] 0 1 2 4 5
>difference in Days?????
0 31 61 ....
Thank you in advance!!!
Tammy
[[alternative HTML version deleted]]
2011 Jul 06
1
trouble parsing a date using strptime()
Hi,
I am having a trouble parsing dates using strptime() that I get in the
format of year and week number. The data looks like this "201127" which
means year 2011 and week 27. I would like to graph this using ggplot but
then I get a gap between 201054 and 201101 so I thought I would just easily
convert it.
I tried to use strptime and as.Date and the format string of %Y%W but it
seems to only parse the year out of the string and then return today's month
and date. Can anyone point me where I am going wrong or another avenue to
try?
David
> strptim...
2012 Nov 09
2
Creating yyyymm regexp strings on the fly for aggregation.
...ching regexps for monthly, quarterly, semi-annually and annual regexps.
One more example. Suppose I wanted to look at data semi-annually for 2010 through 2011. The regexps would be:
"201001|201002|201003|201004|201005|201006"
"201007|201008|201009|201010|201011|201012"
"201101|201102|201103|201104|201105|201106"
"201107|201108|201109|201110|201111|201112"
I hope I have explained my problem clearly.
Thanks much for your time,
KW
--
[[alternative HTML version deleted]]
2012 Jul 03
0
missing price datas before launched
...;s product:
Year_Month Volume own product's price Volume competitor's price
1 201011 17583 469.03 NA NA
2 201012 33899 489.25 NA NA
3 201101 31306 488.42 NA NA
4 201102 21272 479.07 173 550
5 201103 24145 462.99 2684 548
6 201104 20763...
2011 Nov 29
2
Help with recast() syntax
...elp-Rs,
I have data similar to the following:
DF <- structure(list(X = 1:22, RESULT = structure(c(2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L, 2L, 2L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L), .Label = c("NEG", "POS"), class = "factor"), YR_MO = c(201011L,
201012L, 201101L, 201102L, 201103L, 201104L, 201105L, 201106L,
201107L, 201108L, 201109L, 201011L, 201012L, 201101L, 201102L,
201103L, 201104L, 201105L, 201106L, 201107L, 201108L, 201109L
), TOT_TESTS = c(66L, 98L, 109L, 122L, 113L, 111L, 113L, 146L,
124L, 130L, 120L, 349L, 393L, 376L, 371L, 396L, 367L, 406L, 3...