r - extracting from dataset based on value -


i bit of newbie in r. if have dataset , extract based on value in dataset:

data<- read.csv(...)  data    name date id 1 2 3 4 

if filter data based on value in date date = "05/31/2000". how do this?

data[data$date == as.date("05/31/2000"),]   , 

assuming data$date date.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -