Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
eesys-public
BIA-Resources
Commits
b7154180
Commit
b7154180
authored
Oct 29, 2019
by
Weigert, Andreas
Browse files
corrected mistake in Tutorial 1, exercise 33
parent
5ff3b9e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Tutorial_Scripts/RIntro/BIA_T01_RIntro1.Rmd
View file @
b7154180
...
...
@@ -132,13 +132,13 @@ Age <- c(29,23,56,35)
Nationality <- as.factor(c("DE","US","DE","SE"))
# Exercise 33
students <- data.frame(ID=
c(876, 563, 345, 939)
,
Name=
as.character(c("Michael", "Susan", "Hans", "Björn"))
,
Age=
c(29,23,56,35)
,
Nationality=
as.factor(c("DE","US","DE","SE"))
)
students <- data.frame(ID=
ID
,
Name=
Name
,
Age=
Age
,
Nationality=
Nationality
)
# Long command: If you do not use proper datatypes and enhance the data.frame command by "stringsAsFactors = F", data types might not be correct.
students <- data.frame(ID=as.numeric(876, 563, 345, 939),
students <- data.frame(ID=as.numeric(
c(
876, 563, 345, 939)
)
,
Name=as.character(c("Michael", "Susan", "Hans", "Björn")),
Age=as.numeric(c(29,23,56,35)),
Nationality=as.factor(c("DE","US","DE","SE")),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment