I’m trying to read data from csv file, but instead of e.g. 001000 I get 1000 in my data.
I’ve tried to set as.is=!stringsAsFactors, but got the following error message:
error: object stringsAsFactors not found.
Anybody can help?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve found workaround: add
colClassesdescriptionHow to convert character to vector:
It’s easier to use separators in data, because finally you’ll get character and to convert it to e.g. vector you should do smth like:
or