Router works to route traffic from one network to a DIFFERENT network. Example, your home network is one network, and the internet is a DIFFERENT network. It makes the decision to route traffic based on the high lever TCP/IP addresses.
Switches work to switch traffic from host to host on the SAME network. Example between two PC's in your home connected to the switch. It switches traffic based on the lower lever MAC address.
A router and a switch are not interchangeable.
Now the LinkSys, D-Link and other routers sold for home use are a combination Router and Switch. Cable or DSL modem connects to the WAN connector, and all computers in the home connect to the LAN side switched ports