Displaying 2 results from an estimated 2 matches for "fekete_t".
Did you mean:
fekete_
2009 Mar 31
0
Row/columns names within 'assign' command
.....[truncated - there are 120 in total]
# Provide column and row names according to lat/longs.
rnames <- sprintf("%.2f", seq(from = -89.75, to = 89.75, length = 360))
columnnames <- sprintf("%.2f", seq(from = -179.75, to = 179.75, length = 720))
for (i in 1:120) {
Fekete_table <- get(paste("Fekete_", index$year[i], index$month[i], sep=''))
colnames(Fekete_table) <- columnnames
rownames(Fekete_table) <- rnames
assign(paste("Fekete_",index$year[i], index$month[i], sep=''),
colnames(Fekete_table))
}...
2009 Apr 01
0
回复: R-help Digest, Vol 73, Issue 32
...your advice, and although I feel I'm a lot closer now, I can't quite get it to work:
rnames <- sprintf("%.2f", seq(from = -89.75, to = 89.75, length = 360))
columnnames <- sprintf("%.2f", seq(from = -179.75, to = 179.75, length = 720))
for (i in 1:120) {
Fekete_table <- get(paste("Fekete_", index$year[i], index$month[i], sep=''))
colnames(Fekete_table) <- columnnames
rownames(Fekete_table) <- rnames
assign(paste("Fekete_",index$year[i], index$month[i], sep=''),
colnames(Fekete_...