You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\f4\fs20\cf2 Prints the internal property structure of the receiving object; in particular, the element type of the object is printed, followed, on successive lines, by all of the properties supported by the object, their types, and a sample of their values.\
\f4\fs20 value that represents the receiving object. By default, this is simply the name of the class of the receiving object; however, many subclasses of
101
+
\f3\fs18 Object
102
+
\f4\fs20 provide a different string representation. The value returned by
103
+
\f3\fs18 stringRepresentation()
104
+
\f4\fs20 is the same string that would be printed by
105
+
\f3\fs18 print()
106
+
\f4\fs20 for the object, so
107
+
\f3\fs18 stringRepresentation()
108
+
\f4\fs20 allows the same representation to be used in other contexts such as
Copy file name to clipboardExpand all lines: QtSLiM/help/EidosHelpClasses.html
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,8 @@
28
28
<pclass="p4">Returns the size of the receiving object.<spanclass="Apple-converted-space"></span>This is equivalent to the <spanclass="s1">size()</span> (or <spanclass="s1">length()</span>) function; in other words, for any <spanclass="s1">object</span><spanclass="s1">x</span>, the return value of the function call <spanclass="s1">size(x)</span> equals the return value of the class method call <spanclass="s1">x.size()</span>.<spanclass="Apple-converted-space"></span>This method is provided solely for syntactic convenience.<spanclass="Apple-converted-space"></span>Note that <spanclass="s1">+length()</span> is a synonym for <spanclass="s1">+size()</span>.</p>
29
29
<pclass="p3">– (void)str(void)</p>
30
30
<pclass="p4">Prints the internal property structure of the receiving object; in particular, the element type of the object is printed, followed, on successive lines, by all of the properties supported by the object, their types, and a sample of their values.</p>
<pclass="p4">Returns a singleton <spanclass="s1">string</span> value that represents the receiving object.<spanclass="Apple-converted-space"></span>By default, this is simply the name of the class of the receiving object; however, many subclasses of <spanclass="s1">Object</span> provide a different string representation.<spanclass="Apple-converted-space"></span>The value returned by <spanclass="s1">stringRepresentation()</span> is the same string that would be printed by <spanclass="s1">print()</span> for the object, so <spanclass="s1">stringRepresentation()</span> allows the same representation to be used in other contexts such as <spanclass="s1">paste()</span> and <spanclass="s1">cat()</span>.</p>
<pclass="p4">The <spanclass="s1">DataFrame</span> constructor can be called in the same ways as the constructor for <spanclass="s1">Dictionary</span> (its superclass): with no parameters to make an empty <spanclass="s1">DataFrame</span>, with key-value pairs, with a singleton <spanclass="s1">Dictionary</span> (or a subclass of <spanclass="s1">Dictionary</span>, like <spanclass="s1">DataFrame</span>) to make a copy, or with a singleton string in JSON format.<spanclass="Apple-converted-space"></span>See the <spanclass="s1">Dictionary</span> class for further documentation.</p>
0 commit comments