[Solved] Cbind Error ” Object not found”


You defined one and only one object when you executed:

tino=read.delim("clipboard")

The column names of that object are not handled as other objects. If you wnated to create a new object from that dataframe you could do this:

x <- with(tino, cbind(DEX, GRW , Debt, Life) )

It’s possible this might do violence to the contents of x and it would be safer to extract as just those columns of hte dataframe, tino:

x <- tino[ , c('DEX', 'GRW' , 'Debt', 'Life')] 

You should realize that vectors passed to cbind will get turned into matrices (where all their elements have the same class and no other attributes are supported). Matrices have different features than dataframes (which can have multiple column class attributes).

0

solved Cbind Error ” Object not found”