Code Monkey home page Code Monkey logo

molmedbasicrcourse's Introduction

basicrcourse

Molmed's Basic Course on R

Initial Branches:

01 = intro lecture

02 = objects/functions lecture

03 = objects/functions practical

04 = manipulating data lecture

05 = manipulating data practical

06 = entering data lecture

07 = entering data practical

08 = basic plotting lecture

09 = basic plotting practical

10 = testing 1 lecture

11 = testing 1 practical

12 = testing 2 lecture

13 = testing 2 practical

14 = distfreeANOVA lecture

15 = distfreeANOVA practical

16 = ggplot2 lecture

17 = ggplot2 practical

18 = linreg lecture

19 = linreg practical

20 = logreg lecture

21 = logreg practical

22 = prog1 lecture

23 = prog1 practical

24 = prog2 lecture

25 = prog2 practical

26 = oop lecture

27 = oop practical

molmedbasicrcourse's People

Contributors

karlbrand avatar elizabethribble avatar dnieuw avatar

Stargazers

Andrew (Drew) Judell avatar Mikhael D. Manurung avatar  avatar Hélène Kabbech avatar Cainã Max Couto da Silva avatar  avatar

Watchers

Youri Hoogstrate avatar  avatar  avatar  avatar

molmedbasicrcourse's Issues

fix ggplot practical

Apparently my changes to the ggplot practical didn't make it into the new reader or into github :P - David, will you please fix the issue from before (where aggregate creates two new columns with the same names?).

ggplot practical code missing

David will you please add your ggplot practical code to the repository? We need to fix the issue of the duplicate column names in the solution to the problem where you use the aggregate function. I think once that is updated we are all set to create the full course reader.

Wrong answer in ggplot2 practical with geom_tile

In each, the following:

x=cut, y=color

...should instead be:

x=cutAgg, y=colorAgg

So, for example, for question 12:

ggplot(mean.price, aes(x=cut, y=color, fill=price)) +
geom_tile() + labs(title="Average prices")

Should instead be:

ggplot(mean.price, aes(x=cutAgg, y=colorAgg, fill=price)) +
geom_tile() +
labs(title="Average prices")

Multiple linear regression prac

In the lecture students are urged to correlate indepenant variables between each other and exclude those which show strong co-correlation.

  1. This is not done in the prac ansers or commented on
  2. what is a ball park r cutoff? 0.5?

Introduction too long

Personally I think that the introduction about R is a bit too dragged out and we could use more time for the actual introduction of R code on the first day. Or just make it shorter to make the first day a bit less lecture heavy.

What was wrong with q 11 from the ggplot practical?

You sent me an email about practical question 11 in ggplot @elizabethribble . I've tested the code and it works, so I'm not sure what is wrong there.

Reminder to fix problem 11 in the ggplot practical (the names in the output of aggregate don’t match the names in the ggplot call).

Elizabeth

"myFirstList and pets" no longer exist in practical

@elizabethribble
In the Objects and Functions practical , 1.5 (e) the question:

"Use the function ``save()'' to save only the objects {\tt myFirstList} and {\tt pets} to a file called {\tt YourLastName_objects.RData} (replace YourLastName with your last name)."

myFirstList and pets were created earlier in the practical which is now commented.

My Q: can we bring back the part that was commented out to solve this? I propose it remains valuable!

R 4.0.0 stringsAsFactors default is FALSE

In several practicals and lectures, stringsAsFactors = TRUE is assumed to be default, but this changed as of R 4.0.0. Everything needs to be updated to reflect this change.

PDFs on git?

Is it an idea to not keep the pdfs on git, but only the source files, to make sure that the most up to date version of the pdfs gets into the reader?
That would simply mean generating the pdfs before every iteration of the course, instead of copying the pdfs from the github.
Otherwise you might run into trouble when the pdfs and the source code do not match because edits have been made in the source, but the pdf has not been regenerated and posted yet.

histograms in HT&CI 1 practical answers are wrong

Answers to problems 3 (m) and (n) in Hyp Test & CI 1 practical answers (pages 152 and 153 of May 2020 reader) have histograms that do not match what you get if you use the seed 1234 - need to update graphs

need to add a side bar explantion what set.seed() does

Code snippet to get started with:

set.seed(1234)
par(mfrow=c(2,2))
x <- sort(rnorm(10000))
plot(density(x))
plot(x)

## Help Description
## .Random.seed is an integer vector, containing the random number 
## generator (RNG) state for random number generation in R
runif(5, 1, 10)
runif(5, 1, 10)


## note 1: it only works on the FIRST subsequent call to R's (pseudo) random
## generator; after that it's de-activated
set.seed(123)
runif(5, 1, 10) # IMMEDIATELY run a fucntion that calls R's random generator 

## Re-run after the fact
runif(5, 1, 10)
runif(5, 1, 10)

## note 2: the number given determines the outcome of the random generator
set.seed(456)
runif(5, 1, 10)

Using the paste function to make paths

In my experience, it is very confusing to many people why we use paste. I think we should remove it or give a clear example why and when you use paste to create (many) paths to load multiple files for instance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.