I am reading into Java dput output for a matrix, more specifically for a file backed big-matrix. I basically need to lift dimnames for a matrix from dput output. It's no big deal, but the code is very 'hackish' due to the need to get rid of quotes, endlines, parenthesis, etc. I was wondering if i could manipulate to an extent dput output with some options that define it, for example, get rid of quoting each element in matirx dimnames somehow. Another great thing wiould be to make dput dump rownames and colnames on two separate lines, but i don't think it's possible. To give a specific example, instead of dput output like
**new("big.matrix.descriptor" , description = structure(list(sharedType = "FileBacked", filename = "res", totalRows = 1528, totalCols = 53040, rowOffset = c(0, 1528), colOffset = c(0, 53040), nrow = 1528, ncol = 53040, rowNames = c("A", "AA", "RNT.A", "ADVA", "AAPL", "AAS", "ABFS", "ABM", "ABT", "ACI", ....... I'd prefer ideally to have it in the form where rownames and colnames don't have quotes and newlines and if possible are on separate lines new("big.matrix.descriptor" , description = structure(list(sharedType = "FileBacked", filename = "res", totalRows = 1528, totalCols = 53040, rowOffset = c(0, 1528), colOffset = c(0, 53040), nrow = 1528, ncol = 53040, rowNames = c(A, AA, RNT.A, ADVA, AAPL, AAS, ABFS, ABM, ABT, ... ) colNames = c(...) [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel