Re: [R] transpose and split dataframe

2019-04-30 Thread Jim Lemon
Hi Matthew, Is this what you are trying to do? mmdf<-read.table(text="Regulatorhits AT1G69490AT4G31950,AT5G24110,AT1G26380,AT1G05675 AT2G55980AT2G85403,AT4G89223",header=TRUE, stringsAsFactors=FALSE) # split the second column at the commas hitsplit<-strsplit(mmdf$hits,",") # define a f

Re: [R] transpose and split dataframe

2019-04-30 Thread David L Carlson
I neglected to copy this to the list: I think we need more information. Can you give us the structure of the data with str(YourDataFrame). Alternatively you could copy a small piece into your email message by copying and pasting the results of the following code: dput(head(YourDataFrame)) The