I have a data set in R which consists of pathway names and genes included in those pathways. Pathways have different numbers of genes assigned to them. I wanted to write this data to file.
But when I used the code:
> write.table(path.to.genes,"Adj_Abs_pathway list",row.names=FALSE)
I received the error message below:
Error in data.frame(REACT_1002 = c(5625L, 8659L), REACT_1006 = c(995L, :
arguments imply differing number of rows: 2, 4, 18, 220, 8, 119, 7, 10, 26, 44, 9, 12, 15, 40, 22, 83, 32, 14, 3, 6, 1, 16, 19, 27, 11, 113, 60, 5, 17, 24, 25, 23, 0, 21, 71, 20, 49, 42, 66, 34, 89, 90, 138, 35, 13, 50, 47, 39, 116, 65, 48, 31, 93, 84, 94, 30, 194, 132, 46, 149, 79, 43, 57, 107, 154, 199, 69, 61, 189, 177, 185, 179, 111, 326, 78, 59, 99, 127, 328, 295, 224, 45, 41, 137, 63, 29, 54, 77, 38, 354, 36, 112, 200, 108, 143, 188, 51, 33, 55, 92, 262, 91, 167, 68, 208, 58, 103, 80, 379, 276, 118, 171, 297, 28, 74, 109, 62, 81, 270, 53, 64, 238, 86, 176, 52, 121, 852, 396, 785, 95, 205, 136, 110, 142, 336, 175, 184, 198, 114, 133, 100, 73, 67, 104, 321, 75, 512, 70, 245
Do I need to export this data as a data frame (allowing vectors of different lists to be exported)?
Sorry I am currently learning R and have a basic knowledge, could someone suggest the code I need to perform such a task (i this is what need to do).
Thanks for you time,
Helen
ProgrammingR offers two ways for you to stay up to date. To be notified when new articles and book reviews are posted, subscribe to the general ProgrammingR RSS feed by clicking here. To be notified when new R-based job listings are posted, click here.



