search for: kunde_2011

Displaying 3 results from an estimated 3 matches for "kunde_2011".

2016 Apr 26
3
Missing Values in Logical Expressions
Hi All, I need to evaluate missing values in my data. I am able to filter these values and do simple statistics on it. But I do need new variables based on variables with missing values in my dataset: Check_Kunde_2011 <- ifelse(is.na(Umsatz_2011) == TRUE & Kunde_2011 == 1, 1, 0) Check_Kunde_2011 <- factor(Check_Kunde_2011, levels = c(1,0), labels = c("Check", "OK")) The new variable is not correctly created. It contains no values: table(Check_Kunde_2011) < table of extent 0 &...
2016 Apr 26
0
Missing Values in Logical Expressions
Hm Based on Jim's data your construction gives me correct result. > Umsatz_2011<-c(1,2,3,4,5,NA,7,8,NA,10) > Kunde_2011<-rep(0:1,5) > Check_Kunde_2011 <- ifelse(is.na(Umsatz_2011) == TRUE & Kunde_2011 == 1, 1, 0) > Check_Kunde_2011 <- factor(Check_Kunde_2011, levels = c(1,0), labels = c("Check", "OK")) > table(Check_Kunde_2011) Check_Kunde_2011 Check OK 1 9 So I...
2016 Apr 27
1
Antwort: RE: Missing Values in Logical Expressions
...inwolf.de>, "r-help at r-project.org" <r-help at r-project.org>, Datum: 26.04.2016 11:11 Betreff: RE: [R] Missing Values in Logical Expressions Hm Based on Jim's data your construction gives me correct result. > Umsatz_2011<-c(1,2,3,4,5,NA,7,8,NA,10) > Kunde_2011<-rep(0:1,5) > Check_Kunde_2011 <- ifelse(is.na(Umsatz_2011) == TRUE & Kunde_2011 == 1, 1, 0) > Check_Kunde_2011 <- factor(Check_Kunde_2011, levels = c(1,0), labels = c("Check", "OK")) > table(Check_Kunde_2011) Check_Kunde_2011 Check OK 1 9 So...