Hi, sorry, I didn't realize it was a hassle to cut and paste the data.
I've put a small subset of it in the 'files' section (mktestex.txt)
and here is the output that Winston suggested. I've done both because
the output looks really strange to me...maybe that's the source of my
problems.
Many thanks.
> dput(mk)
structure(list(file = structure(c(1L, 2L, 23L, 21L, 20L, 25L,
17L, 22L, 19L, 18L, 24L, 26L, 15L, 10L, 13L, 12L, 16L, 9L, 14L,
11L, 8L, 3L, 7L, 6L, 4L, 5L, 28L, 27L), .Label = c("AGAP005564",
"AGAP005917", "AGAP007833", "AGAP007852", "AGAP008345", "AGAP008535",
"AGAP009029", "AGAP009774", "AGAP011177", "AGAP011219", "AGAP011249",
"AGAP011764", "AGAP012218", "AGAP012230", "AGAP012296", "AGAP012311",
"AGAP803378", "AGAP804331", "AGAP804582", "AGAP804604", "AGAP805412",
"AGAP805600", "AGAP806034", "AGAP806732", "AGAP806746", "AGAP806795",
"AGAP807296", "AGAP807715"), class = "factor"), FETpvalueM_MSmin2 = c
(0.001053788,
0.011319261, 0.030680402, 0.032756982, 0.036707636, 0.036877991,
0.038069482, 0.040740741, 0.04233871, 0.043159066, 0.045796309,
0.047619048, 0.005437915, 0.00619195, 0.018181818, 0.020979021,
0.028490028, 0.03642232, 0.037384979, 0.046472143, 0.003393665,
0.038494226, 0.045377198, 0.046749042, 0.05, 0.052631579,
0.047619048,
0.054945055), arm = structure(c(1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L,
4L, 4L, 5L, 5L), .Label = c("2L", "2R", "3L", "3R", "X"), class =
"factor"),
start = c(17101445L, 23651967L, 51229099L, 41180953L, 29819156L,
7610594L, 12744400L, 43763624L, 29692288L, 26150873L, 7252700L,
8997836L, 39836452L, 19474993L, 38976455L, 32993728L, 40079675L,
18246092L, 39159193L, 19999848L, 42791948L, 1524610L, 24311514L,
12029046L, 2122554L, 9510131L, 4983591L, 15861007L)), .Names = c
("file",
"FETpvalueM_MSmin2", "arm", "start"), class = "data.frame", row.names
= c(NA,
-28L))
On Apr 29, 9:45 pm, Winston Chang <
wins...@stdout.org> wrote:
> This is probably very basic information for many out there, but just in
> case...
>
> To write out an object in a format that can be easily cut and pasted:> dput(mk)
>
> [copy the output and paste into email message]
>
> This generates output that the other person can just copy and paste into
> their R console to generate the correct data structure.
>
> On the receiving end, even if the data has been pasted in a plain text
> format (as squid did earlier) rather than a nice R command format from
> dput(), it's still possible to read it in without too much trouble.> mk <- read.table(file=stdin(), header=T)
>
> [paste table text here]
>
> However, there's no guarantee that the types of each column will be correct;
> if the sender wants, for example, a column of numbers to be treated as a
> factor, that conversion needs to be done by hand.
>
> -Winston
>
> On Wed, Apr 29, 2009 at 3:30 PM, hadley wickham <
h.wick...@gmail.com> wrote:
>
> > Hi squid,
>
> > Would you mind making your example fully reproducible by including the
> > data in a way that easy for other people to access? It makes trouble
> > shooting much easier.
>
> > Hadley
>