Displaying 1 result from an estimated 1 matches for "timesvisited".
2008 Aug 19
2
conditional with and operators
Hi,
I have a problem in which I am parsing data from a list. I am simply trying to return data that has several conditions being true. Here is my syntax below:
d<-sapply(res,function(.df){(.df$TimesVisited[.df$Tick>912 && .df$Id>0])}) #res is the list, and I am trying to return a result that has two true conditions (that is the variable Tick should be greate than 912 and Id should be greater than 0
This returns an array of 10 with integer values of 0. This is the incorrect result
Ho...