search for: kunden01

Displaying 6 results from an estimated 6 matches for "kunden01".

Did you mean: kunden
2016 Apr 28
4
Interdependencies of variable types, logical expressions and NA
...> for (year in 2011:2015) { + Umsatz <- paste0("Umsatz_", year) + Kunde <- paste0("Kunde01_", year) + Check <- paste0("Check_U_0__Kd_1_", year) + + cat('Creating', Check, 'from', Umsatz, "and", Kunde, '\n') + + Kunden01[[ Check ]] <- ifelse(Kunden01[[ Umsatz ]] == 0 & + Kunden01[[ Kunde ]] == 1, + 1, 0 + ) + Kunden01[[ Check ]] <- factor(Kunden01[[ Check ]], + levels=c(1, 0),...
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> NA FALSE NA FALSE FALSE FALSE FA...
2016 Apr 28
0
Antwort: RE: Interdependencies of variable types, logical expressions and NA
...ect.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) > > outer(x, x, "&") ## AND table > &...
2016 Apr 26
0
Antwort: Fw: Re: Creating variables on the fly (SOLVED)
Hi Don, Hi to all readers, many thanks for all your answers and all your help. I adapted Don's code to my data and Don's code does the trick: str(Kunden01) for (year in 2011:2015) { Reeller_Kunde <- paste0("Reeller_Kunde_", year) Umsatz <- paste0("Umsatz_", year) cat('Creating', Reeller_Kunde,'from', Umsatz,'\n') Kunden01[[ Reeller_Kunde ]] <- ifelse( Kunden01[[ Umsatz ]] >= 0, 1, 2)...
2016 Apr 27
0
R Script Template
The subject of your email is missing. Perhaps you need to read the Posting Guide (again?) about attachments. Embedding your example directly in the body of the email is generally more accessible in archives than attaching it. -- Sent from my phone. Please excuse my brevity. On April 27, 2016 1:14:17 PM GMT+01:00, G.Maubach at gmx.de wrote: >Hi All, > >I am addressing this post to all
2016 Apr 27
2
R Script Template
Hi All, I am addressing this post to all who are new to R. When learing R in the last weeks I took some notes for myself to have code snippets ready for the data analysis process. I put these snippets together as a script template for future use. Almost all of the given command prototypes are tested. The template script contains snippets for best practices and leaves out the commands that