Hi: I want to obtain a particular value from a data.frame. Following is my dataframe:
> Quotes BID ASK Name CT2 GOVT 99.92969 99.9375 CT2 TUM0 COMDTY 108.53125 108.5469 TUM0 CT5 GOVT 100.10156 100.1094 GT5 FVM0 COMDTY 115.56250 115.5703 FVM0 TYM0 COMDTY 116.93750 116.9531 TYM0 If I try to run: QuoteTUM0BID = Quotes[Quotes$Name %in% "TUM0", "BID"] and print QuoteTUM0BID, I get 108.5312, instead of 108.53125 as an answer. Please let me know why is it ignoring the last digit. Additional Information. If I run QuoteBID = Quotes[, "BID"], I get the whole array in which TUM0 BID is 108.53125 (a correct number). Thanks in advance... Rgds, Brijesh -------------------------------------------------------------------------- This message w/attachments (message) may be privileged, ...{{dropped:30}} ______________________________________________ R-help@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.