![]() ![]() Here, we will read vectors by their names to make it easy but you can change their names if you want. We can also define the number of rows and columns, if required but if the number of values in the vector are not a multiple of the number of rows or columns then R will throw an error as it is not possible to create a matrix for that vector. EnumerateColumnsIndexed: like EnumerateColumns buth returns index-column tuples.To convert a vector into matrix, just need to use matrix function. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |