From 03ec9eb5a605fc3c751311704fc74643812f4383 Mon Sep 17 00:00:00 2001 From: Saritha Kodikara <64136603+SarithaKodikara@users.noreply.github.com> Date: Tue, 21 Nov 2023 13:10:41 +1100 Subject: [PATCH] Remove unwanted R code In the episode exploring data frames (https://swcarpentry.github.io/r-novice-gapminder/05-data-structures-part2.html), renaming row names is unnecessary as R re-names them sequentially. So, in the section 'Append to a data frame', the following code snippet can be removed. --- episodes/05-data-structures-part2.Rmd | 8 -------- 1 file changed, 8 deletions(-) diff --git a/episodes/05-data-structures-part2.Rmd b/episodes/05-data-structures-part2.Rmd index ed23ba06b..be1eea993 100755 --- a/episodes/05-data-structures-part2.Rmd +++ b/episodes/05-data-structures-part2.Rmd @@ -138,14 +138,6 @@ cats <- rbind(cats, cats) cats ``` -But now the row names are unnecessarily complicated. We can remove the rownames, -and R will automatically re-name them sequentially: - -```{r} -rownames(cats) <- NULL -cats -``` - ::::::::::::::::::::::::::::::::::::::: challenge ## Challenge 1