R: Creating an index vector
I need some help with R coding here. The data set Glass consists of 214 rows of data in which each row corresponds to a glass sample. Each row consists of 10 columns. When viewed as a classification problem, column 10 (Type) specifies the class of each observation/instance. The remaining columns are attributes that might beused to infer column 10. Here is an example of the first row RI Na Mg Al Si K Ca Ba Fe Type 1 1.52101 13.64 4.49 1.10 71.78 0.06 8.75 0.0 0.0 1 First, I casted column 10 so that it is interpreted by R as a factor instead of an integer value. Now I need to create a vector wit
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.