Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete codes #357

Open
pingmamiya opened this issue Jun 24, 2021 · 0 comments
Open

Incomplete codes #357

pingmamiya opened this issue Jun 24, 2021 · 0 comments

Comments

@pingmamiya
Copy link

In the "Explore and Plot by Vector Layer Attributes" episode (https://datacarpentry.org/r-raster-vector-geospatial/07-vector-shapefile-attributes-in-r/index.html), the codes for "explore values within one attribute" section are incomplete.

R
levels(lines_HARV$TYPE)
OUTPUT
NULL

To get the results, the codes should be written as:
R
levels(as.factor(lines_HARV@TYPE))
OUTPUT
[1] "boardwalk" "footpath" "stone wall" "woods road"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant