Skip to content

Commit

Permalink
Merge pull request #74 from ichthya/patch-1
Browse files Browse the repository at this point in the history
Handle new default stringsAsFactors setting in R v4.0.0
  • Loading branch information
tobyhodges authored May 4, 2023
2 parents e0be654 + 3a76d7a commit b1be886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion episodes/04-data-structures-part2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ gapminder <- read.csv("data/gapminder_data.csv")
> your computer. For example,
>
> ```{r eval=FALSE, echo=TRUE}
> gapminder <- read.csv("https://raw.githubusercontent.com/datacarpentry/r-intro-geospatial/master/_episodes_rmd/data/gapminder_data.csv")
> gapminder <- read.csv("https://raw.githubusercontent.com/datacarpentry/r-intro-geospatial/master/_episodes_rmd/data/gapminder_data.csv", stringsAsFactors = TRUE) #in R version 4.0.0 the default stringsAsFactors changed from TRUE to FALSE. But because below we use some examples to show what is a factor, we need to add the stringAsFactors = TRUE to be able to perform the below examples with factor.
> ```
>
> * You can read directly from excel spreadsheets without
Expand Down

0 comments on commit b1be886

Please sign in to comment.