I would like to thanks everybody for helpful suggestion. 
Rob

Od: [EMAIL PROTECTED]
Do: [email protected]
Data: 14 grudnia 2006 15:01
Temat: [R] matrix - change values

> Dear R Users,
> I have a matrix A, and I want to change every value of this matrix if these 
> values are greater than an assuming value. For a vector it is simple, e.g. 
> a<-c(1:10); a[a>5]<-0. 
> Of course, I can change matrix to vector, assign a value then change vector 
> to matrix. But does there exist simpler way?
> Any suggestion are appreciate.
> Rob
> 
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to