Displaying 2 results from an estimated 2 matches for "273633".
Did you mean:
373633
2012 Mar 20
2
Unique in DataFrame
...e doubt, and I do not think that the way I solve the problem
is the best way to do it.
The following is a small dataset
x<-data.frame(city="Barcelona",sales=253639)
x<-rbind(x,data.frame(city="Madrid",sales=223455))
x<-rbind(x,data.frame(city="Lisbon",sales=273633))
x<-rbind(x,data.frame(city="Madrid",sales=266535))
x<-rbind(x,data.frame(city="Barcelona",sales=258369))
x<-rbind(x,data.frame(city="Lisbon",sales=273633))
x<-rbind(x,data.frame(city="Barcelona",sales=22579))
x<-rbind(x,data.frame(city="...
2003 Feb 01
2
Re-assigning vector elements based on their initial values.
Is there an eloquent solution to re-assign vector element values?
I have a vector which contains chemical data, some of them are "flagged" as
non-detected values by their negative values.
I can find the statistics on the positive values in vector "v" simply by
typing:
>v<- c(5,5,-3,-3,7,8,10)
> v[(v>0)]
[1] 5 5 7 8 10
I can also convert to positive values by