Displaying 1 result from an estimated 1 matches for "346664".
Did you mean:
34666
2009 Apr 16
2
Translate the elements of a dataframe
The second beginner question. I want to create a new dataframe, where
each element of the original dataframe is translated to 1 if it was "+",
to 0 if it was "-" to -1 otherwise. I could do with:
Lines <- "a b c d
+ - + +
+ + + -
+ 1 - '+ '
- + + +
+ N - +"
DF <-