[R] vector generation

Albert Greinoecker albert.greinoecker at uibk.ac.at
Thu Jan 24 15:02:39 CET 2008


 z[z > 1]

regards,
Albert

Am Donnerstag, den 24.01.2008, 10:54 -0300 schrieb Juan Pablo Fededa:
> Dear Contributors:
> 
> I have the next vector:
> 
> "Z"
> 
> z = (526, 0.1, 110, 0.2, 34, 0.4, 614, 0.5, 1, 14, 15)
> 
> 
> I want to generate a vector containing the values higher than 1
> corresponding to the z vector, wich in this case will mean to generate the
> next vector:
> 
> (526, 110, 34, 614, 14, 15)
> 
> 
> If you have any clue on how to do that, I will be very glad to hear it!!!!!!
> Thanks in advance again,
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org 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.



More information about the R-help mailing list