swcarpentry / r-novice-gapminder-es

R para Análisis Científicos Reproducibles
https://swcarpentry.github.io/r-novice-gapminder-es/
Other
9 stars 52 forks source link

data examples - language issue #133

Closed catalicu closed 1 year ago

catalicu commented 1 year ago

In 'Extructuras de datos', the example dataset is initially created within r with column names and character strings in Spanish: gatos <- data.frame(color = c("mixto", "negro", "atigrado"), peso = c(2.1, 5.0, 3.2), le_gusta_cuerda = c(1, 0, 1))

However, later on, it is imported form the file feline-data.csv, which has the column names and character strings in English: gatos <- read.csv(file = "data/feline-data.csv") gatos coat weight likes_string 1 calico 2.1 1 2 black 5.0 0 3 tabby 3.2 1

This issue impacts the following commands. For example, invoking the column 'peso' gives a NULL: gatos$peso NULL because the English version of the dataset is loaded. Fixing the language in the text file or keeping the Spanish version loaded should fix this issue.

nselem commented 1 year ago

Thank you for letting us know. This issue seem to arise when you load the data from the file feline-data,csv I have looked and there are several files in the files directory, such as gatos-data.csv (https://github.com/swcarpentry/r-novice-gapminder-es/tree/main/_episodes_rmd/data) I don't know if it is any reason why the lesson was not updated before to this file @vjimenez9? It there is no reason, then I can update everything to Spanish.

catalicu commented 1 year ago

Hi Nelly

No problem! I agree, it is probably an issue of moving from the English encoded data to the Spanish encoded data. I really appreciate the lessons in Spanish! I think it increases the reach of the Carpentries lessons enormously.

Catalina Cuellar-Gempeler, PhD Pronouns: she/ella Assistant Professor Department of Biological Sciences Humboldt State University @.***

To schedule an appointment: https://catalina-cuellar-gempeler.youcanbook.me

On Dec 6, 2022, at 1:13 AM, Nelly Sélem @.***> wrote:

Thank you for letting us know. This issue seem to arise when you load the data from the file feline-data,csv I have looked and there are several files in the files directory, such as gatos-data.csv (https://github.com/swcarpentry/r-novice-gapminder-es/tree/main/_episodes_rmd/data https://github.com/swcarpentry/r-novice-gapminder-es/tree/main/_episodes_rmd/data) I don't know if it is any reason why the lesson was not updated before to this file @vjimenez9 https://github.com/vjimenez9? It there is no reason, then I can update everything to Spanish.

— Reply to this email directly, view it on GitHub https://github.com/swcarpentry/r-novice-gapminder-es/issues/133#issuecomment-1339007939, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAW6QYTELC6ESIVC6JNMGG3WL37UZANCNFSM6AAAAAASRMB6TE. You are receiving this because you authored the thread.

nselem commented 1 year ago

Hello, This issue is similar to issue#78. Now the colors are in Spanish, "feline" has been updated to "gatos" and even the factor tortoiseshell has been updated to "carey". Thanks for the observation.