Displaying 9 results from an estimated 9 matches for "postyp".
Did you mean:
postype
2009 Jul 07
4
Test for X=1 fails, test for >0 works, data in text file is 1
...s in advance.
I've read a data file, reshaped it and then created MyResults by
keeping only lines where the value column is greater than 0. So far so
good. The data in MyResults looks good to me by eye.
The problem comes in when I try to further subset MyResults into
two files, one with PosType=1 and the other with PosType=-1. Looking
at the dimension of the results there's no change. It didn't work
which is verified by eye. However if I test for PosType=1 by actually
testing for PosType>0 then it does work.
Is this the general case in R that if I've read data that was...
2009 Jul 11
1
sort data.frame by specific date column
I have a data.frame that was built from a number of smaller
data.frames with rbind. Each ssmaller data.frame bound together runs
over the same date ranges. The format of the whole thing looks like
this:
Trade PosType EnDate EnTime ExDate ExTime PL_Pos
1 1 1 1040107 915 1040107 1300 164
2 2 1 1040108 909 1040108 1300 184
3 3 1 1040115 921 1040115 1300 64
4 4 1 1040120 1134 1040120 1300 124
5 5 1 1040121 923 104...
2009 Jul 08
1
What is cast telling me?
...the value in the table with something meaningful
to me. On thing would the the ExNum value from the first occurrence at
that crosspoint, or the PL_Pos value, etc.
How might I write a fun.aggregate to to that?
Thanks,
Mark
> dim(MyResults)
[1] 1105 12
> head(MyResults, n=15)
ExNum PosType EnDate EnTime ExDate ExTime PL_Pos Costs Save2
time value id
1.1 1 -1 1080103 800 1080103 1310 520 26 0
1 746.2 1
2.1 2 -1 1080104 755 1080104 1310 530 26 0
1 721.9 2
3.1 3 1 1080107 945 1080107 1310 -340 26 0
1 722.8...
2009 Jul 11
2
Date conversions
...1-02" "2020-01-03" "2020-01-06" "2020-01-07" "2020-01-08"
"2020-01-09" "2020-01-10" "2020-01-13" "2020-01-14" "2020-01-15"
"2020-01-16"
[12] "2020-01-17"
>
>
> MyDate2
Trade PosType EnDate EnTime ExDate ExTime
1 1 -1 1040127 919 1040127 932
2 2 1 1040127 1155 1040127 1208
3 3 -1 1040127 1300 1040127 1313
4 4 -1 1040128 958 1040128 1313
5 5 -1 1040129 1024 1040129 1129
6 6 1 1040129 1234 1040129...
2010 Dec 02
4
Why msvcrt generates errors ?
Hello winers
I'm doing a little excersice.
A minimal source
#include <string>
int main(void)
{
return 0;
}
So, if i compile that with:
g++ -I/usr/include/wine/msvcrt -c myfile.cpp
I get errors like:
In file included from /usr/include/c++/4.4/bits/postypes.h:42,
from /usr/include/c++/4.4/bits/char_traits.h:42,
from /usr/include/c++/4.4/string:42,
from myfile.cpp:1:
/usr/include/c++/4.4/cwchar:148: error: ?::fwide? has not been declared
The question is:
If i pass the -I option to the compiler int...
2010 Jan 31
3
[LLVMdev] llvm-gcc 4.0 question
....cpp -o Output/
ofstream_ctor.bc -emit-llvm
In file included from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/
wchar.h:112,
from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/
4.0.0/cwchar:54,
from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/
4.0.0/bits/postypes.h:46,
from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/
4.0.0/iosfwd:49,
from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/
4.0.0/ios:43,
from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/
4.0.0/istream:44,
from...
2010 May 20
3
Install eventmachine on Debian Lenny
...project.h:48:26: error: sys/resource.h: No existe el fichero o el
directorio
project.h:49:22: error: sys/wait.h: No existe el fichero o el directorio
In file included from /usr/include/wchar.h:37,
from /usr/include/c++/4.3/cwchar:52,
from /usr/include/c++/4.3/bits/postypes.h:47,
from /usr/include/c++/4.3/iosfwd:47,
from /usr/include/c++/4.3/ios:44,
from /usr/include/c++/4.3/ostream:45,
from /usr/include/c++/4.3/iostream:45,
from project.h:29,
from files.cpp:20:
/us...
2009 Jul 10
2
ReShape/cast question - sum of value in table
...ng trouble with is this:
Y = read.table("C:\\test.txt")
names(Y)[7] = "value"
Y
ReShape.Y = reshape(Y, varying=list(names(Y)[7]), direction='long')
ReShape.Y
cast(ReShape.Y, EnTime ~ ExTime)
When run the last two steps output the following:
> ReShape.Y
Trade PosType EnDate EnTime ExDate ExTime time value id
1 1 -1 1080103 800 1080103 1310 1 520 1
2 2 -1 1080104 755 1080104 1310 1 530 2
3 3 1 1080107 945 1080107 1310 1 -340 3
4 4 -1 1080108 820 1080108 1310 1 2150 4
5 5...
2009 Jul 09
2
How to Populate List
...the value in the table with something meaningful
to me. On thing would the the ExNum value from the first occurrence at
that crosspoint, or the PL_Pos value, etc.
How might I write a fun.aggregate to to that?
Thanks,
Mark
> dim(MyResults)
[1] 1105 12
> head(MyResults, n=15)
ExNum PosType EnDate EnTime ExDate ExTime PL_Pos Costs Save2
time value id
1.1 1 -1 1080103 800 1080103 1310 520 26 0
1 746.2 1
2.1 2 -1 1080104 755 1080104 1310 530 26 0
1 721.9 2
3.1 3 1 1080107 945 1080107 1310 -340 26 0
1 722.8 ...