scorekm<-function(km, x,...)
{
args<-list(x,...)
m=data.frame(args)
}
I want to write a function in R, for example, when my input is scorekm(km, c(2,3,4), c(3,4,5))
The output should be
2 3 4
3 4 5
I know the function I put here is wrong, what ought it to be?
For example,inputscorekm(km, c(2,3,4), c(3,4,5),c(4,5,6)),the out put should be
[,1] [,2] [,3]
[1,] 2 3 4
[2,] 3 4 5
[3,] 4 5 6
But the number of parameters xin the function is uncertain.