After using the following command to import CSV file, I upload the data on stata. The problem is the first row shows up as v1, v2, v3 and so on - as you can see it in my posted data example. How can I have the variable names ( which is in my second row ) in my first row ? I need to get rid of the row with v1, v2 - completely removed from the data.
After importing the cSV file, I also see these message multiple times
(encoding automatically selected: ISO-8859-1)
Note: Unmatched quote while processing row 70754; this can be due to a formatting problem in the
file or because a quoted data element spans multiple lines. You should carefully inspect your
data after importing. Consider using option bindquote(strict) if quoted data spans multiple
lines or option bindquote(nobind) if quotes are not used for binding data.
dataex v1 v2
----------------------- copy starting from the next line -----------------------
Code:
import delimited using ig_nd.csv, clear
(encoding automatically selected: ISO-8859-1)
Note: Unmatched quote while processing row 70754; this can be due to a formatting problem in the
file or because a quoted data element spans multiple lines. You should carefully inspect your
data after importing. Consider using option bindquote(strict) if quoted data spans multiple
lines or option bindquote(nobind) if quotes are not used for binding data.
dataex v1 v2
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. For more info, type help dataex clear input strL(v1 v2) "ig_id" "sequence" "20210012690.0" "1.0" "20200326458.0" "1.0" "20200075033.0" "1.0" "20200075034.0" "1.0" "20200075035.0" "1.0" "20200075035.0" "2.0" end
Comment