cycle %% filter(col == blue, cycle == 1)
On Tue, Aug 4, 2015 at 18:59 Rodrigo Díaz rodlupa...@hotmail.com wrote:
Hi. I have a matrix like this:
Enterprise Support Administration
Washington State Department of Social and Health Services
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rodrigo Díaz
Sent: Tuesday, August 04, 2015 1:50 PM
To: r-help@r-project.org
Subject: [R] Two conditions selection
Hi. I
Hi. I have a matrix like this:
cycle=c(rep(1,3),rep(2,3),rep(3,3),rep(4,3))col=c(rep(blue,2),rep(green,2),rep(blue,2),rep(green,2),rep(blue,2),rep(green,2))values=c(1:12)data.frame(cycle,col,values)
# cycle col values#1 1 blue 1#2 1 blue 2#3 1
green 3#4 2
Sorry. In dplyr:
data %% filter(col == blue, cycle ==1) %% select(values)
On Tue, Aug 4, 2015 at 19:54 James Hedges jhedg...@gmail.com wrote:
cycle %% filter(col == blue, cycle == 1)
On Tue, Aug 4, 2015 at 18:59 Rodrigo Díaz rodlupa...@hotmail.com wrote:
Hi. I have a matrix like this:
Rodrigo Díaz wrote
Hi. I have a matrix like this:
cycle=c(rep(1,3),rep(2,3),rep(3,3),rep(4,3))col=c(rep(blue,2),rep(green,2),rep(blue,2),rep(green,2),rep(blue,2),rep(green,2))values=c(1:12)data.frame(cycle,col,values)
# cycle col values#1 1 blue 1#2 1 blue 2#3 1
5 matches
Mail list logo