Displaying 20 results from an estimated 7000 matches similar to: "How to insert filename as column in a file"
2012 May 25
2
Query about creating time sequences
Hi All,
I have a query about time based sequences. I know such questions have been
asked a lot on forums, but I couldnt find the exact thing that I was
looking for.
I want to create a time-based sequence which will mimic the trading window
AND would span multiple days. Something like below:
"2011-01-03 09:15:00 IST"
"2011-01-03 09:15:01 IST"
....
....
....
"2011-01-03
2012 May 05
1
Query about memory used in list and dataframe
Hi,
I had a query regarding which object, a list or a dataframe, consumes more
R memory. Let me clarify this:
For example, I have a df of 6 rows and 12 columns, say 'test'. I do
object.size() and find it uses 3.3 KB of memory.
I run a loop and make a list, say 'testlist', of 6 elements, each element
being the above mentioned df 'test'. The size of this list is 19.9 KB,
2012 Sep 09
1
Sum of column from another df based of row values of df1
Dear All,
I need to sum a column from another dataframe based on the row values
of one dataframe. I am stuck in a loop trying to accomplish it and at
current speed it will take more than 80 hours to complete. Needless to
say I am looking for a more elegant/quicker solution. Really need some
help here. Here is the issue:
I have a dataframe CALL (the dput of head is given below) which has
close to
2012 May 09
2
Problem with SQLDF - Error in sqliteExecStatement(con, statement, bind.data) : RS-DBI driver: (error in statement: no such table:
Hi All,
I am having trouble executing SQL statements on a few dataframes, but the
funny thing is that I am able to execute the statement on some other
dataframes.
To test, I have 2 very small dataframes (6 rows and some columns). One is
'lessliq', the dput is given below.
> dput(head(lessliq))
structure(list(V1 = c(50464677L, 50464846L, 50432581L, 50426614L,
50504329L, 50504735L), V2
2012 May 12
1
Query regarding date as argument in functions - and about sqldf
Hi,
I have a query about sqldf, and dates in general. I couldnt find much on
the net or on the forums, hence I am here. Here is the issue:
I want to write a function that accepts 3 arguments: date1, date2 and a
dataframe, say 'df'. Within the function, I want to populate a temp
dataframe which essentially contains the output of the query "select * from
df where DATE between date1
2013 Dec 04
0
[LLVMdev] Quick doubt about IR
Create a new alloca instruction, insert it into the IR right before (or after) the old one, RAUW the value, then delete the old instruction. You should be able to find a variety of examples of this sort of thing in most of the IR level optimization passes. I’d look at InstCombine in particular.
-Jim
On Dec 4, 2013, at 1:40 PM, Shivam Bhagi <shivam.bhagi at outlook.com> wrote:
> Hi,
2011 Dec 02
2
Problem subsetting: undefined columns
Dear R-users,
-I am new to R, and I am struggling with the following problem.
-I am repeating the following operations hundreds of times, within a loop:
I want to subset a data frame by columns. I am interested in the columns
names that are given by the rows of another data frame that was built in
parallel. The solution I have so far works well as long as the elements of
the second data frame
2013 Dec 04
3
[LLVMdev] Quick doubt about IR
Hi,
While looking over the IR generated by my source code, I came across the following:
%arr = alloca [30 x i8], align 1
In the source code this particular line of code is represented by:
int arr[30];
I was wondering how I could change the capacity of arr from 30 to any other integral value via a function-pass. I know that 'alloca' can be used for reserving space on stack; further,
2006 Oct 18
1
How to get the agent id in the recording filename
Hi,
I'm sure some else has been facing this problem. I want to record all the
call coming in my queue. I want this format:
YYYYMMDD-HHMMSS-AgentID-CallerId - UniqueID. I'm using the monitor feature
inside the queue.conf. I can't use the agents.conf monitor features because
I'm using dynamic agent (addqueuemember)
The problem I'm facing is that I can
2019 Jul 08
2
Shell auto-completion for ld.lld linker
Hi lld developers,
As a GSoC student I wrote static ld.lld auto-completion scripts for zsh and
bash shell because it doesn't have much options and flags for dynamic
completion. Whether I send pr to zsh-completion/bash-completion package or
open phabricator review for them? Also gnu ld has already autocompletion
for bash shell but l am not merging ld and lld completion scripts to one
file
2009 Jul 21
4
how to transform m/d/yyyy to yyyymmdd?
Hello,
I have a set of data that has a Date column looks like this:
12/9/2007
12/16/2007
1/1/2008
1/3/2008
1/12/2008
etc.
I'd like the date to look something like the follow (so that I could sort by
date easily).
20071209
20071216
20080101
20080103
20080112
How to do it? Thank you very much
Julia
--
View this message in context:
2004 May 27
3
Date parsing question
How do I parse a date "yyyymmdd"? I tried asking chron(s, "ymd") but
that didn't work. Would the date parsing routines of the Date class of
1.9 grok this?
--
Ajay Shah Consultant
ajayshah at mayin.org Department of Economic Affairs
http://www.mayin.org/ajayshah Ministry of Finance, New Delhi
2007 Mar 28
18
Version numbering
After v1.0 is released, I can finally get back to sane version numbers.
But any comments on which one is better:
a) Postfix-style: "1.1.UNSTABLE.YYYYMMDD" -> 1.1.0 (stable)
b) Odd-even numbering: 1.1.x (unstable) -> 1.2.0 (stable)
With a) style the releases could be done by simply copying a nightly
snapshot to releases/ directory and announcing the changes since the
last
2007 Feb 15
3
Working with temporal data
Hi,
I have several files with data in this format:
20070102
20070102
20070106
20070201
...
The data is sorted and each line represents a date (YYYYMMDD). I would
like to analyze this data using R. For instance, I would like to have
a histogram by year, month or day.
I've already made a simple Perl script that aggregates this data but I
believe that R can be much more powerful and easy on
2009 Dec 23
2
loading data into ZOO
Hello,
I have a simple question. I am trying to load data into a zoo object. I have
the data in CSV format as follows
SYMBOL DATE TIME PRICE
XX YYYYMMDD HH:MM:SS n.nn
and there are multiple symbols in this one data frame.
My question is, do I need to merge DATE and TIME before loading them or can
I specify multiple index.column or index.name fields?
2010 Aug 03
2
sorting by date
I am unsure how to sort a column by date if it is currently in the form:
YYYYMMDD
For example the months:
20071031
20071130
20071231
Etc.
Regards,
Leigh
[[alternative HTML version deleted]]
2008 Apr 14
3
Merging daily and weekly data
Dear R-help group,
I have a dataset with daily closing prices from a stock exchange (consecutive 5 trading days) from a firm trading a specific commodity. The date variable looks like:
quote_date
20080411
With the format; yyyymmdd.
Moreover, I have another data set with a (average) weekly price of the underlying commodity. The date variables in this dataset are only year and a week number.
I
2004 Feb 23
6
Need help on parsing dates
I know this:
> library(date)
> x="1979-04-04"
> try=as.date(x, "ymd")
> print(try)
[1] 4Apr79
and that `x' here has to be a string, e.g.:
> x=1979-04-04
> print(x)
[1] 1971
I'm stuck in reading from a file. I say:
> A <- read.table(file="try")
> print(A)
V1 V2
1 1979-04-04
2007 Sep 11
2
How to search with range when I am using AAF
acts_as_ferret :fields => {
:name => {:},
:desc => {},
:start_date => {}
}
def start_date
self.start_datetime.strftime("%Y%m%d")
end
Now that I am strong start_date in YYYYMMDD format, I want to search for
all event in between 20070506 and 20070809
What will my query look like when I am using aaf. This one doesn''t work
2005 Mar 02
1
postgresql date
If I select my date column from the pgadmin I see that in the ddmmyyyy
form, I''ve specified so in the postgresql config. When I query from
rails I get the date in yyyymmdd someone knows why?
Thanks
Enrico
--
"The only thing necessary for the triumph of evil
is for good men to do nothing"
Edmund Burke