On 5/13/2010 11:04 AM, Chuck Cleland wrote:
> On 5/13/2010 10:02 AM, John Edwards wrote:
>> Hello,
>>
>> How ls() only functions or only data objects (basically anything other than
>> functions) such as data.frame, numeric ...?
>
> c(ls.str(mode = "function"))
>
> ls()[!(ls() %in% c(ls.str(mode="
On 5/13/2010 10:02 AM, John Edwards wrote:
> Hello,
>
> How ls() only functions or only data objects (basically anything other than
> functions) such as data.frame, numeric ...?
c(ls.str(mode = "function"))
ls()[!(ls() %in% c(ls.str(mode="function")))]
?ls.str
> John
>
> [[alternative H
Try this:
className <- "data.frame"
names(which(eapply(globalenv(), class) == className))
On Thu, May 13, 2010 at 11:02 AM, John Edwards wrote:
> Hello,
>
> How ls() only functions or only data objects (basically anything other than
> functions) such as data.frame, numeric ...?
>
> John
>
>
Hello,
How ls() only functions or only data objects (basically anything other than
functions) such as data.frame, numeric ...?
John
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo
4 matches
Mail list logo