Re: [R] Binding result of a function to a data frame
is this what you are looking for: > x <- read.table(textConnection(" V1 > V2 V3 V4 V5 + 1 1007_s_at DDR1 2865.1 2901.3 1978.3 + 2 1053_at RFC2 103.681.6 108.0
[R] Binding result of a function to a data frame
Hi, I have the following function: > kurtosis <-function(x) (mean((x-mean(x))^4))/(sd(x)^4) #x is a vector and data > print(mydata) V1 V2 V3 V4 V5 1 1007_s_at DDR1 2865.1 2901.3 1978.3 2