da R und ich bisher noch keine besonders dicken Freunde geworden sind, hänge ich im Moment beim nesten von zwei Spalten in meinem data frame..
der frame schaut so aus:
Code: Alles auswählen
# A tibble: 6 x 14
`Study areaID` TerritoryID Territory_Size Distance_isolated~ Distance_linear_wood~ Distance_closed_~
<dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 15.0 61.0 0.114 35.1 11.0 250
2 15.0 61.0 0.114 35.1 11.0 250
3 15.0 61.0 0.114 9.37 24.3 250
4 15.0 61.0 0.114 21.6 30.2 250
5 15.0 61.0 0.114 21.6 30.2 250
6 24.0 79.0 0.138 27.2 17.9 250
Code: Alles auswählen
teriid<-Data_table_for_analysis_numeric_studyarea$TerritoryID
studyarea<-Data_table_for_analysis_numeric_studyarea$`Study areaID`
Code: Alles auswählen
nest(data, ..., .key = "data")
Code: Alles auswählen
nest(Data_table_for_analysis_numeric_studyarea,c(teriid,studyarea), .key = "nestedidarea")
Code: Alles auswählen
Error in inds_combine(.vars, ind_list) : Position must be between 0 and n
In addition: Warning message:
In if (!is.finite(x)) return(FALSE) :
the condition has length > 1 and only the first element will be used
Die Packages dplyr und tidyr habe ich mir installiert ...aber leider komme ich gerade nicht weiter..
Würde mich also sehr freuen, wenn jemand von euch einen Tipp hat, warum die Fehlermeldung und Warnung erscheint und v.a. was sie bedeutet.
LG
Valabe