search for: adat

Displaying 17 results from an estimated 17 matches for "adat".

Did you mean: adam
2009 Oct 10
1
Resultados distintos
...script en el ordenador del trabajo y en mi portátil con los mismos datos y obtengo resultados diferentes (siendo los correctos, los obtenidos en el trabajo): rm(list=ls()) directorio<-"C:\\Documents and Settings\\BDs\\" library(RODBC) library(car) library(gdata) ### DATOS A ### Adat<-read.xls(paste(directorio,"a.xls",sep=""),sheet=1) colnames(Adat)<-tolower(colnames(Adat)) Adat<-Adat[,-c(1,2,7:9)] Adat$m<-as.character(Adat$m)#CAMBIO EL TIPO PARA NO TENER PROBLEMAS Adat$v<-as.character(Adat$v)#CAMBIO EL TIPO PARA NO TENER PROBLEMAS ### DATOS...
2008 Sep 10
1
help: error handling in try
...try will generate en error message which would be picked up by the geterrmessage and thus expecting a false result. but this is not the case when it is inside a function. However, if simply run the body of function, the ret is indeed a false value. Why are they different? Many thanks is.Date= # adate: a scalar value # fun: the date function object # format: the designated date format to date function function(adate,fun,format) {         ret=NA;         error.old=geterrmessage();         .Internal(seterrmessage('no error'));         try(fun(adate,format),silent=T);         error=geterrm...
2009 Sep 17
3
Simple as.Date question dealing with a timezone offset
I've been trying to understand the as.Date functionality and I have a date and time stamp field that looks like this: "Tue Sep 15 09:22:09 -0600 2009" and I need to turn it into an R Date object for analysis. Simple date conversions I have down, no problem: > adate = c("7/30/1959") > as.Date(adate,"%m/%d/%Y") [1] "1959-07-30" > But when it comes to the type of date/time string format I have above, I can't figure out a format string that will work. The timezone offset is one part that causes problems. Building up to...
2006 Jul 25
1
[RODBC] ERROR: Could not SQLExecDirect
Hi, I've got a problem with RODBC and saving (sqlSave) of a dataframe in Access. R 2.0.1 is running on windows XP. When executing the examples in R help for the "USArrests" data set "sqlSAve" works fine, but running sqlSave() for a dataframe "Adat" > str(Adat) `data.frame': 1202 obs. of 18 variables: containing 18 columns and ca. 1200 rows fails. I get the following error message: > sqlSave(channel, Adat) Error in sqlSave(channel, Adat) : [RODBC] ERROR: Could not SQLExecDirect The data was fetched from the same Acces...
2011 Dec 05
2
R 2-14.0 locking up
Dear R People: I'm working with R-2.14.0 created from source on a quad core Windows 7 machine. Starting yesterday, nearly everything I run just sits. When I hit escape or Ctrl C, nothing happens. Has anyone run into this, please? Any suggestions would be much appreciated. Thanks, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of
2011 May 12
3
problem converting character to dates
Hi all, I've searched this problem and still I can't understand my results, so here goes: I have some time series I've imported from excel with the dates in text format from excel. Data was imported with RODBC, sqlQuery() function. I have these dates: >adates [1] "01/2008" "02/2008" "03/2008" "04/2008" "05/2008" "06/2008" "07/2008" [8] "08/2008" "09/2008" "10/2008" "11/2008" "12/2008" "13/2008" "14/2008" I want...
2006 Jan 28
1
Method for returning a random date between two dates
Hi, I''m trying to create a method to return a random date within a range. So far, I''ve come up with this... require ''parsedate'' def random_date (a, b) adate = ParseDate.parsedate(a) bdate = ParseDate.parsedate(b) atime = Time.local(*adate) btime = Time.local(*bdate) atime + (rand * (atime - btime) ) end ...and it doesn''t seem to work--the dates returned aren''t within the given range. Can anyone spot what I''m...
2002 Jan 24
1
PATCH: krb4/krb5/... names/patterns in auth_keys entries
...-0500 @@ -40,6 +40,7 @@ #ifdef KRB4 extern ServerOptions options; +int user_key_allowed(struct passwd *, Key *); static int krb4_init(void *context) @@ -220,6 +221,7 @@ socklen_t slen; u_int cksum; int r, s; + Key k; s = packet_get_connection_in(); @@ -249,12 +251,27 @@ *adat.pinst ? "." : "", adat.pinst, adat.prealm); /* Check ~/.klogin authorization now. */ - if (kuserok(&adat, authctxt->user) != KSUCCESS) { - log("Kerberos v4 .klogin authorization failed for %s to " - "account %s", *client, authctxt->user);...
2012 Aug 16
3
Reference a variable inside a string and another for object assingments
Hi R community I copied a bit of my R code that gets some data from a database. You won't be able to run the code, but I am a beginner so you will probably understand what going on. I would like to make a variable I can refer to inside the sqlQuery. Instead of writing the start date and time (ex SP.lokaldatotid >= '2005-01-01 00:00:00') inside the query I would like to define it
2009 Jun 26
3
code that will use two data sets which differ in size.
Hi all, This is a really basic question but I can't figure it out. I am trying to write a piece of code that will  use two datasets, z and m.. This code is meant to assign the mean of selected values in dataset m to a new column z$c in datset z but the rows and columns of the two data sets differ. I managed to write this down but think I am missing something standard but basic,I will really
2009 Jun 29
2
CRMy type app?
Looking for a (windows) app. that will listen to the manager interface then pop-up a web browser pointing to a page on an incoming phone call.. Not looking for outlook integration, or outbound dialling, just to recognise an incoming call and poke a URL at a website in a browser and I've absolutely no idea how to do it in the MS windows world... Any clues appreciated.. (More pointing to an
2006 Apr 25
7
Quick functional test question
Preamble: I''ve been putting off getting into testing while I got my head around everything else, because I am a BAD PERSON, and thought they wouldn''t be fun. After the past couple of hours I know I was wrong to put it off and right that they wouldn''t be fun (Didn''t help that took me a while to realise the Agile Book is out of date on unit testing). Anyway I
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 \* <=======
2003 Jun 27
2
No dial Tone but its registering from remote site! Anyone with idea?
Hello Everyone - Well, I think I'm getting closer with the asterisk connection. This is my setup and I keep getting this error below in ,my /var/log/asterisk/messages file. I have opened 5060 port on the firewall box. I would this is Warning which I can ignore! But I see the connetcion coming but NO DIAL TONE on mt ata186 box sitting in my 192.168.200.x site! I'm using ATA186(cisco
2018 Oct 28
0
[PATCH nbdkit 4/4] Add floppy plugin.
...i and .cluster_lo are set later on in + * update_directory_first_cluster. + */ + + i = extend_dir_table (di, floppy); + if (i == -1) + return -1; + floppy->dirs[di].table[i] = entry; + + return 0; +} + +/* Set the {c,m,a}date and {c,m}time fields in the entry structure + * based on metadata found in the statbuf. + */ +static void +set_times (const struct stat *statbuf, struct dir_entry *entry) +{ + 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 <<...
2010 Apr 20
5
Assigning Week Numbers
R experts, How could I extract the week number from a date vector (in Date class) such that week numbering (week 1...2...) begins (May 01) and ends (October 31) on the same specific dates each year? Week numbering must conform to the following day numbering format (Sat=1,Sun=2,Mon=3.....Fri=7). This means that new weeks must begin on Saturdays, and end on Fridays (except for the first date
2018 Oct 28
6
[PATCH nbdkit 0/4] Add floppy plugin.
Add nbdkit-floppy-plugin, “inspired” by qemu's VVFAT driver, but without the ability to handle writes. The implementation is pretty complete, supporting FAT32, LFNs, volume labels, timestamps, etc, and it passes both ‘make check’ and ‘make check-valgrind’. Usage is simple; to serve the current directory: $ nbdkit floppy . Then using guestfish (or any NBD client): $ guestfish --ro