similar to: Adding two or more columns of a data frame for each row when NAs are present.

Displaying 20 results from an estimated 200 matches similar to: "Adding two or more columns of a data frame for each row when NAs are present."

2009 Nov 12
1
Transforming a dataframe into a response/predictor matrix
I currently have a data frame whose rows correspond to each student and whose columns are different variables for the student, as shown below: Lastname Firstname CATALOG_NBR Email StudentID EMPLID Start 1 alastname afirstname 1213 *@uark.edu 10295236 # 12/2/2008 2 anotherlastname anotherfirstname 1213 **@uark.edu ## 10295236 9/3/2008 Xattempts Q1
2007 Feb 20
0
Standardized residual variances in SEM
Hello, I'm using the "sem" package to do a confirmatory factor analysis on data collected with a questionnaire. In the model, there is a unique factor G and 23 items. I would like to calculate the standardized residual variance of the observed variables. "Sem" only gives the residual variance with the "summary" function, or the standardized loadings with the
2008 Nov 07
2
Re gular Expression help
hi there I have a vector with a set of data.I just wanna seperate them based on the first p and q values metioned within the data. [1] chr10p15.3 /// chr3q29 /// chr4q35 /// chr9q34.3 [2] chr1q22-q24 [3] chr1q22-q24 [4] chr1pter-q24 [5] chr1pter-q24
2006 Apr 03
7
global variable - @@var
I tried to keep track of the number of access to a specific controller. I declared ''@@mycount = 0'' in the controller class. The methods in the controller will increment the @@mycount (@@mycount = @@mycount + 1) and print the value to the html page and show in the browser. The value is always 1, no matter how many times I access the controller and its action(s). Is this
2003 Apr 04
3
trellis.graphic in for-loop
Hi list, I am unsuccessfully trying to produce a serious of trellis barcharts from within a for-loop. The barcharts work outside the loop. What am I missing? Example attached. Thanks Herry #XXXXXXXXXXXXXXXXXXXXXX trellis.device(bg="white") trellis.par.get("fontsize")->fontsize fontsize$default<-16 trellis.par.set("fontsize",fontsize)
2012 Apr 13
1
R: Colouring phylogenetic tip labels and/or edges
Hi, I have reconstructed ancestral character states on a phylogeny using MuSSE in the diversitree package and plotted the character state probabilities as pie charts on the nodes. I would, however, like to colour the character states of my extant species, i.e. the tip labels, the same colours as my pie charts, such that all species in state 1 are e.g. blue, species in state 2 red and species in
2003 Jan 29
1
RODBC sqlSave Error
Hi, i get error after using a data.frame with subset for "sqlSave". What can i do ? It seems that lines like this in a data.frame structure are after subset deleted and cause the error ? - attr(*, "variable.labels")= Named chr "CUSID" "Welle" "Arbeitgeberfavorit1" "Aktuelle Bewerbungssituation" ... ..- attr(*, "names")=
2006 Jan 17
8
Next Record
Okay, I know this will probably be a very easy question. But I am discovering that RonR makes just about everything easy. The problem is, it takes me a few hours to figure out that I can do it the easy way. I need to know how to move to the next record in a database. I want to format my out put in a table. For example, I want a 3 by 3 table. So record one goes in the first cell, record
2012 Jun 02
1
Compare data between two groups/countries on 5-point Likert scale questionnare?
Hi everyone, I'm stuck on my dissertation which is due next week. I'm a business major student and my project is a comparative research on corporate social responsibility (CSR) between Chinese and German firms. According to my literature review, it's quite obvious that German firms have much better CSR initiatives and strategies than the Chinese ones and I wanted to test whether it was
2023 Mar 09
1
reemplazar valores en texto según condiciones
Buenas, Se me hace raro que la función no admita un parámetro para eso. Una opción es hacerlo en dos pasos: P1: Reemplaza p10, p20, ... por algo como q10, q20, ... P2: Haz el reemplazo que quieres. Igualmente puedes hacer el reemplazo que haces y en un segundo paso reemplazar p10_integra_datos por p10_cuales_rep, ... Un saludo, Manuel. El jue, 09-03-2023 a las 10:20 -0300, juan manuel dias
2003 Mar 25
4
Fixed Quantizer - Fixed Quality
Here's the problem: > 2) Encoding with rate control as in single pass "Bitrate > control" will not > lead to better quality than fixed quant (with the right value > of the fixed > quant). Ratecontrol doens't know anything about "quality". It > will try to > reach more-or-less CBR. > > But somehow this is not a fair comparison, because
2013 Sep 10
1
Error: BUG: Worker sent reply with id 393, expected 394
hi dovecot: when i login 100 users with imap protocol ,Someusers appeared a BUG in maillog like : Sep 10 09:05:22 auth(default): Error: BUG: Worker sent reply with id 393, expected 394 Sep 10 09:05:22 auth(default): Error: worker-server(q82 at t.com,10.12.80.3): Aborted: Worker is buggy Sep 10 09:05:22 auth(default): Error: BUG: Worker sent reply with id 31, expected 32 Sep 10 09:05:22
2003 Jun 04
3
h323 and g729
Hi, I have an ansterisk and a cisco 827-4v registered to a Gatekeeper. asterisk has two extensions: exten => 223,1,Dial,OH323/BYEXTENSION@827PD exten => 730,1,Dial(IAX/eduardo@10.0.11.103) (IAX are working well) When I try to call each other, gnugk shows a ARJ: ARJ|10.0.11.112:1720|223:dialedDigits|730:dialedDigits|false|resourceUnavailable I think this could be a codec
2004 Nov 03
3
help
-----Original Message----- From: wine-users-admin@winehq.org [mailto:wine-users-admin@winehq.org] On Behalf Of wine-users-request@winehq.org Sent: Wednesday, November 03, 2004 1:59 PM To: wine-users@winehq.org Subject: wine-users digest, Vol 1 #1921 - 10 msgs Send wine-users mailing list submissions to wine-users@winehq.org To subscribe or unsubscribe via the World Wide Web, visit
2004 Feb 27
0
Re: [R] Is there a way to deactivate partial matching in R?
Dear Prof. Ripley, Thank you for reminding me to the possibility to place the dots as first argument. If this is the solution against partial argument matching, we e.g. cannot safely define a plot method which gives a demo plot in case of no object (because we have to obey the class paramter conventions). plot.someobject <- function(x=NULL, ...) # another example would be paramter pairs
2017 Feb 13
2
[PATCH] Optimize silk_LPC_inverse_pred_gain() for ARM NEON
Hi Jean-Marc, Yes I confirm that we have done the same internal review on this patch. For 1), I agree that an explicit unit test would be a good plus to cover the cases that "make check" cannot trigger. If you like, we may submit an unit test patch for code review. Thanks, Linfeng On Thu, Feb 9, 2017 at 4:48 PM Jean-Marc Valin <jmvalin at jmvalin.ca> wrote: > Hi Linfeng,
2008 Dec 03
3
Help with maps
A few questions about maps... (1) How can I find a listing of the internal data sets that map() from the maps library contains? For example, "usa", "county", "state", "nz" all work. Are there any others? (2) Is there an easier, more generalized way to produce this (http://www.ai.rug.nl/~hedderik/R/US2004/ ) type of plot than this
2023 Mar 09
1
reemplazar valores en texto según condiciones
Hola, Algo que me está pasando con esta función es lo siguiente: A "p1" lo tengo que reemplazar por "p1_integra_datos" y a "p10" por "p10_cuales_rep", pero como p10 contiene p1, y así pasa con otras preguntas (p2 y p20, por ejemplo), me los reemplaza en ambas, cuándo lo que busco es otra cosa. reglas$condicion_final <-
2004 Nov 03
1
'help'
'help' -----Original Message----- From: wine-users-admin@winehq.org [mailto:wine-users-admin@winehq.org] On Behalf Of wine-users-request@winehq.org Sent: Wednesday, November 03, 2004 4:02 PM To: wine-users@winehq.org Subject: wine-users digest, Vol 1 #1922 - 7 msgs Send wine-users mailing list submissions to wine-users@winehq.org To subscribe or unsubscribe via the World Wide Web,
2017 Feb 15
2
[PATCH] Optimize silk_LPC_inverse_pred_gain() for ARM NEON
Hi Jean-Marc, (forgot cc opus@) Thanks for creating the unit test code. Attached is the updated optimization patch. On Mon, Feb 13, 2017 at 10:17 AM, Jean-Marc Valin <jmvalin at jmvalin.ca> wrote: > On 13/02/17 01:09 PM, Linfeng Zhang wrote: > > For 1), I agree that an explicit unit test would be a good plus to cover > > the cases that "make check" cannot