Displaying 1 result from an estimated 1 matches for "b20_a".
Did you mean:
b20
2012 Oct 17
2
Setting all rows of a certain level to NA in a factor
Hello everyone.
My task is set certain levels (that is all rows of that level) as missing values in factor B20_A.
Excuse the notation, it happens to be a question number in a survey.
So I thought it would work easily by defining the levels
and their labels using the 'factor' function.
> levels(B20_A)
[1] " " "5.6" "No " "Yes"
#as you can see 'No' i...