This article is a list of time saving code snippets;
1. List out all files in a folder using R;
file.list <- list.files('C:/Users/MyName/Desktop/')
write.table(file.list,'C:/Users/MyName/Desktop/files.txt')
2. Creating a bunch of variables without any Manual intervention;
mylist <- c(1:10)
for(i in mylist){
assign(paste('movie',i,sep=''),i+10)
}
I will keep adding more.