Displaying 3 results from an estimated 3 matches for "checkdat".
Did you mean:
checkdag
2009 Dec 08
0
Holiday Gift Perl Script for US Holiday Dummy Regressors
...t;\n";
$baseDate=DateCalc($baseDate,"+7 days");
} #end while
} #end if w
sub holidayCheck {
my $t = shift;
my $y = UnixDate($t,"%Y");
my $m = UnixDate($t,"%m");
my $B = UnixDate($t,"%B");
my $d = UnixDate($t,"%d");
my $checkDate = "$m/$d/$y";
# YOU CaN ADD MOrE HOLIDAYs HERE BUT YoU nEED TO ADD COLUMNs TO THE HEADER
# AND ADDITIONAL "if(holidayCheck..." LINES
SWITCH: {
$checkDate eq "01/01/$y" and do {return "New Year's Day";};
$checkDate eq UnixDate(ParseDate("3rd monday...
2009 Dec 08
0
Opps Correct Version of Holiday Regressor Perl Script
...seDate=DateCalc($baseDate,"+7 days");
} #end while
} #end if w
close (OUTFILE);
sub holidayCheck {
my $t = shift;
my $y = UnixDate($t,"%Y");
my $m = UnixDate($t,"%m");
my $B = UnixDate($t,"%B");
my $d = UnixDate($t,"%d");
my $checkDate = "$m/$d/$y";
SWITCH: {
$checkDate eq "01/01/$y" and do {return "New Year's Day";};
$checkDate eq UnixDate(ParseDate("3rd monday of january $y"),"%m/%d/%Y") and
do {return "Martin Luther
King, Jr. Day";};
$checkDate eq UnixDate(Pa...
2012 Jan 18
4
R-Help
I am trying to create a frequency distribution and I am a bit confused.
Here are the commands I have entered:
> data <- read.csv(file="40609_sortedfinal.csv",head=TRUE,sep=",")
> NumberOfActionsByStatus = data$STATUS
> NumberOfActionsByUser = data$ETS_LOGIN
> NumberOfBidOffer = data$BID_OFFER
> NumberOfActionsByUser.freq = table(NumberOfActionsByUser)
>