Displaying 20 results from an estimated 60 matches for "transpositions".
Did you mean:
transposition
2012 Apr 30
2
Matrix transposition
Hi everyone.
I want to transpose a data frame. Lets say the following DF:
df = data.frame(matrix(ncol=4, nrow = 10))
df[,1] = c(rep(1,5),rep(2,5))
df[,2] = c(rep('a',4),rep('b',3),rep('c',3))
df[,3] = c(letters[5:14])
df[,4] = runif(10)
I would like to form a data frame with each line corresponding to colon X1
and create a variable with columns X2 and X3.
This would
2008 Apr 16
1
transposition problem
Hi use Rs,
I have a csv file:
"1989-90","1990-91"
Barley,23,34
Oats,15,16
Which I want to turn into:
year, Barley, Oats
1 "1989-90", 23, 15
2 "1990-91",34,16
Transpose doesn't quite do it, is there a standard way?
Cheers,
Geoff Russell
2007 Apr 07
3
string edit distance
...OR"
...
and I am interested in creating a matrix that contains the string
edit distances between each pair of words. I am this close -> ' '
<- to writing the algorithm myself (which will allow for different
variations on the string edit rules, indels, plus or minus
transpositions, and possibly some variations on that), but I figured
I'd see if anyone on the list has any experience with this and might
already have some shoulders for me to stand on.
Thanks,
Thomas
Thomas Hills Ph.D.
Department of Psychological and Brain Sciences
Indiana University
Bloomington, IN...
2008 Apr 15
2
Transposing Data Frame does not return numeric entries
x <- read.table("LittleGarvin.csv", sep=",", header=TRUE)
y <- t(x)
str(y)
chr [1:193, 1:288] "oligocha" "0" " 0" " 0" " 0" "0" ...
- attr(*, "dimnames")=List of 2
..$ : chr [1:193] "X" "upwd1201" "upwd0502" "upwd0702" ...
..$ : NULL
x is a data frame with
1999 Oct 13
1
dataframe transposition
Dear R-helpers,
I wonder if I could impose upon you for forther assistance, this
time with dataframes: hopefully this will be of general interest,
as I personally have found them hard to get to grips with.
I was trying to transpose rows and cols and move col1 to the names.
Then all sorts of things go wrong. Although the end result looks
the same, page() shows the structure to be quite
2011 Feb 07
1
Unusual slowing of R matrix multiplication version 2.12.1 (2010-10-15) vs 2.12.0
R Version 2.12.1 (2010-10-15) vs 2.12.0 has slowed down 8 fold for dual core and 17 fold for dual-core-dual-processor Macs. I have checked this result on 3 different macs using the following R-script:
Using Version 2.12.0 on a dual core dual processor Mac:
> source("http://www.bio.umass.edu/biology/kunkel/pub/R/CuriousResult.R")
matrix multiplication 43.543 1.308 14.788
2006 Apr 04
1
imaging and contouring
Dear R'Helpers and Colleagues,
I have looked in the documentation, asked to some colleagues in the
lab, but was unable to solve the following difficulty.
I am running R on a iMac G5 with OS 10.4.
The file below (73 rows x 144 col) shows the values of a climatic
index on the globe with a grid of 2,5 ? x 2,5 ? (NA = no value):
?
With image() and map() and running the following
2015 Jan 29
0
[LLVMdev] PBQP crash
...one bug showed up ☺
I continued to look into this with your viewpoint that a node that is conservatively allocatable should never be spilled. The first thing I did was therefore to add some extra code with an assert for this.
I believe I then found three bugs and fixed the two:
Bug 1: Incorrect transpositions in handleAddEdge() / hanldeRemoveEdge(). For the heuristic of DeniedOpts, if N runs along the columns (Transpose == true), the interesting dimension is along the rows, and vice versa. In other words, the question is what the neighbour could maximally deny N, and the answer is found in WorstRow, not...
2004 Aug 31
2
Sparse Matrices in R
...the value in location A[i,j] for some imaginary matrix A.
I need to build this matrix A, but given the sizes of i and j, I believe that using a sparse format would be most adequate.
Hopefully this will allow me to perform some basic matrix manipulation such as multiplication, addition, rowsums, transpositions, subsetting etc etc.
Is there any way to achieve this goal in R?
Thanks,
Danny
[[alternative HTML version deleted]]
2003 Jun 12
9
Programcode and data in the same textfile
I have the following problem. It is not of earthshaking importance,
but still I have spent a considerable amount of time thinking about
it.
PROBLEM: Is there any way I can have a single textfile that contains
both
a) data
b) programcode
The program should act on the data, if the textfile is source()'ed
into R.
BOUNDARY CONDITION: I want the data written in the textfile in exactly
2018 Sep 14
1
Possible bug with chromatic adaptation in grDevices::convertColor
...d that that feature appears currently inaccessible via `convertColor`, it may be worth using this opportunity to change the adaptation method to "Bradford".
A suggested patch follows.? It is intended to minimize the required changes, although doing so requires a double transposition.? The transpositions could be easily avoided, but it would require reformulating the calculations in`chromaticAdaption`.
Best,
Brodie.
Index: src/library/grDevices/R/convertColor.R
===================================================================
--- src/library/grDevices/R/convertColor.R?? ?(revision 75298)
+++ src...
2015 Jan 27
5
[LLVMdev] PBQP crash
> A node should never be put into the conservatively allocatable list if there is a chance of it spilling.
I can understand why the logic of NodeMetadata::isConservativelyAllocatable is necessary for the node to be allocatable, but I have not been able to convince myself this is sufficient, especially when the node degree > available registers.
Cheers,
Arnaud
From:
2015 Jan 30
0
[LLVMdev] PBQP crash
...his with your viewpoint that a node that is
> conservatively allocatable should never be spilled. The first thing I did
> was therefore to add some extra code with an assert for this.
>
>
>
> I believe I then found three bugs and fixed the two:
>
>
>
> Bug 1: Incorrect transpositions in handleAddEdge() / hanldeRemoveEdge().
> For the heuristic of DeniedOpts, if N runs along the columns (Transpose ==
> true), the interesting dimension is along the rows, and vice versa. In
> other words, the question is what the neighbour could maximally deny N, and
> the answer is fo...
2001 May 30
3
Transformation of dissimilarity or distance matrix
Dear List,
is there an elegant (or even not elegant) way how to transform
dissimilarity or distance matrix A
(or, in general, arbitrary symmetrical matrix) by transposition of rows and
columns into a form
closest to "block diagonal" matrix B?
The matrix A is adjusted the following way
A[A<epsilon] <-0 #(epsilon is given "small" number)
B: (in its ideal form)
2010 Jul 30
4
transpose of complex matrices in R
Hello everybody
When one is working with complex matrices, "transpose" very nearly
always means
*Hermitian* transpose, that is, A[i,j] <- Conj(A[j,i]).
One often writes A^* for the Hermitian transpose.
I have only once seen a "real-life" case
where transposition does not occur simultaneously with complex conjugation.
And I'm not 100% sure that that wasn't a
2006 Mar 10
1
what's wrong with my "cov"?
Hi all,
Why cov(y, y) only gives one value, and cov(t(y), t(y)) gives 3x3 NA matrix?
Here my y is listed below and it is a 3x1 matrix.
I am expecting that if I have a random vector y=[y1 y2 y3]', here " ' "
denotes a transposition so that
y is a column vector, where y1, y2, y3 are independent random variables...
then cov(y, y) should be
E[ y * y' ] - E[y] * E[y] ',
2013 Apr 26
1
prcomp( and cmdscale( not equivalent?
Hello,
I have a dilemma that I'm hoping the R gurus will be able to help resolve.
For background:
My data is in the form of a (dis)similarity matrix created from taking the
inverse of normalized reaction times. That is, each cell of the matrix
represents how long it took to distinguish two stimuli from one another-- a
square matrix of 45X45 where the diagonal values are all zero (since this
2013 Dec 11
2
[LLVMdev] AVX code gen
Hello -
I found this post on the llvm blog: http://blog.llvm.org/2012/12/new-loop-vectorizer.html which makes me think that clang / llvm are capable of generating AVX with packed instructions as well as utilizing the full width of the YMM registers… I have an environment where icc generates these instructions (vmulps %ymm1, %ymm3, %ymm2 for example) but I can not get clang/llvm to generate such
2010 Mar 17
3
Converting "factors" to "numeric" in a dataframe
I am currently trying to write a program that minimises the amount of work
required for “auditable” qPCR data. At the moment I am using an Excel (.csv)
spreadsheet as source data that has been transposed to the column format
required for R to read. Unfortunately, this means I have* *to manually
confirm the whole data set prior to doing any analysis, which is taking a
considerable amount of time!
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