Skip to content

Commit

Permalink
Merge pull request #273 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
Updating Master
  • Loading branch information
Ivanluv authored Apr 21, 2022
2 parents 608aecb + 93ce8fb commit 0db9708
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions instat/dlgMergeAdditionalData.vb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Public Class dlgMergeAdditionalData
End Sub

Private Sub InitialiseDialog()
ucrToDataFrame.SetParameter(New RParameter("y", 1))
ucrToDataFrame.SetParameter(New RParameter("x", 0))
ucrToDataFrame.SetParameterIsRFunction()
ucrToDataFrame.SetLabelText("To Data Frame:")

Expand Down Expand Up @@ -83,7 +83,7 @@ Public Class dlgMergeAdditionalData

clsLeftJoinFunction.SetPackageName("dplyr")
clsLeftJoinFunction.SetRCommand("left_join")
clsLeftJoinFunction.AddParameter("x", clsRFunctionParameter:=clsGetColumnsFromData, iPosition:=0)
clsLeftJoinFunction.AddParameter("y", clsRFunctionParameter:=clsGetColumnsFromData, iPosition:=1)

clsByListFunction.SetRCommand("c")

Expand All @@ -92,7 +92,6 @@ Public Class dlgMergeAdditionalData

clsInsertColumnFunction.SetRCommand(frmMain.clsRLink.strInstatDataObject & "$add_columns_to_data")


SetDataFrameAssign()
ucrBase.clsRsyntax.SetBaseRFunction(clsInsertColumnFunction)
bResetSubdialog = True
Expand Down
4 changes: 2 additions & 2 deletions instat/static/InstatObject/R/data_object_R6.R
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ DataSheet$set("public", "set_data", function(new_data, messages=TRUE, check_name
if(check_names) {
# "T" should be avoided as a column name but is not checked by make.names()
if("T" %in% names(new_data)) names(new_data)[names(new_data) == "T"] <- ".T"
valid_names <- make.names(iconv(names(new_data), to = "ASCII//TRANSLIT", sub = "."))
valid_names <- make.names(iconv(names(new_data), to = "ASCII//TRANSLIT", sub = "."), unique = TRUE)
if(!all(names(new_data) == valid_names)) {
warning("Not all column names are syntactically valid. make.names() and iconv() will be used to force them to be valid.")
warning("Not all column names are syntactically valid or unique. make.names() and iconv() will be used to force them to be valid and unique.")
names(new_data) <- valid_names
}
}
Expand Down
Binary file modified instat/translations/rInstatTranslations.db
Binary file not shown.

0 comments on commit 0db9708

Please sign in to comment.