[R] Merge function - Return NON matches
chuck.01
CharlieTheBrown77 at gmail.com
Fri Apr 27 00:28:29 CEST 2012
# dput() example
# lets say you have data called y, like this:
> y
sp1 sp2 sp3 sp4
d 0 0 0 0
e 0 0 0 0
f 0 0 0 0
# ok, so do this:
> dput(y)
structure(list(sp1 = c(0, 0, 0), sp2 = c(0, 0, 0), sp3 = c(0,
0, 0), sp4 = c(0, 0, 0)), .Names = c("sp1", "sp2", "sp3", "sp4"
), row.names = c("d", "e", "f"), class = "data.frame")
# now copy and paste that into your R terminal to see why it is so nice.
RHelpPlease wrote
>
> Hi there,
> Thanks for your responses. I haven't used/heard of dput() before. I'm
> looking it up & understanding how it works.
>
> Thanks!
>
--
View this message in context: http://r.789695.n4.nabble.com/Merge-function-Return-NON-matches-tp4590755p4591189.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list