With the code below, I have imported all .txt files from working directory. 
temp=list.files(pattern = "*.txt")
for (i in 1:length(temp)) { assign(temp[i], read.delim(temp[i]))
But all of them came with .txt extension like this. 
How can I remove all .txt extensions from data names?
 
     
    