Re: [R] How ls() only functions or anything else but functions?

2010-05-13 Thread Chuck Cleland
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="

Re: [R] How ls() only functions or anything else but functions?

2010-05-13 Thread Chuck Cleland
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

Re: [R] How ls() only functions or anything else but functions?

2010-05-13 Thread Henrique Dallazuanna
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 > >

[R] How ls() only functions or anything else but functions?

2010-05-13 Thread John Edwards
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