I have hidden my student ID number which is also the text file name. I just want to know what I am doing wrong here. I am supposed to calculate the sample mean and sample standard deviation of the DBH (Tree.Diameter) of the trees in my text file. However I can not seem to import my text file into R with the code shown in the picture. it says there is no file in the directory. Also the text file contains data which should be read like a table because Tree.Diameter is a column and I need to find the mean for it. The code I used is
z******.txt <- read.csv(file.choose(), header=TRUE)
trees <- read.table("z******.txt", header=T, stringsAsFactors=TRUE)