search for: vater

Displaying 2 results from an estimated 2 matches for "vater".

Did you mean: later
2013 Mar 29
3
From a vector with characters to binary information
...uot;binary" vector ("keine" and " " become 0 and the rest 1). > dput (scm) c("keine", " ", "keine", "Erstgradverw.", "Mutter", "Erstgradverw.", "Erstgradverw.", "keine", " ", "Vater", "Erstgradverw.", "keine", "keine", "keine", "keine", " ", "Erstgradverw.", "keine", "keine", "Erstgradverw.") I tried: scoref <- sapply (scm, function (x) ifelse (x == "keine"|x...
2012 Mar 13
2
beginner's loop issue
...ut[i,4:6] <- MyFunction(input[i,5],input[i,7], input[i,6]) out[i,7:9] <- MyFunction(input[i,8],input[i,10], input[i,9]) } 'input' is a matrix > dim(input) [1] 46 10 and each raw corresponds to a different subject. The error I get here is /Error in out[i, 1:3] <- get.vaTer(input[i, 2], input[i, 4], input[i, 3], : object 'out' not found/ So I wonder, what's wrong in the assignment to the variable out? Should I define the variable before the loop? Thanks for your help Best Ale -- View this message in context: http://r.789695.n4.nabble.com/beginner-...