smach / R4JournalismBook

Companion site for my book Practical R for Mass Communication & Journalism, part of the CRC Press R Series
https://smach.github.io/R4JournalismBook/
58 stars 12 forks source link

suggested replacement for read_shape() function in Chapter 11's mapping exercise? #4

Closed lisawilliams closed 3 weeks ago

lisawilliams commented 3 weeks ago

Hello! I am learning so much from Practical R for Mass Communication & Journalism. I've been working my way through the book and have gotten to Chapter 11, the one on maps.

It looks like the tmap package no longer has the read_shape() as a function. Is there a function from another package that could be slotted into the exercises in Chapter 11?

smach commented 3 weeks ago

I'm glad you're finding the book useful!

Give the sf package's st_read() a try.

Best, Sharon

On Wed, Nov 6, 2024 at 12:06 AM Lisa Williams @.***> wrote:

Hello! I am learning so much from Practical R for Mass Communication & Journalism. I've been working my way through the book and have gotten to Chapter 11, the one on maps.

It looks like the tmap package no longer has the read_shape() as a function. Is there a function from another package that could be slotted into the exercises in Chapter 11?

— Reply to this email directly, view it on GitHub https://github.com/smach/R4JournalismBook/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZ4U4G2NLBYDIYOK3FWK33Z7GPUPAVCNFSM6AAAAABRH76CS2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGYZTOMBVGEZTQNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

lisawilliams commented 3 weeks ago

It worked! Thanks so much.

smach commented 3 weeks ago

Great!