Re: [R] combining numeric vector and column in a data frame
Hello, Here are two ways of doing it. df1 <- read.table(text=" fileNametype status b N alive a Tdead d N alive c T dead f Nalive e Tdead ", header=TRUE) df1 my.num
Re: [R] combining numeric vector and column in a data frame
Hi Try this: df1<-read.table(text=" fileName type status b N alive a T dead d N alive c T dead f N alive e T dead ",sep="",header=TRUE) mynumeric.vec<-c(a=2,b=1,c=4,d=9,e=10