ASDATA.FRAME {MadanText} | R Documentation |
Convert to Data Frame
Description
This function converts the given object to a data frame.
Usage
ASDATA.FRAME(x)
Arguments
x |
An object to be converted into a data frame. |
Value
Returns a data frame with rows and columns corresponding to the original object's structure. If 'x' is a matrix, each column in the matrix becomes a column in the data frame. If 'x' is a list where all elements are of the same length, each element of the list becomes a column in the data frame. Attributes such as rownames, colnames, and dimnames (if any) are preserved in the conversion.
Examples
data <- ASDATA.FRAME(matrix(1:4, ncol = 2))
[Package MadanText version 0.1.0 Index]