r - Data cleaning using subset with 2 conditions on same variable -


i newbie r, have @ dataset iteproduction_2014.2015 , want see datapoints between 4 , 39 days. use 2 separate lines create subset. can in 1 line? data.difference >3 , < 40?

 iteproduction_2014.2015 <- subset(iteproduction_2014.2015,date.difference>3)  iteproduction_2014.2015 <- subset(iteproduction_2014.2015,date.difference<40) 

thanks in advance, dirk

just little googling have solved problem, example read this logical operators,

like this?

iteproduction_2014.2015<-subset(iteproduction_2014.2015,date.difference>3 & date.difference<40)  

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -