similar to: Column Extraction from matrix

Displaying 20 results from an estimated 2000 matches similar to: "Column Extraction from matrix"

2012 Aug 17
5
specific matrix element tranformation
Hi guys, I am trying to write a function that allows me to perform specific transformations to each element of a 2 by 2 matrix to generate a 3 by 3 matrix. Input into function-2 by 2 matrix Output from function -3 by 3 matrix For example: # a is my original 2 by 2 matrix #b is my new 3 by 3 matrix set.seed(2) a=matrix(rnorm(4),ncol=2) #let's say these are the transformations i wish to
2012 May 25
1
Rolling Sample VAR
hi guys, I am using trivariate VAR model to get 10 step ahead orthogonalized impulse response functions. I want to use rolling sample analysis on the coefficients of the irf but I have no idea how to do that. I looked through the forums but I can't seem to find any solutions. Any suggestions would be helpful. B -- View this message in context:
2009 Jul 01
2
Multi-tenant parking broken in 1.6.1.1?
Hello, all. With the assistance of very helpful folks, our brand new multi-tenant setup seems to be working smoothly from start to finish with just a bump or two. The biggest is parking. Now that we got most kinks worked out, I'm a little more comfortable in trying to resolve this. There seem to be two problems: 1. Parking assigns parking spaces from the default group no matter
2018 Mar 12
0
Equivalent of gtools::mixedsort in R base
??? > y <- sort( c("a1","a2","a10","a12","a100")) > y [1] "a1" "a10" "a100" "a12" "a2" > mixedsort(y) [1] "a1" "a2" "a10" "a12" "a100" **Please read the docs!** They say that mixedsort() and mixedorder() both take a **single
2018 Mar 12
7
Equivalent of gtools::mixedsort in R base
Hi, Searching for functions that would order strings that mix characters and numbers in a "natural" way (ie, "a1 a2 a10" instead of "a1 a10 a2"), I found the mixedsort and mixedorder from the gtools package. Problems: 1- mixedorder does not work in a "do.call(mixedorder, mydataframe)" call like the order function does 2- gtools has not been updated in 2.5
2009 Jun 27
1
Multiple parking lots use default park positions
Hello, all. I'm having a deeply frustrating time getting multiple parking lots to work and am wondering what I am doing wrong. I am using Asterisk 1.6.1.1. I defined two separate parking lots in features.conf as follows: [parkinglot_a100] ; SSI context => a100-parking parkpos => 900-920 findslot => next [parkinglot_a10] ; EBC context => a10-parking parkpos => 800-820
2002 May 14
5
Question
Hello. I want to use "for". I have a matrix called "mat" that has got 100 rows. I want to take the line 1 and make a1<-which(mat[1,]==1) After this I want to take the second row and make a2<-which(mat[2,]==1) and so on until I arrive at row 100. I want to make it automatic for the 100 rows and so I wrote: for(i in 1:nrow(mat)){ ai<-which(mat[i,]==1) }
2018 Mar 12
1
Equivalent of gtools::mixedsort in R base
x <- c( "a1", "a10", "a2" ) y <- c( "b10", "b2", "a12", "ca1" ) DF <- expand.grid( x = x, y = y ) # randomize set.seed( 42 ) DF <- DF[ sample( nrow( DF ) ), ] # missing from gtools mixedrank <- function( x ) { seq.int( length( x ) )[ gtools::mixedorder(x) ] } o <- do.call( order, lapply( DF, mixedrank ) )
2009 Jul 10
3
strange strsplit gsub problem 0 is this a bug or a string length limitation?
I was working with the rmetrics portfolioBacktesting function and dug into the code to try to find why my formula with 113 items, i.e. A1 thru A113, was being truncated and I only get 85 items, not 113. Is it due to a string length limitation in R or is it a bug in the strsplit or gsub functions, or in my string? I'd very much appreciate any suggestions ============Input script:
2004 Sep 15
2
efficient submatrix extraction
Hi, I have a matrix of say 1024x1024 and I want to look at it in chunks. That is I'd like to divide into a series of submatrices of order 2x2. | 1 2 3 4 5 6 7 8 ... | | 1 2 3 4 5 6 7 8 ... | | 1 2 3 4 5 6 7 8 ... | | 1 2 3 4 5 6 7 8 ... | ... So the first submatrix would be | 1 2 | | 1 2 | the second one would be | 3 4 | | 3 4 | and so on. That is I want the matrix to be evenly divided
2008 Oct 13
2
Multiple mailboxes per user
My users currently have mail delivered to mulitple MailDir locations via procmail. ~/mail/inbox/ ~/mail/graph/ ~/mail/spam/ I would like all these mailboxes to be exported via dovecot IMAP and appear as folders. However, I can't anything beyond the INBOX working. My approach is via 'namespaces'. My config file is changed thusly: $ sudo dovecot -n # 1.0.15:
2004 Dec 08
3
Samba printer name != cups printer name
I recently added a printer to cups and the samba name is wrong. Anyone know how I can fix it? Environment: OS: Red Hat Enterprise Linux ES release 3 (Taroon Update 3) Uname: Linux stilton.ulticom.com 2.4.21-20.EL #1 Wed Aug 18 20:58:25 EDT 2004 i686 i686 i386 GNU/Linux Samba: samba-client-3.0.4-6.3E samba-common-3.0.4-6.3E samba-3.0.4-6.3E Cups: cups-libs-1.1.17-13.3.16
2008 Jan 19
1
how to use different variable to store values with different length in a loop
Hi, List I am trying to use variables named A1, A2, ..., A100 to store some values, each variable could store some values with different length, how can I achieve this? Thanks, Jack [[alternative HTML version deleted]]
2006 Mar 15
5
Recent 6.1-PRE: burncd: ioctl(CDRIOCFIXATE): Input/output error
I'm running: localhost(6.1-P)[21] uname -a FreeBSD localhost 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #19: Wed Mar 15 07:15:25 PST 2006 root@g1-18.catwhisker.org.:/common/S2/obj/usr/src/sys/LAPTOP_30W i386 localhost(6.1-P)[22] I figured I'd grab a copy of the recent 6.1-BETA4 (disc1) ISO to try it out & hand it out to folks.... It seems to have worked, but I got a bit of a whine
2012 Aug 15
6
Delete pending after open in M.Office
Hello! I have so strange issue with Office files (and may be not only Office). I can't delete file which I just closed. For example, I create new xlsx file, open it, close it and delete it - no any errors, but after refresh list of files - file back. If I try to access this file via smbclient - message NT_STATUS_DELETE_PENDING. And only if I'm restart smb - file removed from local
2003 Feb 27
4
What's in a name?
Hi, Let's play a little game. Forget all you know, or think you know. Without any context at all, what does the following pattern make you think of? <p> X -> X X -> X | ^ v | X <- X X <- X | ^ v | X X -> X X | ^ | ^ v | v | X -> X
2009 Sep 08
1
Should digium build a 2FXO / 2FXS 4-port daughter board?
Please chime in if you've ever wished for digium to make a 4-port daughter board with a combination of 2FXO AND 2FXS ports on the same card. When using the 800 series cards, one must either choose 4-port permutations of FXS/FXO, OR one must give up 2 valuable ports. In other words, when you add ONE 100-series daughter board, you give up TWO of your physical ports. Is there a technical
2004 Jan 15
3
Extracting multiple elements from a list
For a long time I've wanted a way to conveniently extract multiple elements from a list, which [[ doesn't allow. Can anyone suggest an efficient function to do this? Wouldn't it be a sensible addition to R? For example, alist <- list() alist[[1]] <- list() alist[[1]]$name <- "first" alist[[1]]$vec <- 1:4 alist[[2]] <- list() alist[[2]]$name <-
2007 Sep 17
0
assertion failed after too many links error
While using dirvish, I ran into a runaway rsync process, which was continually spewing errors after encountering a "Too many links" error. This was with 2.6.9. I tried it again with the latest cvs version, and now at least it doesn't endless-loop with errors, but instead gives an assertion error. To reproduce: $ cd /tmp $ mkdir a b $ cd a $ date > a $ x=1 $ while ln a a$x; do
2006 May 29
2
Feature Request: Viewport Switching Plugin
Hi, First of all, great job! :) I really like to organise my work on, former known "workspaces", now "viewports". I use currently use 9 so I have 3 for work, 3 for private applications and 3 for other projects. Using the viewports like this it happens to have 3 browser windows, 6 Document Viewers, 9 Terminals, 1 Evolution, 2 IDEs and >3 Gimp The number of Windows and