search for: cdate

Displaying 20 results from an estimated 21 matches for "cdate".

Did you mean: date
2004 Mar 10
2
Inserting Date Field into Oracle table using ROracle
...insert Date field using ROracle package. I am stuck with this problem and appreciate receiving help from gurus on this list. Code used mainly is: library(ROracle) ### --- Version 0.53 drv <- dbDriver("Oracle") con <- dbConnect( drv, "user/passwd") d <- data.frame(CDATE = "2004-03-10 10:12:00") ps <- dbPrepareStatement(con, "INSERT into DATEST (CDATE) VALUES ( :1 ) ", bind=c( "character")) ## -- c("date") does not work sapply(d, class) d$CDATE <- as.character(d$CDATE) sapply(d, class) dbExecStatement(ps,d) Err...
2013 Apr 11
4
Understanding contents of packages
...tionality of the package without installing/"require"ing the package. This started with some success until I encountered one problem that I could not overcome. When I executed the function write.xport, I received the following error message: Error in .C("fill_file_header", cDate = xport.dateFMT(cDate), mDate = xport.dateFMT(mDate), : C symbol name "fill_file_header" not in load table This appears to be coming from the following line of code in write.xport: out(xport.file.header( cDate = cDate, sasVer = sasVer, osType = osType)) The problem appears to...
2005 Dec 05
1
Automatic time zone conversion
...to convert a date and time record extracted from a fortran subroutine I worte and I encounter some problem. The data read in time and date in a format like "2000-05-11_01:00:00.0000" in fortran output. It is in GMT. I need to convert it to CST (GMT+8). I did the following steps. > cdate [1] "2000-05-11_01:00:00.0000\005\003" # I am not sure why the extra characters at the end but it doesn't affect the strptime function so I just ingored it. > strptime(cdate,format="%Y-%m-%d_%H:%M:%S") [1] "2000-05-11 01:00:00" # In order to incoporate GMT int...
2012 Nov 20
1
Buffer overflow in date package
...86_64-linux-gnu/libc.so.6(+0x107f00)[0x7f46659c8f00] /lib/x86_64-linux-gnu/libc.so.6(+0x107369)[0x7f46659c8369] I have tried to isolate the problem by calling the C code from the date package without R. #include "char_date.c" int main() { int nv = 1; int order[] = {2,3,1}; char cdatev[] = "1921994"; int month[] = {0}; int day[] = {0}; int year[] = {0}; int *n = &nv; int i; int size = strlen(cdatev); char *cdate[size]; for (i=0;i<size;i++) cdate[i] = &cdatev[i]; char_date(n, order, cdate, month, day, year); printf("%d-%d-%d...
2007 Jun 13
5
Confusion with sapply
...3 + }else + if (Month=="06"){ + wDate$month <- 3 + }else + if (Month=="09"){ + wDate$month <- 3 + wDate$day <- wDate$day + 1 + }else warning ("No Changes made to the month, since month is not one of (6,9,12)") + cDate <- chron(paste(wDate$month,wDate$day,wDate$year,sep="/")) + return(as.Date(as.yearmon(as.Date(cDate,"%m/%d/%y")),frac=1)) + } > Set2March(as.Date("2006-06-30")) [1] "2006-03-31" > Set2March(mydate) [1] "2006-01-31" Warning message: No C...
2008 Jun 11
2
problem with as.Date
Data into R from Excel csv file xd<-read.csv("court.dates1.txt",as.is=T, header = F) > str(xd) 'data.frame': 5 obs. of 1 variable: $ V1: chr "6/6" "5/27" "5/16" "5/2" ... >xd V1 1 6/6 2 5/27 3 5/16 4 5/2 5 4/29 cdates <- as.Date(xd, format = " %m/ %d") Error in as.Date.default(xd, format = " %m/ %d") : do not know how to convert 'xd' to class "Date" Suggestions appreciated, Don -- View this message in context: http://www.nabble.com/problem-with-as.Date-tp17788...
2013 Apr 06
1
Replace missing values within a group with the non-missing value
...anised in choice groups see below. Each choice represents a separate occasion with 1 product chosen out of the 6 offered.            +-------------------------------------------------------------------------------------------------+      | dn   obs   choice      acid   br                 date       cdate   situat~n   mth   year   set |      |-------------------------------------------------------------------------------------------------|   1. |  4     1        0     LOSEC    1                    .           .                .      .     1 |   2. |  4     1        0    NEXIUM    2                  ...
2018 Jul 26
4
Problem with definition of slist in CFEngine
...dle agent info { vars: any:: "info_list" slist => { "includes.dir ............... = $(includes.dir)", "sys.arch ................... = $(sys.arch)", "sys.bindir ................. = $(sys.bindir)", "sys.cdate .................. = $(sys.cdate)", "sys.cf_promises ............ = $(sys.cf_promises)", "sys.cf_version ............. = $(sys.cf_version)", "sys.cf_version_major ....... = $(sys.cf_version_major)", "sys.cf_version_minor .....
2002 Dec 04
0
Continuous X Display problems on AIX
...################################# # # script: setdisp.ksh # # purpose: to set the display variable on login # ############################################################# # # Check if su, see if /tmp/ldisp for same date,time # DFILE=/tmp/ldisp if [ ${DISPLAY:-0} = "0" ] ; then cdate=`date +"%h%d%H:%M"` fdate=`ls -l $DFILE|awk '{print $6$7$8}'` if [ $cdate = $fdate ] ; then xauth add `cat $DFILE` export DISPLAY=`cat $DFILE | awk '{print $1}'` echo "" > $DFILE fi fi 3) Contents of generic_alias alias su=&q...
2011 Dec 27
1
sub query issue with active record.
...e just i tried to convert into corresponding active record queries. But i didn''t get the correct output. *Transaction.count(:loyalty_id) , :joins=> ["JOIN loyalties ON (transactions.loyalty_id = loyalties.id)" ] , :conditions => ["loyalties.created_at > ? ",cdate], :group=> ["transactions.loyalty_id"], :having=> ["count(*) > 1 "] )* How to change that issue? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://grou...
2012 Nov 12
1
problem with Erlang function
...? Name ? Name ? Date of birth. The program will calculate age and display output first I do know the system date (month, day, year) I find with Sys.Date () I found a function. net to calculate the age Protected Sub calcul_age() Dim datetimenow = DateTime.Now Dim datedenaissance = CDate(TbDn.Text) Dim age As Integer age = CInt(Now.Year - datedenaissance.Year) If (datedenaissance.Month > Now.Month) Then age = age - 1 End If If ((datedenaissance.Month = Now.Month) And (datedenaissance.Day > Now.Day)) Then age = age - 1 End If Me.Label3.Text...
2002 Dec 04
1
AIX - X displays forwarding problem with su
...################################# # # script: setdisp.ksh # # purpose: to set the display variable on login # ############################################################# # # Check if su, see if /tmp/ldisp for same date,time # DFILE=/tmp/ldisp if [ ${DISPLAY:-0} = "0" ] ; then cdate=`date +"%h%d%H:%M"` fdate=`ls -l $DFILE|awk '{print $6$7$8}'` if [ $cdate = $fdate ] ; then xauth add `cat $DFILE` export DISPLAY=`cat $DFILE | awk '{print $1}'` echo "" > $DFILE fi fi 3) Contents of generic_alias alias su=&q...
2005 May 07
4
string syntactic sugar in R? - long post
Currently in R, constructing a string containing values of variables is done using 'paste' and can be an error-prone and traumatic experience. For example, when constructing a db query we have to write, paste("SELECT " value " FROM table where date ='",cdate,"'") we are getting null result from it, because without (forgotten...) sep="" we get SELECT value FROM table where date=' 2005-05-05 ' instead of SELECT value FROM table where date='2005-05-05' Adding sep="" as a habit results in other e...
2006 May 31
1
Phrase Query vs AND Query? Why don't these find the same things?
...>delve -r 1 -1 -d -v -k /index/wfs/ Values for record #1: 1:/backup/c:/program files/Mozilla Firefox/res/table- add-column-after-hover.gif Data for record #1: /wfs/0/+/D/0+DM0wZ6y_mHubbNJjQXrgqW64s=/table-add-column-after-hover.gif /12345678-1234-1234-1234-1234567890ab Term List for record #1: CDATE:1135755971 1 1 ETAG:DA39A3EE5E6B4B0D3255BFEF95601890AFD80709 1 1 LANG:en 1 1 LEN:0 1 1 LP:Mozilla Firefox 1 1 LP:backup 1 1 LP:c: 1 1 LP:program files 1 1 LP:res 1 1 LP:table-add-column-after-hover.gif 1 1 MBOX:12345678-1234-1234-1234-1234567890ab 1 1 MDATE:1135755971 1 1 MIME:application/octet-str...
2018 Jul 26
0
Problem with definition of slist in CFEngine
...: > any:: > "info_list" slist => { > "includes.dir ............... = $(includes.dir)", > "sys.arch ................... = $(sys.arch)", > "sys.bindir ................. = $(sys.bindir)", > "sys.cdate .................. = $(sys.cdate)", > "sys.cf_promises ............ = $(sys.cf_promises)", > "sys.cf_version ............. = $(sys.cf_version)", > "sys.cf_version_major ....... = $(sys.cf_version_major)", > "sys.cf_...
2013 Apr 06
2
Replace missing value within group with non-missing value
Dear List members I have a large dataset organised in choice groups see sample below +-------------------------------------------------------------------------------------------------+ | dn obs choice acid br date cdate situat~n mth year set | |-------------------------------------------------------------------------------------------------| 1. | 4 1 0 LOSEC 1 . . . . 1 | 2. | 4 1 0 NEXIUM 2...
2000 Apr 03
1
2.0.7pre3: smbclient issues
My systems: rh61, 2.2.14 + smbfs-nls.patch. I refer to 2.0.7pre3 as 2.0.7 === 1) "ls" of an empty dir 1a) 1.9.18 doing "ls" to an empty samba dir: smb: \> ls 49550 blocks of size 16384. 33754 blocks available 1b) 2.0.7 doing "ls" to an empty samba dir: smb: \> ls ERRDOS - ERRbadfile (File not found.) listing \* <=======
2006 Mar 14
2
Date problem
Hello, I have some "stupid" problems managing "date" data. I have a colomn "date", which I converted from a character representation: for example: a="26/02/06" date=strptime(a,format="%d/%m/%y") For one part of the analysis, I'm interested only in the month and the year, so I did: m.y=strftime(date,format="%m/%y") This returns me
2018 Oct 28
0
[PATCH nbdkit 4/4] Add floppy plugin.
...ntry) +{ + struct tm ctime_tm, mtime_tm, atime_tm; + + localtime_r (&statbuf->st_ctime, &ctime_tm); + entry->ctime = + ctime_tm.tm_hour << 11 | + ctime_tm.tm_min << 5 | + (ctime_tm.tm_sec / 2); + entry->ctime_10ms = 100 * (ctime_tm.tm_sec % 2); + entry->cdate = + (ctime_tm.tm_year - 80) << 9 | + (ctime_tm.tm_mon + 1) << 5 | + ctime_tm.tm_mday; + + localtime_r (&statbuf->st_mtime, &mtime_tm); + entry->mtime = + mtime_tm.tm_hour << 11 | + mtime_tm.tm_min << 5 | + (mtime_tm.tm_sec / 2); + entry-&gt...
2013 Apr 07
3
mlogit error
Dear List I am trying to fit a multinomial model using the mlogit package. Attempting to load the data into mlogit presents the following error. MLOG<-mlogit.data(Mult3,shape="long",choice="CHOICE",alt.var="mode.ids",indivs = "set3",chid.var = "obs") Error in `row.names<-.data.frame`(`*tmp*`, value = c("1.1", "1.2",