Guten Morgen! Das oben war ein Auszug:jogo hat geschrieben: ↑Mi Mai 22, 2019 8:35 am hm, ok, sieht ganz so aus. Aber warum sieht dann der Output von str(df) nicht so ähnlich aus wie bei dem Dataframe iris?Kannst Du bitte mal spaßeshalber noch den Output vonCode: Alles auswählen
> str(iris) 'data.frame': 150 obs. of 5 variables: $ Sepal.Length: num 5.1 4.9 4.7 4.6 5 5.4 4.6 5 4.4 4.9 ... $ Sepal.Width : num 3.5 3 3.2 3.1 3.6 3.9 3.4 3.4 2.9 3.1 ... $ Petal.Length: num 1.4 1.4 1.3 1.5 1.4 1.7 1.4 1.5 1.4 1.5 ... $ Petal.Width : num 0.2 0.2 0.2 0.2 0.2 0.4 0.3 0.2 0.2 0.1 ... $ Species : Factor w/ 3 levels "setosa","versicolor",..: 1 1 1 1 1 1 1 1 1 1 ...
zeigen?Code: Alles auswählen
length(df)
Ansonsten hilft nur: viewtopic.php?f=20&t=11 bzw. https://stackoverflow.com/questions/596 ... le-example
Gruß, Jörg
Code: Alles auswählen
$ Var_021 : num 1 1 3 2 1 2 NA 1 2 2 ...
Code: Alles auswählen
> str(df)
'data.frame': 135 obs. of 488 variables:
$ VPN : num 1 2 3 4 5 6 7 8 9 10 ...
$ Sex : num 1 1 2 2 1 1 1 2 2 2 ...
$ Age : num 32 58 19 25 59 66 27 52 42 58 ...
$ BAB_001 : num 2 3 3 3 2 1 NA 3 3 3 ...
$ BAB_002 : num 1 3 3 3 4 2 NA 2 2 1 ...
$ BAB_003 : num 1 2 3 4 2 3 NA 4 4 2 ...
$ BAB_004 : num 4 3 3 3 4 3 NA 3 3 2 ...
$ BAB_005 : num 2 1 2 2 1 1 NA 2 2 2 ...
[list output truncated]
Code: Alles auswählen
[1] 488
Code: Alles auswählen
df2 <- c("BAB_001", "BAB_002",...)
Lis