search for: transposit

Displaying 20 results from an estimated 59 matches for "transposit".

Did you mean: transport
2012 Apr 30
2
Matrix transposition
...#39;m not sure how to manipulate my DF to rearrange it so I keep var X1 but I create 10 new variables with coloumns X2 and X3 with values from X4. I hope I have been clear enough! Thank in advance for your insights, Phil -- View this message in context: http://r.789695.n4.nabble.com/Matrix-transposition-tp4599219.html Sent from the R help mailing list archive at Nabble.com.
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,...
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
...esult 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 tcrossprod 41.147 1.286 11.9 transposition and reuse 40.407 3.525 43.606 elementwise after reshape 21.474 1.828 23.124 columnwise sapply 34.695 32.35 66.592 for loop over columns 37.237 29.471 67.2 On the same day upgrading to 2.12.1 on the same dual core dual processor Mac: > source("http://www...
2006 Apr 04
1
imaging and contouring
...ge() and map() and running the following function: dessin_i<-function(nomfichier="ERA40NA.dat",lat=73,long=144) { #d?finition de la fonction library(maps) a <- read.table(nomfichier) #lecture du fichier z <- array(0,dim=c(long,lat)) #cr?ation d'un tableau de 0 z <- t(a) #transposition de la matrice a en z z1<-rbind(z[65:long,],z[1:64,]) #centrage de la carte sur greenwich nlat<-seq(-90,90,2.5) #d?finition des latitudes / ordonn?es de 2,5? en 2,5? nlong <- seq(-180,177.5,2.5) #d?finition des longitudes /abcisses de 2,5? en 2,5? image(nlong,nlat,z1,col=rainbow (10...
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,...
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
...ng data.frame() to glue them together. Like in data.frame(Sex = c('Male', 'Male', 'Female', 'Female'), Respons = c(1, 2, 3, 4)) I do not like this solution, because it represents the data in a "transposed" way in the textfile, and this transposition makes the structure of the dataframe less transparent - at least to me. It becomes even less comprehensible if the Sex-factor above is written with the help of rep() or gl() or the like. I know I can make read.table() read from stdin, so I could type the dataframe at the prompt. That is agains...
2018 Sep 14
1
Possible bug with chromatic adaptation in grDevices::convertColor
...is not exported, and 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?? ?...
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 i...
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) b_{11}...b_{1i} 0...0 ... b_{i1}...b_{ii} 0...0 b_{i+1, i+1} etc, wit...
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 mistake. Matlab and Octave sort of recognize this, as "A'" means the Hermitian transpose of "A". In R, this issue makes t(), crossprod(), and tcrossprod() pretty m...
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] ', and it should generate an 3x3 identity matrix. In fact, as you can see, my y below is generated by y=[f(1)+e1, f(2)+e2, f(3)+e3]', =[ 1^2+e...
2013 Apr 26
1
prcomp( and cmdscale( not equivalent?
...X45 where the diagonal values are all zero (since this represents two identical stimuli). I have been using cmdscale with this matrix as the input-- So: X = cmdscale(mydata,k=44,add=FALSE,eig=TRUE)$points returns a 45x34 matrix because only 34 of the eigenvalues > 0 I then run prcomp on the (transposition of) this matrix: prcomp(t(X),scale.=TRUE) The goal is to take the original matrix of inverse reaction times and transform that data such that we have PCs that show how stimuli are grouping together-- high absolute value loadings/coordinates on a given dimension should reflect how similar the st...
2013 Dec 11
2
[LLVMdev] AVX code gen
...may not be invoking the tools correctly but given that –fvectorize and –fslp-vectorize are on by default at 3.4 I would have thought that if the code is AVX-able by icc that clang / llvm would be able to do the same… The code is basic matrix multiplication written a number of ways (with and without transposition and such) as a performance measurement exercise. The environments I’ve tried are: Intel Ivy Bridge-EX (pre-release hardware) running Red Hat Linux 6.5 Generic desktop with Haswell processor running Fedora 18 If you have a moment to point me to the appropriate docs I’m happy to go learn on my...
2010 Mar 17
3
Converting "factors" to "numeric" in a dataframe
...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! My idea now is to read the raw data in directly and get R to do the transformation prior to analysis. The problem I now have is that, upon transposition, the data are converted to “character” in a matrix, rather than “factor” and “numeric” in a dataframe. I have succeeded in changing the matrix to a dataframe (via as.data.frame(object)), but this then converts all the data to “factor” which I can’t use for my analysis since, other than the colum...
2013 Oct 15
2
Data handling
...ot;) teste$TimeCC = as.POSIXct (teste$TimeCC) I lost the fraction of seconds. If I use: teste$TimeCC = as.POSIXct(strptime (teste$TimeCC, format = "%F %H:%M:%OS4")) I lost all information and get just <NA>. Thanks in advanced, -- Raoni Rosa Rodrigues Research Associate of Fish Transposition Center CTPeixes Universidade Federal de Minas Gerais - UFMG Brasil rodrigues.raoni@gmail.com dput of input data structure(list(Date = c("06/19/13", "06/19/13", "06/19/13", "06/19/13", "06/19/13", "06/19/13"), Time = c("22:15:39&q...