search for: singlecosinor

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

2012 Nov 01
2
Problem with lm
Hi, I have a problem in relation with a packahe I made. It runs on my machine (Windows, where I made the package), and it runs in a Mac machine, but it does not run in another Mac machine with the same R version. The part of the code is giving problems: singleCosinor <- function(t, y, period=24) {   x1 <- cos(2 * pi * t / period)   x2 <- sin(2 * pi * t / period)   single <- lm (y ~ x1 + x2)   return(single) } The error: Error en eval(expr, envir, enclos) : objeto 'y' no encontrado Can it be in relation with scoping?. Thanks in advance....