search for: timecalculations

Displaying 1 result from an estimated 1 matches for "timecalculations".

2011 Oct 22
1
cycling through a long list of files and names
...I have the general following structure that I would like to automate [edited to make it shorter]: >>> city1997 <- dataCleaning(read.csv2("C:\\city\\year1997.txt")) city1997 <- wasteCalculations(city1997, year = 1997) if (city1997[1,1] == "Time") {city1997 <- timeCalculations(city1997)} city1998 <- dataCleaning(read.csv2("C:\\city\\year1998.txt")) city1998 <- wasteCalculations(city1998, year = 1998) if (city1998[1,1] == "Time") {city1998 <- timeCalculations(city1998)} city1999 <- dataCleaning(read.csv2("C:\\city\\year1999.txt"))...