search for: tp4603263p4603754

Displaying 1 result from an estimated 1 matches for "tp4603263p4603754".

2012 May 02
2
How can a function in R handle different types of input?
Hi, How can a function in R handle different types of input? I have written a function, which should calculate the slope from several 3-time-point measurements by linear regression 4 three-time-point-measurements: x<-cbind(c(1,2,3,4),c(2,3,4,5),c(3,4,5,6)) time points: time<-c(1,3,9) function for calculating the slope by linear regression: fit<-function(xx,t){slope <-