search for: argname3

Displaying 11 results from an estimated 11 matches for "argname3".

Did you mean: argname
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
...mals list for a function definition. This would have the following semantics: { *tmp* <- expr # For arguments with no "default" expression, argname1 <- *tmp*[[1]] argname2 <- *tmp*[[2]] ... # For arguments with a default listed argname3 <- with(*tmp*, default3) } The value of the whole thing would therefore be (invisibly) the value of the last item in the assignment. Two examples: [A, B, C] <- expr # assign the first three elements of expr to A, B, and C [A, B, C = a + b] <- expr # assign the first two...
2023 Mar 11
3
Multiple Assignment built into the R Interpreter?
...ollowing semantics: > > { > *tmp* <- expr > > # For arguments with no "default" expression, > > argname1 <- *tmp*[[1]] > argname2 <- *tmp*[[2]] > ... > > # For arguments with a default listed > > argname3 <- with(*tmp*, default3) > } > > > The value of the whole thing would therefore be (invisibly) the value of > the last item in the assignment. > > Two examples: > > [A, B, C] <- expr # assign the first three elements of expr to A, > B, and C > >...
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
...; ? ? ? *tmp* <- expr > > ? ? ? # For arguments with no "default" expression, > > ? ? ? argname1 <- *tmp*[[1]] > ? ? ? argname2 <- *tmp*[[2]] > ? ? ? ... > > ? ? ? # For arguments with a default listed > > ? ? ? argname3 <- with(*tmp*, default3) > ? ? } > > > The value of the whole thing would therefore be (invisibly) the > value of > the last item in the assignment. > > Two examples: > > ? ?[A, B, C] <- expr? ?# assign the first three elements of ex...
2023 Mar 11
2
Multiple Assignment built into the R Interpreter?
...gt; # For arguments with no "default" expression, > > > > argname1 <- *tmp*[[1]] > > argname2 <- *tmp*[[2]] > > ... > > > > # For arguments with a default listed > > > > argname3 <- with(*tmp*, default3) > > } > > > > > > The value of the whole thing would therefore be (invisibly) the > > value of > > the last item in the assignment. > > > > Two examples: > > > > [A, B, C] <-...
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
On Sat, 11 Mar 2023 11:11:06 -0500 Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > That's clear, but your proposal violates a very basic property of the > language, i.e. that all statements are expressions and have a value. How about reframing this feature request from multiple assignment (which does go contrary to "everything has only one value, even if it's
2023 Mar 12
2
Multiple Assignment built into the R Interpreter?
...quot;default" expression, > > > > > > argname1 <- *tmp*[[1]] > > > argname2 <- *tmp*[[2]] > > > ... > > > > > > # For arguments with a default listed > > > > > > argname3 <- with(*tmp*, default3) > > > } > > > > > > > > > The value of the whole thing would therefore be (invisibly) the > > > value of > > > the last item in the assignment. > > > > > > Two examples: >...
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
...p* <- expr > > > > # For arguments with no "default" expression, > > > > argname1 <- *tmp*[[1]] > > argname2 <- *tmp*[[2]] > > ... > > > > # For arguments with a default listed > > > > argname3 <- with(*tmp*, default3) > > } > > > > > > The value of the whole thing would therefore be (invisibly) the value of > > the last item in the assignment. > > > > Two examples: > > > > [A, B, C] <- expr # assign the first three elem...
2023 Mar 12
1
Multiple Assignment built into the R Interpreter?
...; >? ? ? ? ? ? argname1 <- *tmp*[[1]] > > >? ? ? ? ? ? argname2 <- *tmp*[[2]] > > >? ? ? ? ? ? ... > > > > > >? ? ? ? ? ? # For arguments with a default listed > > > > > >? ? ? ? ? ? argname3 <- with(*tmp*, default3) > > >? ? ? ? ? } > > > > > > > > >? ? ?The value of the whole thing would therefore be > (invisibly) the > > >? ? ?value of > > >? ? ?the last item in t...
2023 Mar 12
1
Multiple Assignment built into the R Interpreter?
...;- *tmp*[[1]] > > > > argname2 <- *tmp*[[2]] > > > > ... > > > > > > > > # For arguments with a default listed > > > > > > > > argname3 <- with(*tmp*, default3) > > > > } > > > > > > > > > > > > The value of the whole thing would therefore be > > (invisibly) the > > > > value of > >...
2023 Mar 13
1
Multiple Assignment built into the R Interpreter?
...??????? > >??????????? argname2 <- *tmp*[[2]] > > > ???????? > >??????????? ... > > > ???????? > > > > > ???????? > >??????????? # For arguments with a default listed > > > ???????? > > > > > ???????? > >??????????? argname3 <- with(*tmp*, default3) > > > ???????? > >????????? } > > > ???????? > > > > > ???????? > > > > > ???????? > >???? The value of the whole thing would therefore be > > > ??????? (invisibly) the > > > ???????? > >...
2023 Mar 13
1
Multiple Assignment built into the R Interpreter?
...t;??????????? argname2 <- *tmp*[[2]] >>>> ???????? > >??????????? ... >>>> ???????? > > >>>> ???????? > >??????????? # For arguments with a default listed >>>> ???????? > > >>>> ???????? > >??????????? argname3 <- with(*tmp*, default3) >>>> ???????? > >????????? } >>>> ???????? > > >>>> ???????? > > >>>> ???????? > >???? The value of the whole thing would therefore be >>>> ??????? (invisibly) the >>>>...