141
July 25, 2022, 2:11pm
1
I'm trying to recode as follows:
X999_4_ethnicities_reclassification$Continent[X999_4_ethnicities_reclassification$Ethnicity_Class == “Brazilian (no ethnicity)”] = “South America”
But I get this error message and can't for the life of me figure out why
Error: unexpected input in "X999_4_ethnicities_reclassification$Continent[X999_4_ethnicities_reclassification$Ethnicity_Class == “"
Does anyone have ideas as to why?
Thanks in advance!
I believe you are intending to build strings, which in R is done with the standard double quote mark, but your example uses a different stylised quote mark 'left double quote'.
34 042 22 00100010 " " " Double quotes (or speech marks)
147 223 93 10010011 “ “ “ Left double quotation mark
source :
A complete list of all ASCII codes, characters, symbols and signs included in the 7-bit ASCII table and the extended ASCII table according to the Windows-1252 character set, which is a superset of ISO 8859-1 in terms of printable characters.
system
Closed
August 15, 2022, 2:55pm
3
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.