similar to: help with apply, please

Displaying 20 results from an estimated 5000 matches similar to: "help with apply, please"

2011 Apr 20
2
get cells by the combination of their column and row names
Hi, I have a (correlation) matrix and I want to select a subset of its cells depending on the combination of their column and row names. This illustrates my problem: mtrx <- matrix(c(1,2,3,4,5,6,7,8,9), nrow=3, ncol=3, dimnames = list(c('c132','c432', 'c233'), c('r132','r233', 'r432')))> mtrx r132 r233 r432c132 1 4 7c432 2
2012 Mar 13
1
Visualising multiple response contingency tables
Dear R Help Community, I have a question and an answer (based on reading this forum and online research), but I though I should share both since probably there's a much better way to go about my solution. My question is specifically about how to best visualise multiple response contingency tables. What I mean by 'multiple response' is that the total number of responses per row of a
2010 Sep 26
1
compare a vector and a row of a matrix
From: xxgreat@hotmail.com To: r-help-bounces@r-project.org Subject: compare a vector and a row of a matrix Date: Sun, 26 Sep 2010 23:23:52 +0800 Hi Everyone: I am trying to compare a vector and rows of a matrix for example > xn <- c(1,2,4,4,5,5,5,6) >yn <- c(1,2,5,7,1,2,3,1) >mtrx <- cbind(xn, yn) when I tried, say, > c (1,4), the result was TRUE, TRUE.
2003 Dec 15
2
help in lme
To anyone who can help, I have two stupid questions, and one fairly intelligent question Stupid question (1): is there an R function to calculate a factorial of a number? That is...is there a function g(.) such that g(3) = 6, g(4) = 24, g(6) = 720, etc? Stupid question (2): how do you extract the estimated covariance matrix of the random effects in an lme object? Intelligent question
2015 Aug 27
1
FW: smb.conf
ok, try it like this.   hosts allow = 127.0.0.1 192.168.1. EXCEPT 192.168.1.251   Greetz,   Louis   Van: Bernadette.McCluskey at gmb.org.uk [mailto:Bernadette.McCluskey at gmb.org.uk] Verzonden: donderdag 27 augustus 2015 14:36 Aan: L.P.H. van Belle Onderwerp: Re: [Samba] smb.conf I added a host ip to hosts deny in smb.conf and saved & restarted services. I then added that ip's
2007 Jan 21
2
multiple bases to decimal (was: comparing two matrices)
Hi again, I was contemplating the solution using base 3: set.seed(3) mat2 <- matrix(sample(0:2, 15, replace=T), 5, 3) Extracting the line numbers is simple: bases <- c(3, 3, 3)^(2:0) # or just 3^(2:0) colSums(apply(mat2, 1, function(x) x*bases)) + 1 [1] 7 23 25 8 1 The problem is sometimes the columns have different number of levels, as in: mat1 <- expand.grid(0:2, 0:2,
2005 Sep 04
1
specification for glmmPQL
Hello All, I have a question regarding how glmmPQL should be specified. Which of these two is correct? summary(fm.3 <- glmmPQL(cbind(response, 100 - response) ~ expt, data = data.1, random = ~ 1 | subject, family = binomial)) summary(fm.4 <- glmmPQL(response ~ expt, data = data.2, random = ~ 1 | subject, family =
2015 Aug 27
1
smb.conf
I added a hosts deny line to above and denied one specific ip address. I then deleted that line but added hosts allow and made this equal to any ip address within previous "denied ip address's subnet. However, the afore-mentioned ip was still denied and I had to allow it individually. Can anyone tell me why. Thanks Bernadette McCluskey Ops/Comms Administrator GMB National
2010 Mar 10
6
[XCP] XCP project suggestions on the wiki
Hi, I''ve collected together a bunch of XCP-related project suggestions and stuck them on the xen wiki: http://wiki.xensource.com/xenwiki/XAPI_project_suggestions The main idea is that new people who want to work on XCP can use this list for inspiration... each idea has a rough guesstimate of size/ knowledge required/ impact and an initial first contact (who either suggested the idea
2020 Nov 26
1
Error CLUSTER : no se puede ubicar un vector de tamaño 1.7 gb
Buenas Estimados: Quer?a saber si me pueden ayudar por favor. Estaba tratando de generar cluster?s con un set de datos que tengo.Es un set de datos de unas 100 mil filas, y 16 columnas (son datos reales) Pero me aparece el siguiente error: "ERROR no se puede ubicar un vector de tama?o 1,7 Gb?. Adem?s, Busque un poco en internet sobre unas librer?as para realizar el algoritmo de matriz de
2013 Feb 01
0
[LLVMdev] Label and jump support for ms-inline-assembly
On Jan 31, 2013, at 1:54 PM, Allen Saunders <allenmsaunders at gmail.com> wrote: > Wondering if someone could tell me what would be involved to add support for jumps (within asm block, between asm blocks, and between C/C++ and asm blocks) for Microsoft inline assembly? I have this work in my queue, but I don't know when I'll be able to get to it. I think the first thing we want
2006 Mar 18
1
A general deployment question (OT)
Does anyone have a guesstimate of how many active Asterisk installations there are? Sorry this is off topic, need it for a customer proposal and they need comfort on stability. A count of the downloads from Digium would be a good start but I couldn't find this anywhere with Google. Feedback from anyone who may know near actual data would be appreciated rather than simply guessing,
2010 Jul 21
1
Dovecot 2.0 progress?
Hi, Been having a look at the roadmap on the wiki for Dovecot 2.0 and I was wondering how that's progressing? Are you able to offer a guesstimate on how far it is from stable Timo? Just asking because we're moving to new servers soon and I'm considering using the opportunity to switch from Dovecot/Maildrop/Maildir to Dovecot/deliver/mdbox if 2.0 is likely to be reasonably safe to use
2014 Jun 02
2
blazer_ser battery.high / battery.low
On Jun 2, 2014, at 6:48 PM, Charles Lepple wrote: > On Jun 2, 2014, at 12:25 PM, Andreas Lausch / TBT wrote: > >> >> Hi, >> >> thanks for the reply. >> >> On 2014-05-29 05:21, Charles Lepple wrote: >>>> Now my questions: >>>> 1. should the blazer_ser's high voltage be the voltage during charging >>>> or right
2006 Jan 30
2
yet another vectorization question
Dear R-helpers, I'm trying to develop a function which specifies all possible expressions that can be formed using a certain number of variables. For example, with three variables A, B and C we can have - presence/absence of A; B and C - presence/absence of combinations of two of them - presence/absence of all three A B C 1 0 2 1 3 0 4 1 5 0 6 1
2004 Aug 06
5
Number of listeners per server box ?
I have a proposal from RackSpace to put icecast on the following hardware at their server farm. Can someone give me a "guesstimate" of how many listeners each box can support? Proposed hardware by RackSpace for each server box: Dual 866 MHz processor 2 GB ECC RAM 100 Mbps connection I need to know how many listeners can connect to each of these boxes. I don't know how to
2005 Dec 15
1
millions of comparisons, speed wanted
Dear all, I have a 10 columns matrix which has 2^10=1024 unique rows, with values 0 and 1. What I would like to do is a little complicated; in a simple statement, for a subset (say 1000 rows) I want to perform pairwise comparisons between all rows, find out which rows differ by only one value, replace that value by "x", get rid of the comparisons that differ by more than one value
2009 Jan 22
4
text vector clustering
Hi, I am a new user of R using R 2.8.1 in windows 2003. I have a csv file with single column which contain the 30,000 students names. There were typo errors while entering this student names. The actual list of names is < 1000. However we dont have that list for keyword search. I am interested in grouping/cluster these names as those which are similar letter to letter. Are there any
2007 Aug 16
6
an easy way to construct this special matirx
Hi, Sorry if this is a repost. I searched but found no results. I am wondering if it is an easy way to construct the following matrix: r 1 0 0 0 r^2 r 1 0 0 r^3 r^2 r 1 0 r^4 r^3 r^2 r 1 where r could be any number. Thanks. Wen [[alternative HTML version deleted]]
2006 Sep 15
8
reslivering, how long will it take?
Being resilvered 444.00 GB 168.21 GB 158.73 GB Just wondering if anyone has any rough guesstimate of how long this will take? It''s 3x1200JB ata drives and one Seagate SATA drive. The SATA drive is the one that was replaced. Any idea how long this will take? As in 5 hours? 2 days? I don''t see any way to get a status update on where it''s at in the reslivering