Skip to content

Commit

Permalink
Merge pull request #39 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
updating master
  • Loading branch information
Vitalis95 authored Mar 23, 2022
2 parents ca6013d + f8da0f3 commit 063425e
Show file tree
Hide file tree
Showing 31 changed files with 1,948 additions and 1,344 deletions.
20 changes: 20 additions & 0 deletions instat/Model/RCommand/clsPrepareFunctionsForGrids.vb
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,26 @@ Public Class clsPrepareFunctionsForGrids
End If
_RLink.RunScript(clsConvertToNumeric.ToScript(), strComment:="Right click menu: Convert Column(s) To Numeric")
End Sub

''' <summary>
''' Check if the column factor contains labels.
''' </summary>
Public Function CheckHasLabels(strColumnName As String) As Boolean
Dim clsColmnLabelsRFunction = New RFunction
Dim clsGetColumnsFromData As New RFunction

clsGetColumnsFromData.SetRCommand(frmMain.clsRLink.strInstatDataObject & "$get_columns_from_data")
clsGetColumnsFromData.AddParameter("data_name", Chr(34) & _strDataFrame & Chr(34), iPosition:=0)
clsGetColumnsFromData.AddParameter("col_names", Chr(34) & strColumnName & Chr(34), iPosition:=1)
clsGetColumnsFromData.AddParameter("use_current_filter", "FALSE", iPosition:=2)

clsColmnLabelsRFunction.SetRCommand(frmMain.clsRLink.strInstatDataObject & "$has_labels")
clsColmnLabelsRFunction.AddParameter("data_name", Chr(34) & _strDataFrame & Chr(34), iPosition:=0)
clsColmnLabelsRFunction.AddParameter("col_names", clsRFunctionParameter:=clsGetColumnsFromData, iPosition:=1)

Return frmMain.clsRLink.RunInternalScriptGetValue(clsColmnLabelsRFunction.ToScript(), bSilent:=True).AsLogical(0)
End Function

''' <summary>
''' View dataframe the whole dataframe within a pop up
''' </summary>
Expand Down
14 changes: 1 addition & 13 deletions instat/UcrGeomListWithAes.designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 063425e

Please sign in to comment.