similar to: Indexing variables within lapply?

Displaying 20 results from an estimated 60 matches similar to: "Indexing variables within lapply?"

2010 May 28
1
Match 2 vectors
Hi, I have 2 dataframes of unequal length, and I would like to match a factor to them so that both dataframes will have the same number of rows. example: # create the 2 dataframes with unequal length data1 <- data.frame(letters, 1:26)[-c(5,10,19:21),] data2 <- data.frame(letters, 1:26)[-c(6,9,15:18),] data2a <- match(data1[,1], data2[,1]) data2b <- data2[data2a,] When I match
2008 Feb 15
1
problem with heatmap.2
Hi, > temp1[1:6,] AAAA_XXX BBBBBB_XXX CCCCC_XXX DDDDD_XXX EEEEE_XXX SkHep1_XXX 50 0.75285 0.30630 0.56330 0.45755 0.49665 0.74685 63 0.35930 -0.22725 0.04725 0.53955 0.56390 0.51170 69 -1.57515 -1.67610 -1.61695 -1.11685 -0.00085 -1.89155 91 0.84640 0.43595 0.62350 0.46645 0.09430 1.03985 136 0.42050 0.42340 0.61730 0.13950 -0.57600
2012 Mar 29
1
percent_expand for QoS in ControlPath
Hi, Not sure if this anyone else is interested in this but to me it seems to make sense to use different control session multiplexer sockets for bulk and interactive workloads. Index: auth.c =================================================================== RCS file: /cvs/src/usr.bin/ssh/auth.c,v retrieving revision 1.94 diff -u -p -r1.94 auth.c --- auth.c 23 May 2011 03:33:38 -0000 1.94 +++
2012 Jun 20
1
Question on EBImage package
I am having trouble using the "resize" function (in the package EBImage) with matrices containing double values. Let's say I have a matrix 'b' with these values:   > a = c(1.25,1.555,1.245,1.265,1.656,1.235,1.848,1.959,1.548,1.245454,1.989,1.24) > b = matrix(a,4,3) > b       [,1]  [,2]     [,3] [1,] 1.250 1.656 1.548000 [2,] 1.555 1.235 1.245454 [3,] 1.245 1.848
2012 Feb 09
2
Subset a datafram according to time
PREFERED WAY OF DOING IT I have a data set of observations every second for a month long period, I want to extract the observations according to the date & time of another data frame ( the other data frame is in the same format). I want to do this to match these observations to my test observations (in the other data frame) which are done every 6 minutes. So basically im shrinking the
2010 Jan 21
2
loop on list levels and names
Hi everybody! To use some functions, I have to transform my dataset into a list, where each element contains one group, and I have to prepare a list for each variable I have (altogether I have 15 variables, and many entries per factor level) Here is some part of my dataset: SPECSHOR BONE Asfc Smc epLsar cotau tx 454.390369 29.261638 0.001136 cotau tx 117.445711
2001 Feb 08
1
ssh1 keyexchange problem ?
Hi, Has anybody produced diffs for openssh-2.3.0p1 for the rsa keyexchange problem that Core-SDI described ? ( I noticed that fix is already in openbsd tree ). -Jarno -- Jarno Huuskonen - System Administrator | Jarno.Huuskonen at uku.fi University of Kuopio - Computer Center | Work: +358 17 162822 PO BOX 1627, 70211 Kuopio, Finland | Mobile: +358 40 5388169
2005 Mar 31
1
Contingency table: logistic regression
Hi, I am analyzing a data set with greater than 1000 independent cases (collected in an unrestricted manner), where each case has 3 variables associated with it: one, a factor variable with 0/1 levels (called XX), another factor variable with 8 levels (X) and a third response variable with two levels (Y: 0/1). I am trying to see if X1 has an effect on the relationship between X2 and the
2003 Mar 22
2
[RFC] protocol version
I'm in the midst of coding a patch set for consideration that will bump the protocol version and have a couple of observations. The current minimum backwards-compatible protocol is 15 but we have code that checks for protocol versions as old as 12. If someone else doesn't beat me to it i'm considering cleaning out the pre-15 compatibility code. A backwards compatibility patch could
2010 Jul 17
0
Adjustment for multiple-comparison for log-rank test
DeaR experts, I was asked for a log-rank pairwise survival comparison. I've a straightforward way to do this using the SAS system: http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#/documentation/cdl/en/statug/63033/HTML/default/statug_lifetest_sect019.htm What I've found in R is shown below, but it's not a logrank test, I suppose. (The documentation
2012 Aug 14
0
error using boxcox.nls during non linear estimation
Hi all I?ve got a problem using boxcox.nls function in nlrwr packagge. I?m fitting several non linear models to these data: > x [1] 2 1 1 5 4 6 13 11 13 101 101 101 > y [1] 1.281055090 1.563609934 0.001570796 2.291579783 0.841891853 [6] 6.553951324 14.243274230 14.519899320 15.066473610 21.728809880 [11] 18.553054450 23.722637370 I used nls function with self
2003 Nov 24
2
[PATCH] small addition to ia64's archsignal.h
Hi Peter, I need this small patch to get udev to compile against the latest klibc. I'm not sure if this is the right thing to do, but it fixes the compile. thanks mh -- Martin Hicks Wild Open Source Inc. mort@wildopensource.com 613-266-2296 # This is a BitKeeper generated patch for the following project: # Project Name: The kernel C library # This patch format is
2006 Jul 26
0
SURVEY PREDICTED SEs: Problem
Hello R-list, I'm attempting to migrate from Stata to R for my complex survey work. It has been straight-forward so far except for the following problem: I have some code below, but first I'll describe the problem. When I compute predicted logits from a logistic regression, the standard errors of the predicted logits are way off (but the predicted logits are fine). Furthermore, the
2008 Feb 28
0
problem with the ltm package - 3PL model
Hi Xavier, the reason you observe this feature is that in the 'constraint' argument you should specify the values under the additive parameterization, i.e., when in the second column of the matrix supplied in 'constraint' you specify 2, then you need to provide the easiness parameters (not the difficulty parameters) in the third column. Check the Details section of ?tpm() and
2007 Mar 14
1
How to enable download via web browser with vsftpd?
HI , I setup vsftp yesterday as a local user only mode. No anonymous was enabled. I set up this vsftpd on my machine running CentOS 4.4. its ip is 192.168.101.25. so when I login as ftp://192.168.101.25/ via web browser, I am promted the username as password. After inputing username and password, I can login successfully. Then I can download everything as usual. But I can not upload any data ?
2005 Nov 17
1
Predicting and Plotting "hypothetical" values of factors
Last Friday, I noticed that it is difficult to work with regression models in which there are factors. It is easier to do the old fashioned thing of coding up "dummy" variables with 0-1 values. The predict function's newdata argument is not suited to insertion of hypothetical values for the factor, whereas it has no trouble with numeric variables. For example, if one uses a
2015 May 03
2
[LLVMdev] libiomp, not libgomp as default library linked with -fopenmp
A couple more data points. Current llvm 3.7svn with the two outstanding OPENMP patches can build the openmp support in gdl 0.9.5 (which completely passes its test suite) and apbs 1.4.1's limited openmp support. On Sat, May 2, 2015 at 11:11 PM, Jack Howarth < howarth.mailing.lists at gmail.com> wrote: > On a positive note, current llvm 3.7svn with the two outstanding > OPENMP
2011 Sep 23
21
Official puppetlabs position on cron vs puppet as a service?
Over the years many shops have come to start running puppet via cron to address memory leaks in earlier versions of Ruby, but the official position was that puppet was meant to be run as a continually running service. I am wondering if the official position has changed. On one hand many if not all of the early Ruby issues have been fixed, on the other, the addition of mcollective into the mix as
2005 May 17
6
RPC error logging in to PDC on Win-64
I've upgraded one of my client boxes to Windows 64 bit edition but now it cannot login to the Samba PDC, instead it gives a RPC error after entering the password. The Win32 boxes can still login fine. I can get accounts without admin rights to login but those with the rights are given a message stating "The system cannot log you on due to the following error: A remote procedure call
2011 Aug 10
5
anova medidas repetidas con lme
Hola compañeros de la lista. Tengo el siguiente set de datos: Repeticiones <- c(rep("RI", 14), rep("RII", 14), rep("RIII", 14)) Tiempo <- rep(c(0, 2, 4, 6, 8, 10, 12, 24, 36, 48, 60, 72, 96, 120), 3) Concentracion_celular <- c(0.4862, 0.5375, 0.4309, 0.4390, 0.4603, 0.4733, 0.3936, 0.9085, 0.5838, 0.5477, 0.6331, 0.8693, 1.0092, 0.6341, 0.5350,