Displaying 10 results from an estimated 10 matches similar to: "trouble parsing a date using strptime()"
2012 Nov 09
2
Creating yyyymm regexp strings on the fly for aggregation.
Folks,
This question is somewhat related to a previous posting of mine.
I just can't seem to create a generic solution.
Here is a function that I found searching around the internet:
splitIt <- function(x, n) {split(x, sort(rank(x) %% n))}
I use it like so:
> splitIt(1:12, 2)
$`0`
[1] 1 2 3 4 5 6
$`1`
[1] 7 8 9 10 11 12
Or
> splitIt(1:12, 4)
$`0`
[1] 1 2 3
$`1`
[1] 4 5 6
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
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
2012 Jul 03
0
missing price datas before launched
HI,
I have the price and volume data from own product and competitor'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
2011 Nov 29
2
Help with recast() syntax
Dear Help-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,
2010 Jan 04
5
link-dest question
The command below was run on FreeBSD 7.2 with rsync-3.0.3.
The command works but copies all files, i.e. no hard links created.
rsync -vaxH --numeric-ids --delete --exclude=/home/apache/logs \
--link-dest=/mnt/200912/newharbor/home -e ssh newharbor.safeport.com:/home \
201001/newharbor/home/
The command was run without the continuation breaks that I added for
readability. The command
2019 Apr 04
3
question about --emit-relocs with lld
Hi,
While doing Linux kernel builds linked with lld, I've tracked down a
difference that breaks relocation of the kernel image (e.g. under
KASLR[1]). Some relocations are changed to ABS (weirdly, all are in
.rodata section). Note the difference below in the resulting linked
output.
.L__const._start.instance becomes *ABS* only under lld:
$ cat minimal.c
struct minimal {
void *pointer;
2008 Feb 27
2
deliver & procmail
hi together,
procmail provides an error by delivery.
procmail: Executing "/usr/local/libexec/dovecot/deliver,Maildir"
procmail: Error while writing to "/usr/local/libexec/dovecot/deliver"
procmail: Program failure (64) of "/usr/local/libexec/dovecot/deliver"
procmail: Assigning "LASTFOLDER=/usr/local/libexec/dovecot/deliver Maildir"
From
2013 Dec 23
2
[PATCH net-next 3/3] net: auto-tune mergeable rx buffer size for improved performance
On Mon, Dec 16, 2013 at 04:16:29PM -0800, Michael Dalton wrote:
> Commit 2613af0ed18a ("virtio_net: migrate mergeable rx buffers to page frag
> allocators") changed the mergeable receive buffer size from PAGE_SIZE to
> MTU-size, introducing a single-stream regression for benchmarks with large
> average packet size. There is no single optimal buffer size for all
>
2013 Dec 23
2
[PATCH net-next 3/3] net: auto-tune mergeable rx buffer size for improved performance
On Mon, Dec 16, 2013 at 04:16:29PM -0800, Michael Dalton wrote:
> Commit 2613af0ed18a ("virtio_net: migrate mergeable rx buffers to page frag
> allocators") changed the mergeable receive buffer size from PAGE_SIZE to
> MTU-size, introducing a single-stream regression for benchmarks with large
> average packet size. There is no single optimal buffer size for all
>