Displaying 2 results from an estimated 2 matches for "testxy".
Did you mean:
testxx
2005 Aug 15
2
How to get a list work in RData file
...> test.xy <- function(x,y) {
+ xy <- x+y
+ xy
+ }
>
> xyadd <- test.xy(x=2, y=3)
> xyadd
[1] 5
> x1 <- c(2,43,60,8)
> y1 <- c(91,7,5,30)
>
> xyadd1 <- test.xy(x=x1, y=y1)
> xyadd1
[1] 93 50 65 38
> save(list = ls(all=TRUE), file = "testxy.RData")
> rm(list=ls(all=TRUE))
> load("C:/R/useR/testxy.RData")
> ls()
[1] "test.xy" "x1" "xyadd" "xyadd1" "y1"
>
> ls.str(pat="xyadd")
xyadd : num 5
xyadd1 : num [1:4] 93 50 65 38
>
W...
2005 Aug 15
2
queer data set
...<- test.xy(x=2, y=3)
> > > xyadd
> > [1] 5
> > > x1 <- c(2,43,60,8)
> > > y1 <- c(91,7,5,30)
> > >
> > > xyadd1 <- test.xy(x=x1, y=y1)
> > > xyadd1
> > [1] 93 50 65 38
> > > save(list = ls(all=TRUE), file = "testxy.RData")
> > > rm(list=ls(all=TRUE))
> > > load("C:/R/useR/testxy.RData")
> > > ls()
> > [1] "test.xy" "x1" "xyadd" "xyadd1" "y1"
> > >
> > > ls.str(pat="xyadd")
>...