clear
input str10 String Number
"1" 1
"2" 2
"3" 3
"4" 4
* 导致问题
** 1.条件筛选
drop if String == "1" //字符型
drop if Number == 1 //数值型
字符型数据要加上引号
** 2.运算
gen Add = String + Number
type mismatch
r(109);
gen Number_2 = Number
gen Add = Number + Number_2 //数值运算
gen String_2 = String
gen Add_Str = String + String_2 // 字符拼接