Comments (3)
Hey @datacarpentry/curriculum-advisors-geospatial , here's an item I think we should talk about for our next meeting. This would be a pretty sizable change, but it's been ~3 years since R4.0 deprecated stringsAsFactors
, and the option is going to be removed entirely in R 4.3 (https://cran.r-project.org/doc/manuals/r-devel/NEWS.html).
from r-intro-geospatial.
Good morning.
I would like to provide some context to this issue. I only found 6 references to 'stringsAsFactors' in this leson.
The first two are in the script ./renv/activate.R
lines 299 and 561. I'm not an user of the renv
package, but I think we can safely remove those as they are set to FALSE (R's default since v4). Besides, the readers aren't supposed to read this script.
The next one is in ./episodes/03-data-structures-part1.Rmd
line 412 and it's part of the solution to challenge 3. It makes no difference because it's also set to FALSE. However, that challenge description makes sense from the perspective of R v3. I guess we could update or remove challenge 3.
The next 3 appear in ./episodes/04-data-structures-part2.Rmd
lines 73, 348, and 369.
In line 73, stringAsFactors
is set to TRUE and it includes a comment explainign the readers the default value of this property changed from R v3 to R v4. Besides, this line sets up data which is needed by a different task below. This was made so to ensure the code runs on R v4 while minimizing the changes to this lesson's contents. This is the change that would require more attention.
In lines 348 and 369 stringsAsFactors
is set to FALSE and they can be safely removed.
Bests,
from r-intro-geospatial.
Sounds good to me!
from r-intro-geospatial.
Related Issues (20)
- Episode 3 Data Structures: Challenge 1 solution: factor is now character
- Episode 3 Data Structures: reword section under Factors
- Episode 3 Data Structures: Adjust Challenge 3 for factors/strings HOT 5
- Episode 3 Data Structures: Revise Solution to Challenge 4
- Episode 4: Data Structures: Exploring Data Frames - Solution to Challenge 2
- Episode 4: Data Structures: Exploring Data Frames - `rbind` and factors
- Lesson Contribution - Moving paragraphs to clarify R vs RStudio HOT 1
- Need jump lists (anchors) for headings HOT 1
- Keypoints and objectives don't match for Exploring Data Frames episode
- Suggestions for Exploring Data Frames Challenge 3 HOT 2
- ggsave isntead of pdf in writing data HOT 5
- Episode 2 Project Management With RStudio: A Possible Solution - here::here() instead of getwd() HOT 5
- datacarpentry/r-intro-geospatial HOT 1
- Transition To Workbench in May HOT 12
- Link in reference page returns a 404
- Links need to be fixed in CONTRIBUTING.md
- sandpaper: unknown div text-center
- ggplot2 package HOT 1
- Show learners how to save a plot to an object.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from r-intro-geospatial.