similar to: Converting strings to date

Displaying 20 results from an estimated 9000 matches similar to: "Converting strings to date"

2005 Apr 26
3
Error using e1071 svm: NA/NaN/Inf in foreign function call
Hello, As far I saw in archive mailing list, I am not the first person with this problem. Anyway I was not able to pass this error once the information I got from the archive it is not very conclusive for this case. I have used linear, radial and sigmoid kernels for the same data in the same conditions and everything is ok. This problem just happens with the polynomial kernel. I send the
2005 Sep 09
1
Finding a decision tree's leaf node from a new value
Dear mailinglist members, I have the following problem: I run a decision tree using the rpart function and, afterwords, I try to find to which leaf node a new register (not used to build the decision tree) belongs to. I will try to explain better: rpart.tree <- rpart(target.value ~., data) leaf.node <- new.function(rpart.tree, new.register) The new register has all the explanatory values
2005 Jun 21
1
Data.frames with different line's length
Hello, I want to create a data.frame with different number of columns per line. What I want is something like: example <- NULL begin <- 1 while (end < nrow(orig.data)) { end <- next.day(orig.data,begin) # my own function. It returns the first index from the next day. Each day has a different number of records. example <- rbind(example, c(begin, end, predictions[c(begin:end)],
2005 Sep 20
1
Interpretation of csplit from rpart.object
Dear members of R-list, I need to reproduce the rules of a decision tree. For that I need to use the csplit information from the rpart.object. But I cannot uderstand the information because from my example I get: > rpart.tree$csplit [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1 3 3 1 3 3 3 [2,] 2 3 3 1 2 2 2 [3,] 1 3 3 1 3 3 3
2004 Oct 29
1
Giving column names to a matrix
Heloo, I have the following problem: orig.data <- NULL Inside a loop I have instructions like: orig.data <- rbind(orig.data, ...) After that I do: colnames(orig.data)<-c('Data','InicioViagem', ...) Everything works fine. For example, the first line of the matrix is: > orig.data[1,] Data InicioViagem ... 1 40466 ... The problem is: I
2012 Nov 20
3
Simple Traffic Shaping Problem
Hello, I have a problem with simple traffic shapping in shorewall, my current configuration is: zones vlan10 ipv4 # interfaces vlan10 vlan10 detect tcpflags,routeback shorewall.conf TC_ENABLED=Simple tcinterfaces vlan10 Internal 1mbit:50kb shorewall show tc Device vlan10: qdisc prio 5: root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
2004 Aug 18
1
Fwd: strptime() problem? - Resolved
Hi Gabor and everybody; Thanks Gabor, with the alternative step you've told me the problem is resolved. Comparing the two procedures: Extract from the source 'character' data: > rain$ts[2039:2046] [1] "25/03/2000 22:00:00 UTC" "25/03/2000 23:00:00 UTC" [3] "26/03/2000 00:00:00 UTC" "26/03/2000 01:00:00 UTC" [5] "26/03/2000 02:00:00
2013 Oct 15
2
Data handling
Hello all, I'm having a problem with data handling. My input data is (dput in the after the signature): Date Time Fraction 06/19/13 22:15:39 0.3205 06/19/13 22:15:44 0.3205 06/19/13 22:15:49 0.3205 06/19/13 22:15:54 0.3205 06/19/13 22:15:59 0.3205 06/19/13 22:16:09 0.3205 Date in format month/day/year, Time in HH:MM:SS and fraction represents the fractions of
2008 Aug 01
1
chron objects: input/output
Hi list, I have some questions regarding 1) conversion of date + time characters to chron 2) formatting chron object printing Regarding (1), Gabor's Rnews 2004 4/1 article has been indispensible, but I often work with files where dates and times are contained in a single field. In this case, I would like to control input/output of chron objects when each observation of date and time is
2011 Jul 26
2
How to use as.Date (or something else) with "31-Jul-2010 23:59:00"
Hello I have a huge file (not an R-file) in which the first column is a string with date, hour, minutes and seconds (For instance, "31-Jul-2010 23:59:00"). I tried as.Date but the error msg was "Error in charToDate(x) : character string is not in a standard unambiguous format". I have checked the help for the function as well as date but to no avail. How can that sort
1998 May 11
1
(wtmp) Suggestion to samba
Joao Carlos Mendes Luis <jonny@coe.ufrj.br> wrote: > I think it would be useful if samba had a utmp log interface. > I know that it's possible to see who is logged with smbstatus, but > sometimes a simple who(1) or w(1) is more efficient and ubiquitous. If you were to search for 'wtmp' in the 1997 archives (via the Samba web pages), you would find one interesting
2004 Feb 14
2
converting data to date format
Dear all, I import my data from a csv-file containing one row with date-entries. How can I tell R to treat this data as dates? I've tried to bring it in character-format (as.charachter()) followed by as.POSIXlt() but I get an error message, that the character string is not in a standard unambiguous format, although the date is of format yyyy-mm-dd (what is standard format according to R
2003 Dec 15
2
Week of the Year date conversion
Hello there fellow R-users, I have received some data which comes in the following format: example1<-"200301" The first 4 digits correspond to the year and the remaining 2 digits correspond to the week of the year. I have tried to convert this to a date by using strptime as follows: strptime(example1,format="%Y%U") where U (looking up strptime) is the week of the
2004 Aug 17
3
Fwd: strptime() problem?
Hi all; I've already send a similar e-mail to the list and Prof. Brian Ripley answered me but my doubts remain unresolved. Thanks for the clarification, but perhaps I wasn't clear enough in posting my questions. I've got a postgres database which I read into R. The first column is Timestamp with timezone, and my data are already in UTC format. An 'printed' extract of R
2013 Jul 04
2
Migrating domain using IMAPc
Hi list, I'm trying to do a domain migration using the imapc feature, but i'm having some problems and I really don't know what is happening. So if you guys could help me with a path to solve this, I will be glad. I'm using Dovecot 2.1.7 in a Debian Wheezy machine. The command I'm using is: dsync -Dv -o imapc_features=rfc822.size -o imapc_host=IP -o imapc_port=143 -o
2013 May 29
0
Lista dos aprovados em vestibular Junqueiro
Lista dos aprovados em vestibular Junqueiro: Vale de S?o Domingos: ANA L?CIA MENDES DOS SANTOS, LUANA FELIX BIE, FRANCISCO PAULO DE OLIVEIRA MESQUITA, POLLIANA BRASILIANA DE SIQUEIRA, JO?O CARLOS MOREIRA DE CARVALHO, DANIELE SILVA OLIVEIRA, MARIA JOS? BATISTA LEITE, J?SSICA MAYARA P. PAULINO. SOLANGE FERREIRA ANDRADE, BRENA RODRIGUES MACIEL, LUIS FABRICIO DE FREITAS SOUZA, H?LIO BARROS FERREIRA,
2002 Feb 13
2
formatting date strings
Hi all I am a relatively new R user so please excuse this question if it has been covered some where else, just tell me where to find it. I have a simulation model that out puts dates in a standard dd/mm/yy format R reads this as a factor and I cant find anything that will allow me to convert them to a date. In S+ I have used a chron() function that required you to specify the format of the
2004 Sep 03
2
windowing strategies
Hello to everybody, Does anyone has implemented a function for evaluating models using windowing strategies, such as growing window or sliding window ones? The aim is to evaluate regression models on a time series data. I do not use cross-validation once data sorted in a radom way does not make sense when evaluating time series. Thanks Joao Moreira
2003 Nov 26
4
strptime Usage
Hi, I have a column in a dataframe in the form of: > as.vector(SLDATX[1:20]) [1] "1/6/1986" "1/17/1986" "2/2/1986" "2/4/1986" "2/4/1986" [6] "2/21/1986" "3/6/1986" "3/25/1986" "4/6/1986" "4/10/1986" [11] "4/23/1986" "4/30/1986" "5/8/1986"
2011 Mar 13
4
readMat - how to retrieve the variables
Hello I have a matlab MAT file that contains one single variable: a. The structure of a is as follows: a.river1.flow (flow values) a.river1.date_flow (date) a.river1.precip (precipitation values) a.river1.date_precip a.river2.flow a.river2.date_flow a.river2.precip a.river2.date_precip I have used readMat to load the variable a in R, however I have no idea how readMat translates a. I managed