Displaying 1 result from an estimated 1 matches for "329457".
Did you mean:
229457
2011 Jul 11
1
Ifelse statement
Hello everyone,
I have a (small) issue. I already googled a lot, so I decided to use ifelse
instead of if (){} else{}
All the elements seem to work seperately, but combined in the ifelse
statement, it doesn't seem to work.
#The price function is a function which is normally distributed with only
positive answers
price<-function() {abs(rnorm(1,10,25))}
#Before I use pieceprice in the