search for: node_islands

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

2012 Jun 12
3
Mapping one vector to another
...column" to the data frame containing the island that the bus is on. I'm afraid my success at searching for an answer is restricted by not knowing what this operation might be called in R, but I found a something on stackoverflow [1] and tried the following: map <- read.table("../node_islands.csv", header=TRUE, sep=",") map <- setNames(map$island, map$node) periods$Island = map[periods$Bus] Where after the first line, but before the second and third: > map[1:3,] node island 1 ABY0111 SI 2 ABY1101 SI 3 ADD0111 SI and: > periods[1:3, c("D...