search for: umsatz_2011

Displaying 6 results from an estimated 6 matches for "umsatz_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 > I searched the web but cou...
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) C...
2016 Apr 27
1
Antwort: RE: Missing Values in Logical Expressions
...aubach at weinwolf.de" <G.Maubach at weinwolf.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)...
2016 Apr 28
4
Interdependencies of variable types, logical expressions and NA
...) + Kunden01[[ Check ]] <- factor(Kunden01[[ Check ]], + levels=c(1, 0), + labels= c("Check 0", "OK") + ) + + } Creating Check_U_0__Kd_1_2011 from Umsatz_2011 and Kunde01_2011 Creating Check_U_0__Kd_1_2012 from Umsatz_2012 and Kunde01_2012 Creating Check_U_0__Kd_1_2013 from Umsatz_2013 and Kunde01_2013 Creating Check_U_0__Kd_1_2014 from Umsatz_2014 and Kunde01_2014 Creating Check_U_0__Kd_1_2015 from Umsatz_2015 and Kunde01_2015 > > table(Kund...
2016 Apr 28
0
Interdependencies of variable types, logical expressions and NA
Hi Your script is not reproducible. Creating Check_U_0__Kd_1_2011 from Umsatz_2011 and Kunde01_2011 Error in ifelse(Kunden01[[Umsatz]] == 0 & Kunden01[[Kunde]] == 1, 1, 0) : object 'Kunden01' not found > This is interesting x <- c(NA, FALSE, TRUE) names(x) <- as.character(x) outer(x, x, "&") ## AND table <NA> FALSE TRUE <NA&g...
2016 Apr 28
0
Antwort: RE: Interdependencies of variable types, logical expressions and NA
...gt; > To: G.Maubach at weinwolf.de; r-help at r-project.org > > Subject: Re: [R] Interdependencies of variable types, logical > expressions and > > NA > > > > Hi > > > > Your script is not reproducible. > > > > Creating Check_U_0__Kd_1_2011 from Umsatz_2011 and Kunde01_2011 > > Error in ifelse(Kunden01[[Umsatz]] == 0 & Kunden01[[Kunde]] == 1, 1, 0) > : > > object 'Kunden01' not found > > > > > > > This is interesting > > x <- c(NA, FALSE, TRUE) > > names(x) <- as.character(x) > &gt...