标签: r
stock.prices=c(21,25,23,22,32) week.days=c("mon","tues","wed",thu","fri") names(stock.prices)=week.days
查找大于24的股票价格
查找本周的最高股价
第二个代码为什么不起作用
stock.prices[stock.prices>24] stock.prices[max(stock.prices)]