Closed J535D165 closed 5 years ago
The difference between None, NULL and NA.
It's like determining whether there is coffee or tea in cup. None, there is nothing in the cup. NA we didn't know what's in there. NULL, there isn't even a cup (we can't put something in there at all).
rm()
df$name[df$age<30]
Afternoon:
install.packages
, after which tidyverse can be loaded.Afternoon:
- [ ] tidyverse doesn't load when executing rmarkdown as a cell. Only when you execute the line of code.
Bet you that it's fine.
The difference between None, NULL and NA.
It's like determining whether there is coffee or tea in cup. None, there is nothing in the cup. NA we didn't know what's in there. NULL, there isn't even a cup (we can't put something in there at all).
Cool idea! But also perhaps a bit confusing, esp since we're using NULL
to initialize a variable later on... where is the cup then?
The difference between None, NULL and NA. It's like determining whether there is coffee or tea in cup. None, there is nothing in the cup. NA we didn't know what's in there. NULL, there isn't even a cup (we can't put something in there at all).
Cool idea! But also perhaps a bit confusing, esp since we're using
NULL
to initialize a variable later on... where is the cup then?
Can we say that we have specified the concept of a cup? But not generated one yet.
Cool idea! But also perhaps a bit confusing, esp since we're using
NULL
to initialize a variable later on... where is the cup then?
Good point. Let me rethink this.
- [ ] In-slide explainer of Rstudio interface! Not just a demo. Use the cheat sheet for this?
I checked the cheat sheet --- it's super useful, but not for a first meeting of rstudio. I'll make a slide instead.