r - How to select a subset of rows and columns from a data.frame -


I have it

  d [d $ age & gt; "2",]  

And it gives all the rows on which the age is greater than 2 but I only want to return the value in some columns, d $ x and

thanks

itemprop = "text">

  d [d $ age & Gt; "2", c ("x", "y")]  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -