Skip to content

Commit

Permalink
Merge pull request #39 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
Pulling changes from the main
  • Loading branch information
deaspo committed Jan 29, 2016
2 parents c9e58d7 + f80da74 commit c2e2c9f
Show file tree
Hide file tree
Showing 63 changed files with 1,758 additions and 1,079 deletions.
171 changes: 171 additions & 0 deletions instat/My Project/Resources.Designer.vb

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

57 changes: 57 additions & 0 deletions instat/My Project/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -979,4 +979,61 @@
<data name="Shape" xml:space="preserve">
<value>Shape</value>
</data>
<data name="Colour_rainbow" xml:space="preserve">
<value>Colour rainbow</value>
</data>
<data name="Cumulative_exceedance" xml:space="preserve">
<value>Cumulative exceedance</value>
</data>
<data name="Day_Month" xml:space="preserve">
<value>Day Month</value>
</data>
<data name="Display_daily" xml:space="preserve">
<value>Display daily</value>
</data>
<data name="Display_daily_data_rain" xml:space="preserve">
<value>Display daily data rain</value>
</data>
<data name="Display_DOY_of_Year" xml:space="preserve">
<value>Display DOY of Year</value>
</data>
<data name="Grid_square" xml:space="preserve">
<value>Grid square</value>
</data>
<data name="Interested_variable" xml:space="preserve">
<value>Interested variable</value>
</data>
<data name="legend_bty" xml:space="preserve">
<value>legend bty</value>
</data>
<data name="Legend_label" xml:space="preserve">
<value>Legend label</value>
</data>
<data name="Legend_position" xml:space="preserve">
<value>Legend position</value>
</data>
<data name="Line_width" xml:space="preserve">
<value>Line width</value>
</data>
<data name="Percents" xml:space="preserve">
<value>Percents</value>
</data>
<data name="Plot_character" xml:space="preserve">
<value>Plot character</value>
</data>
<data name="Plot_window" xml:space="preserve">
<value>Plot window</value>
</data>
<data name="Station_name" xml:space="preserve">
<value>Station name</value>
</data>
<data name="Statistic" xml:space="preserve">
<value>Statistic</value>
</data>
<data name="Sum" xml:space="preserve">
<value>Sum</value>
</data>
<data name="Y_label" xml:space="preserve">
<value>Y label</value>
</data>
</root>
1 change: 1 addition & 0 deletions instat/clsDistribution.vb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

Public Class Distribution
Public strNameTag As String
Public bIncluded As Boolean = True
Public strRFunctionName As String = ""
Public strPFunctionName As String = ""
Public strQFunctionName As String = ""
Expand Down
10 changes: 7 additions & 3 deletions instat/clsRFunction.vb
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ Public Class RFunction
strScript = strScript & strAssignTo & " <- " & strTemp & vbCrLf
If Not strAssignToDataFrame = "" Then
If Not strAssignToColumn = "" Then
strScript = strScript & frmMain.clsRLink.strInstatDataObject & "$add_column_to_data(obj_name = " & Chr(34) & strAssignToDataFrame & Chr(34) & ", col_name = " & Chr(34) & strAssignToColumn & Chr(34) & ", col_data = " & strAssignTo & ")" & vbCrLf
strAssignTo = frmMain.clsRLink.strInstatDataObject & "$get_column_from_data(obj_name = " & Chr(34) & strAssignToDataFrame & Chr(34) & ", col_name = " & Chr(34) & strAssignToColumn & Chr(34) & ")"
strScript = strScript & frmMain.clsRLink.strInstatDataObject & "$add_column_to_data(data_name = " & Chr(34) & strAssignToDataFrame & Chr(34) & ", col_name = " & Chr(34) & strAssignToColumn & Chr(34) & ", col_data = " & strAssignTo & ")" & vbCrLf
strAssignTo = frmMain.clsRLink.strInstatDataObject & "$get_column_from_data(data_name = " & Chr(34) & strAssignToDataFrame & Chr(34) & ", col_name = " & Chr(34) & strAssignToColumn & Chr(34) & ")"
bIsAssigned = True
bToBeAssigned = False
Else
strScript = strScript & frmMain.clsRLink.strInstatDataObject & "$import_data(data_tables = list(" & strAssignToDataFrame & "=" & strAssignTo & "))" & vbCrLf
strAssignTo = frmMain.clsRLink.strInstatDataObject & "$get_data(obj_name = " & Chr(34) & strAssignToDataFrame & Chr(34) & ")"
strAssignTo = frmMain.clsRLink.strInstatDataObject & "$get_data(data_name = " & Chr(34) & strAssignToDataFrame & Chr(34) & ")"
bIsAssigned = True
bToBeAssigned = False
End If
Expand Down Expand Up @@ -113,4 +113,8 @@ Public Class RFunction
bIsAssigned = False
End Sub

Public Sub ClearParameters()
clsParameters.Clear()
bIsAssigned = False
End Sub
End Class
4 changes: 1 addition & 3 deletions instat/clsRSyntax.vb
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ Public Class RSyntax
clsFunction = clsBaseFunction
End If

For Each clsCurrParam In clsFunction.clsParameters
clsFunction.RemoveParameterByName(clsCurrParam.strArgumentName)
Next
clsFunction.ClearParameters()
End Sub

Public Function GetScript(Optional ByRef clsFunction As RFunction = Nothing, Optional bExcludeAssignedFunctionOutput As Boolean = True) As String
Expand Down
Loading

0 comments on commit c2e2c9f

Please sign in to comment.