I repeat myself:
Any more automated solution will depend on whether your data has
rownames or not. [...] create a plain text representation of R data
using the dput() command.
Another way that might make more sense is to cbind() the data you need
later on before the split and then it will be carr
The thing is that I've already been working with df1, and I was looking for
a function that could replace values knowing rows and columns. Does it
exist?
Thank you, u...@host.com
--
View this message in context:
http://r.789695.n4.nabble.com/Replace-columns-in-a-data-frame-randomly-splitted-tp
Two ways immediately come to mind:
1) Change the values before splitting
2) Use the same seed for the two splits so the rows match exactly and
then just do the changes directly
Any more automated solution will depend on whether your data has
rownames or not.
Michael
PS - As a general rule, mos
Dear community,
I'm working with the data.frame attached (
http://r.789695.n4.nabble.com/file/n4122926/df1.xls df1.xls ), let's call it
df1.
I typed: df1<- read.xls("C:/... dir .../df1.xls",colNames= TRUE, rowNames=
TRUE)
Then I splited randomly df1 using splitdf function
(http://gettingg
4 matches
Mail list logo