search for: tstf2

Displaying 2 results from an estimated 2 matches for "tstf2".

Did you mean: tst2
2000 Apr 03
1
another save/load problem, only(?) affecting ascii = TRUE (PR#507)
...------------------------------------------ n2 <- n %/% 2 nk <- n2 * 4 CPU <- numeric(n) ## ----------------------------------------------------------------------- for(i in 1:n) { ## just a simple pseudo loop n <- n*nk CPU[i] <- i^n } CPU } tstf2 <- function(n = 500) { ## Author: Martin Maechler, Date: 1 Apr 2000, 15:40 n %/% 2 } save(tstf1, file="foo1",ascii=TRUE); load(file="foo1") ## Error in load(file = "foo1") : NewReadItem: unknown type -1073749696 save(tstf2, file="foo2",ascii=TRUE)...
2005 Jul 17
1
printing the name of the arguments passed to a function
R2.1.1 Win 2k I have a function, B, within a function, A. I would like to have B print the name of the argument passed to it (not the value of the arguments). i.e., A<-function() { B<-function(x,y) { fit1<-lm(y~x,data=jo) print(summary(fit1) I want B to print the string "age" and the string "height". } B(age,height) }