Displaying 20 results from an estimated 2000 matches similar to: "write.csv"
2007 Jul 29
2
array writing and their filenames
Hi,
I want to save a array (say, array[6,7,8]) write a cvs file. How can I do
that??? can I write in one file?
if I could not write in one file, i want to use a loop to save in different
files (in the matrix[6,7,8], should be 8 csv files), such as the filename
structure should be: file ="filename" +str(i) +"." +"csv"
Many thanks.
Dong
[[alternative HTML version
2010 Apr 24
4
assign value between different type: Double vs Integer
Dear list,
just to put it in a simple way:
i read.csv from csv file to create a gdata
then, create array gdata34
however, when making a loop for assigning gdata34[1,m]<-gdata[m,4], this is what happen
gdata[1,4] 's real value is 10354, however, the gdata34[1,4] turns to be 883
then i checked the type: gdata[1,4] is integer, while gdata34[1,4] is double.
Can any one give me some help
2007 Aug 01
1
plot matrix data- lattice?
Dear all,
I have a matrix, dim = (years, regions)
I would like to plot the data in a lattice so that each panel is region's
plot with y-axis based on values, x-axis based on year.
how can I do that?
Many thanks in advance.
Dong
[[alternative HTML version deleted]]
1999 Jul 20
2
tensor() function and sets
Hi Everyone,
To complete the outer() and kronecker() functions in the base, may I
suggest the following tensor() function, which allows the multiplication
of arrays through sets of conformable dimensions. I am happy to write a
help page if required.
The code also needs a setdiff() function which prompts me to ask: what
about simple set functions? I expect many of us have written our own
2013 Apr 13
2
Comparison of Date format
Hi,
?In the example you provided, it looks like the dates in Date2 happens first.? So, I changed it a bit.?
DataA<- read.table(text="
ID,Status,Date1,Date2 ??? ??? ??????
1,A,3-Feb-01,15-May-01 ??? ???
1,B,15-May-01,16-May-01 ??? ???
1,A,16-May-01,3-Sep-01 ??? ??? ??? ??? ???
1,B,3-Sep-01,13-Sep-01 ??? ??? ??? ??? ???
1,C,13-Sep-01,26-Feb-04 ??? ??? ??? ??? ???
2007 Dec 19
3
array addition
Hi
suppose I have two arrays x1,x2 of dimensions a1,b1,c1 and
a2,b2,c2 respectively.
I want x = x1 "+" x2 with dimensions c(max(a1,a2), max(b1,b2),max
(c1,c2))
with
x[a,b,c] = x1[a1,b1,c1] + x2[a2,b2,c2] if a <=min(a1,a2) , b<=min
(b1,b2), c<=min(c1,c2)
and the other bits either x1 or x2 or zero according to whether the
coordinates
are "in range" for
2009 Jun 09
2
is it possible to combine multiple barplots?
i am working with two sets of likert scale type (4 distinct values) data:
dataA <- rep(1:4, c(3,2,2,4))
dataB <- rep(1:4, c(5,4,3,2))
i can now (bar)plot both of these separately and compare the distributions.
plot(table(dataA), type='h')
plot(table(dataB), type='h')
is there a way to plot both of them in one plot, so that the bars for
value "1" (dataA: 3,
2013 Jan 18
2
A smart way to use "$" in data frame
Hello all,
I have a data frame dataa:
newdate newstate newid newbalance newaccounts
1 31DEC2001 AR 1 1170 61
2 31DEC2001 VA 2 4565 54
3 31DEC2001 WA 3 2726 35
4 31DEC2001 AR 3 2700 35
The following gives me the balance of state AR:
2009 Jul 20
1
a complicated merging task
I would like to merge two dataframes, but i have a condition that needs to
used for the merge as well.
the rows (observations) in each dataframe are identified by each person's ID
and by the date of the observation.
Basically I would like it to be merged based on both ID (exact match) and
date (a condition where one dataframe's date must be after the other
dataframe's date).
2008 Dec 11
2
is there a way to recursilvely lapply
for a simple example:
x <- list()
x[["a"]] <- list(a=c(1,2,3),b=c(3,4,5))
x[["b"]] <- list(a=c(6,7,8),b=c(9,10,11))
lapply(x,sum)
this fails w/
Error in FUN(X[[1L]], ...) : invalid 'type' (list) of argument
Just wondering if I have overlooked something obvious.
one can also do:
lapply(x,lapply,sum)
but that assumes that you already know how many levels
2013 Jan 16
1
dendrogram stops!
Dear I am using the 'as.dendrogram' function from the 'stats' library to convert from an hclust object to a dendrogram with a dataset of size
~30000 (an example code is below). I need the dendrogram structure to
use the "dendrapply" and "attributes" functions and to access the child
nodes, I do not need any of the plot properties.
The problem is that it
2008 Sep 17
2
adding rows to table
Greetings everyone,
I'm trying to add a specific table or a specific number of rows (e.g.44) to a table with no success.
This is my basic table
> head(dataA)
year plot spp prop.B DCA1 DCA2 DCA3 DCA4
1 2000 1 a1 0.031079 -0.0776 -0.0009 0.0259 -0.0457
2 2000 1 a2 0.968921 -0.0448 0.1479 -0.1343 0.1670
3 2000 2 a1 0.029218
2015 May 02
5
[LLVMdev] Modifying LoopUnrollingPass
Hi Zhoulai,
I am trying to modify "LoopUnrollPass" in llvm which produces multiple
copies of loop equal to the loop unroll factor.Currently, using multicore
architecture, say 3 for example and the execution goes like:
for 3 cores if there are 9 iterations of loop
core instruction
1 0,3,6
2 1,4,7
3 2,5,8
But I want to to
2013 Jun 13
2
[LLVMdev] A question w.r.t fence instruction vs. noalias pointer
On Thu, Jun 13, 2013 at 10:52 AM, Guo, Xiaoyi <Xiaoyi.Guo at amd.com> wrote:
> I mean something like a target-specific fence machine instruction which
> forces ordering of all loads/stores. I want to clarify the meaning of
> “noalias” in this case. Is the fence machine instruction considered
> “touching” all memory and thus breaks the “noalias” contract?
>
A fence
2013 Jun 13
2
[LLVMdev] A question w.r.t fence instruction vs. noalias pointer
On Wed, Jun 12, 2013 at 7:28 PM, Guo, Xiaoyi <Xiaoyi.Guo at amd.com> wrote:
> So fence only forces ordering of atomic instructions.****
>
> ** **
>
> Let me change my question then.****
>
> ** **
>
> If I have a target-specific intrinsic which forces ordering of ordinary
> load/store instructions. Then should it also force ordering of load/stores
> to
2013 Jun 13
2
[LLVMdev] A question w.r.t fence instruction vs. noalias pointer
On Wed, Jun 12, 2013 at 6:17 PM, Guo, Xiaoyi <Xiaoyi.Guo at amd.com> wrote:
> Hi,
>
> I have the following test case:
>
> define void @foo(<2 x float>* noalias nocapture %out, <2 x float>*
> noalias nocapture %data0) nounwind {
> entry:
> %val1 = load <2 x float>* %data0, align 8
> store <2 x float> %val1, <2 x float>* %out,
2013 Jul 30
4
[LLVMdev] creating SCEV taking too long
On Jul 29, 2013, at 4:08 PM, Guo, Xiaoyi <Xiaoyi.Guo at amd.com> wrote:
> Hi,
>
> We have a benchmark where there are 128 MAD computations in a loop. (See the attached IR.) Creating SCEVs for these expressions takes a long time, making the compile time too long. E.g., running opt with the “indvars” pass only takes 45 seconds.
>
> It seems that the majority of the time is
2013 Jul 29
2
[LLVMdev] creating SCEV taking too long
On Mon, Jul 29, 2013 at 4:08 PM, Guo, Xiaoyi <Xiaoyi.Guo at amd.com> wrote:
> Hi,****
>
> ** **
>
> We have a benchmark where there are 128 MAD computations in a loop. (See
> the attached IR.) Creating SCEVs for these expressions takes a long time,
> making the compile time too long. E.g., running opt with the “indvars” pass
> only takes 45 seconds.****
>
>
2013 Jun 13
1
[LLVMdev] A question w.r.t fence instruction vs. noalias pointer
On Thu, Jun 13, 2013 at 11:39 AM, Guo, Xiaoyi <Xiaoyi.Guo at amd.com> wrote:
> In a multi-threaded environment, in order to ensure the memory ordering
> expressed by the memory fence, certain memory operations should not be
> moved across the fence, right?****
>
> **
>
Yes, but operations on noalias pointers don't fall into that category. For
noalias pointers, while
2017 Feb 22
2
[Job Ad] Compiler Engineer positions at Intel
Hi, All,
Our team within the Software and Services Group at Intel is looking for
compiler engineers to join us. Currently two positions are available, see
attached links. If you are interested, you can apply online or email me at
xiangyang.guo at intel.com.
Thanks.
--Xiangyang (Mark) Guo