q**j 发帖数: 10612 | 1 请大家帮一下吧。
1. rm(list=ls())可以清除内存。
rm(x=ls())确不行。
> rm(x=ls())
Error in rm(x = ls()) : ... must contain names or character strings
> list
[1] "All" "Axys" "BI" "Connection" "FileName" "names
" "Q"
[8] "Temp" "x" "YYYYMMDD"
> class(list)
[1] "character"
> x=ls()
> x
[1] "All" "Axys" "BI" "Connection" "FileName" "list"
"names"
[8] "Q" "Temp" "x" "YYYYMMDD"
> class(x)
[1] "character"
看起来一回事。 |
e*n 发帖数: 1511 | 2 1. list 是 rm 的第二个参数。
2. google %in%
names
【在 q**j 的大作中提到】 : 请大家帮一下吧。 : 1. rm(list=ls())可以清除内存。 : rm(x=ls())确不行。 : > rm(x=ls()) : Error in rm(x = ls()) : ... must contain names or character strings : > list : [1] "All" "Axys" "BI" "Connection" "FileName" "names : " "Q" : [8] "Temp" "x" "YYYYMMDD" : > class(list)
|
q**j 发帖数: 10612 | 3 thanks a lot. got it. will add it to the book. |
o****o 发帖数: 8077 | 4 co-ask the first one
names
【在 q**j 的大作中提到】 : 请大家帮一下吧。 : 1. rm(list=ls())可以清除内存。 : rm(x=ls())确不行。 : > rm(x=ls()) : Error in rm(x = ls()) : ... must contain names or character strings : > list : [1] "All" "Axys" "BI" "Connection" "FileName" "names : " "Q" : [8] "Temp" "x" "YYYYMMDD" : > class(list)
|
q**j 发帖数: 10612 | 5 read the doc for rm(), list is the name of the 2nd argument. not a variable
of list type we create. |
q**j 发帖数: 10612 | 6 i got how to select if there is only one key variable. however, what to do i
f there are two are more? this is kind of hard?
【在 e*n 的大作中提到】 : 1. list 是 rm 的第二个参数。 : 2. google %in% : : names
|
q**j 发帖数: 10612 | 7 i figure out if we want to select records in one data frame, but not in anot
her one if there is only one key variable to match. but if there are two or
more, how to do it then? any advice?
【在 e*n 的大作中提到】 : 1. list 是 rm 的第二个参数。 : 2. google %in% : : names
|