Displaying 1 result from an estimated 1 matches for "lnifty".
Did you mean:
nifty
2004 Feb 29
1
Confused in simplest-possible function
I wrote the following code:
---------------------------------------------------------------------------
oneindex <- function(x) {
summary(x)
}
A <- read.table("try.data",
col.names=c("date", "lNifty"))
summary(A)
oneindex(A$lNifty)
---------------------------------------------------------------------------
where I read in data, make a summary directly, and then call a
function `oneindex' which merely makes a summary.
I'm puzzled because the two summaries disagree :
> o...