Displaying 1 result from an estimated 1 matches for "r56671".
Did you mean:
56671
2011 Aug 19
0
retain class after merge
...Smith"))
class(authors$surname) <- 'myclass1'
class(books$name) <- 'myclass2'
(m1 <- merge(authors, books, by.x = "surname", by.y = "name"))
class(m1$surname)
[1] "character"
>
> sessionInfo()
R version 2.13.1 Patched (2011-08-08 r56671)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=German_Switzerland.1252 LC_CTYPE=German_Switzerland.1252
[3] LC_MONETARY=German_Switzerland.1252 LC_NUMERIC=C
[5] LC_TIME=German_Switzerland.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods...