| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | subsetting question |
| From: | "Data Analytics Corp." <dataanalytics@earthlink.net> |
| Date: | Mon, 25 Feb 2008 06:57:32 -0500 |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=q/4LeZMgNyLVYmpMB2gi3aM8eNitbUVp0gL2HZFEXR7EAE4wszDgwA21SGfYK8OL; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP; |
| User-agent: | Thunderbird 2.0.0.9 (Windows/20071031) |
Good morning,I posted a query last night about subsetting a dataframe within a function. I received several replies all of which told me to use
df[df[, sub] == 1, , drop = FALSE]
where sub is an argument to the function. This may be of interest to
others.
Thanks for the help. Walt Paczkowski |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | subsetting a dataframe, Data Analytics Corp. |
|---|---|
| Next by Date: | NLS: Error with the summary function, Ilouga, Pierre |
| Previous by Thread: | subsetting a dataframe, Data Analytics Corp. |
| Next by Thread: | NLS: Error with the summary function, Ilouga, Pierre |
| Indexes: | [Date] [Thread] [Top] [All Lists] |