Displaying 1 result from an estimated 1 matches for "scoref".
Did you mean:
scores
2013 Mar 29
3
From a vector with characters to binary information
...quot;Erstgradverw.", "keine", " ", "Vater", "Erstgradverw.", "keine",
"keine", "keine", "keine", " ", "Erstgradverw.", "keine", "keine",
"Erstgradverw.")
I tried:
scoref <- sapply (scm, function (x) ifelse (x == "keine"|x==" ", 0, 1))
or
scoref <- sapply (scm, function (x) ifelse (x == "keine"|x==" ", x <- 0, x
<- 1))
And this is the output:
> scoref
keine keine Erstgradverw....