Displaying 20 results from an estimated 10000 matches similar to: "Extracting part of date variable"
2005 Apr 05
2
extract date
Dear all,
please, is there any possibility how to extract a date from data
which are like this:
....
"Date: Sat, 21 Feb 04 10:25:43 GMT"
"Date: 13 Feb 2004 13:54:22 -0600"
"Date: Fri, 20 Feb 2004 17:00:48 +0000"
"Date: Fri, 14 Jun 2002 16:22:27 -0400"
2006 Jun 09
2
Date calculation
Dear all R users,
Suppose I have a data frame "data" like this:
5/2/2006 36560
5/3/2006 36538
5/4/2006 36452
5/5/2006 36510
5/8/2006 36485
5/9/2006 36502
5/10/2006 36584
5/11/2006 36571
Now I want to create a for loop like this:
date = "5/10/2006"
for (i in 1: 8)
{
if (data[i,1] > date) break
}
2005 May 05
2
Varying as.Date performance
R-devel,
The performance of as.Date differs by a large degree between one of my
machines with glibc 2.3.2:
> system.time(x <- as.Date(rep("01-01-2005", 100000), format = "%m-%d-%Y"))
[1] 1.17 0.00 1.18 0.00 0.00
and a comparable machine with glibc 2.3.3:
> system.time(x <- as.Date(rep("01-01-2005", 100000), format = "%m-%d-%Y"))
[1] 31.20
2006 Oct 20
3
New App - Rails Pay-Per-Download
http://rgd.legalaffairs.gov.tt
Test User
username: izo
password: izo
May be a bit heavy on the graphics by I am still try to teach the graphic
artist about web 2.0. :-)
regards,
Leon Leslie
--
Never be afraid to try something new. Remember, amateurs built the ark;
professionals built the Titanic!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you
2008 Oct 22
4
A matrix automation problem
[I am really sorry if it is double posted, I doubt me previous post could not
reach forum due to some problem with net]
Suppose I have a matrix :
a = matrix(1:9, 3)
>From this matrix, I construct 9 additional matrices :
i = 1:9
bi = a * i
Now combining all those 9 new matrices, I construct a final metrix as :
c =
b1 b4 b7
b2 b5 b8
b3 b6 b8
I want to automate this procedure for any
2012 May 02
3
factor conversion to date/time
Hi, I've been trying to convert numbers from an online temperature database
into dates and time that R recognizes. I've tried as.Date, as.POSIXlt and strptime the problem is that the database has put a T between the numbers and R will not accept any conversions. currently it sees the date as a factor with the format as 1981-01-02T08:00I would like to keep only the year and month, but my
2023 Apr 03
2
Inconsistent SYSVOL ACLs
03.04.2023 02:53, Anderson Sampaio Mello via samba ?????:
> First of all thank you all for the answers and for trying to help me.
>
> I agree with you michael regarding the parameters passed in the ./configure
> command, the location is not part of the problem.
>
> The file system used is XFS. and the strace command logs are in the
> attached link
>
2007 Jun 28
2
Call transfer feature
Dear ALL
I want to transfer call from one phone 2 another phone so this is asterisk feature or SIP Phone feature or endpoint feature how can i transfer phone call from to another phone
Rgd
Satish patel
---------------------------------
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
-------------- next part --------------
An HTML
2008 Dec 10
2
Confusion with Converting Factors to Dates using as.date
Dear R-Helpers:
I'm having a problem getting dates into the correct format. I have a data frame, which is based on a .csv file that I imported into R via read.table.
R has converted my date variables to factors; when I use the as.Date command, most of the values are converted "correctly" (and by this I guess I mean converted "as I wish them to be") but some have not been.
2007 May 04
2
Analysis for Binary time series
hi,
hi, good morning everyone. I have a time series with binary outputs like : 0001011110100.................etc. Now I want to forecast the future values of that. Can anyone please tell me whether there is any tools exist in literature for dealing with this kind of binary observation? If possible please provide me some good references in net as well.
rgd,
Megh
2007 Jul 25
1
Add prefix digits in dialplan extention
Dear all
I have asterisk 1.2 configuration and it is working fine but thing is that i have alread Avaya setup and i have intergrate my Linuxbox asterik with Avaya system avaya already use 4 digit dialplan (1644 example ) and in asterisk i have configure 2 digit dialplan ( 44 example ) now i want to configure 4 digit dialplan in asterik without any change in avaya or asterisk so
2013 Aug 16
1
as.Date.character speed improvement suggestion
R-Devel,
I store and retrieve a large amount of financial data (millions of rows) in a PostgreSQL database keyed by date (and represented in R by class Date). Unfortunately, I frequently find that a great deal of processing time is spent converting dates from character representations to Date class representations in R, presumably because strptime is not fast for large vectors (>10,000
2012 Jun 21
4
convert 'character' vector containing mixed formats to 'Date'
Dear all
I have a 'character' vector containing mixed formats (thanks Excel!)
and I'd like to translate it into a default "%Y-%m-%d" Date vector.
x <- c("1/3/2005", "13/04/2004", "2/5/2005", "2/5/2005", "7/5/2007",
"22/04/2004", "21/04/2005", "20080430", "13/05/2003",
2007 Jul 18
3
how to use call transfer
Dear all
I have beginer in Voip and i have configured Asterisk server with 100 IP SIP phone ( SNOM ) everything is fine but problem is how to transfer call from one user to other means i call to some one and then someone want to transfer call to another person how it is possible i have also try with feartue.conf but it is now working i have also read document on voip-info website
2010 Jan 12
1
parsing protocol of states
Dear R-users,
actually i try to parse some state protocols for my work. i an easy
stetting the code below works fine, if states are reached only once. in
harder settings it could be possible that one state gets visited more
times. in this case for me its interesting to see how much waiting time
lies between to states on the whole.
by the way i didn't use R as a parsing tool so far, so
2010 Feb 01
3
Convert a column of numbers to a column of strings
Hello,
Please excuse me if this question has been asked before. I'm new to R, and
have been trying to google the answers without any success.
I would like to convert a set of date and time into R date-time class. Right
now, the dates and times are in integer format, so I first need to convert
them into string, and then to R date-time using strptime. However, I have a
problem converting them
2011 Jul 06
1
trouble parsing a date using strptime()
Hi,
I am having a trouble parsing dates using strptime() that I get in the
format of year and week number. The data looks like this "201127" which
means year 2011 and week 27. I would like to graph this using ggplot but
then I get a gap between 201054 and 201101 so I thought I would just easily
convert it.
I tried to use strptime and as.Date and the format string of %Y%W but it
seems
2001 Jun 26
5
breaks in hist()
I was using the hist() function to create a frequency table of some network
traffic data. The range in values is rather large, from 0 till just under
10e12. Calling hist(x, breaks=c(0,1000,1e6,1e9,1e12),plot=F,freq=T) causes
hist() to return :
$breaks
[1] -1.0000e+05 1.0100e+05 1.1000e+06 1.0001e+09 1.0000e+12
Is this recalculation of the breaks by hist() intended?
Maarten van Gelder.
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
2011 Jun 22
2
strange date problem - May 3, 1992 is NA
> is.na(strptime("5/2/1992", format="%m/%d/%Y"))
[1] FALSE
> is.na(strptime("5/3/1992", format="%m/%d/%Y"))
[1] TRUE
Any idea what's going on with this? Running strptime against all dates
from around 1946, only 5/3/1992 was converted as "NA". Even stranger,
it still seems to have a value associated with it (even though is.na
thinks