R version 3.2.2 (2015-08-14) -- "Fire Safety" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- c(103.4,103.49,103.51,103.27,103.35,103.34,103.07,103.08,103.1,103.13,103.13,103.18,103.2,103.21,103,102.46,102.52,102.55,102.78,102.81,102.81,102.68,102.72,102.73,102.87,102.93,103.2,102.62,102.18,101.19,100.91,100.72,100.86,100.89,100.47,100.45,100.64,100.63,100.66,100.38,99.68,99.71,99.63,99.63,99.71,99.77,99.76,99.79,98.13,98.13,97.87,97.72,97.72,97.6,97.31,97.31,97.44,96.94,96.94,96.94) > ylimmax = as.numeric(j) Error: object 'j' not found Execution halted