Hi,
this is my first post in this forum and I am new to Ra. I am desperately
seeking for help.
There is a data frame given in which I want to replace some values like
following:
Existing data frame:
q_1_SQ009
1 4
2
3 3
4 2
5 5: Stimme voll und ganz zu
6 4
7 4
8 2
9 1: Stimme überhaupt nicht zu
Wanted data frame:
q_1_SQ009
1 4
2 0
3 3
4 2
5 5
6 4
7 4
8 2
9 1
This means that every "", "5: Stimme voll und ganz zu" and "1: Stimme
überhaupt nicht zu" shall be replaced by 0, 5, 1
I beg you all for any help please
Many thanks in advance
Robert
--
View this message in context:
http://r.789695.n4.nabble.com/How-to-replace-strings-in-data-frames-by-condition-tp4712469.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.