Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Timeline for Find the result of some assignment statements

Current License: CC BY-SA 4.0

16 events
when toggle format what by license comment
Sep 23, 2020 at 10:12 comment added Cong Chen Hi Giuseppe, I had a look in the R chatroom but didn't see how to communicate. Maybe I need more Internet points.
Sep 23, 2020 at 9:48 comment added JDL I'm pretty sure you can shave a lot off here using functions like make.names.
Sep 22, 2020 at 17:46 comment added Cong Chen Many thanks for the tips! Oh and maybe I can use a .X as my input variable so it doesn't show up in ls().
Sep 22, 2020 at 17:01 comment added Giuseppe I do know there's an answer less than 100 bytes so keep trying interesting golfs! :-)
Sep 22, 2020 at 16:58 comment added Giuseppe Nice! A couple of things: parse is perfectly fine taking a text vector and it will evaluate each element in turn. text= can be shortened to t=. And you don't need to reassign i, you can use the gsub directly in the parse, down to 145 bytes!
Sep 22, 2020 at 16:31 comment added Cong Chen Undeleted now! Still using the function's local environment.
Sep 22, 2020 at 16:30 history undeleted Cong Chen
Sep 22, 2020 at 16:30 history edited Cong Chen CC BY-SA 4.0
added 150 characters in body
Sep 22, 2020 at 16:28 history deleted Cong Chen via Vote
Sep 22, 2020 at 16:25 history undeleted Cong Chen
Sep 22, 2020 at 16:25 history edited Cong Chen CC BY-SA 4.0
added 150 characters in body
Sep 22, 2020 at 15:55 history deleted Cong Chen via Vote
Sep 22, 2020 at 14:32 comment added Giuseppe since this isn't actually an answer, I'd recommend deleting it before it accumulates any downvotes. You can edit in the corrected version and undelete it later! Feel free to come talk to us in the R chatroom for help! I think using a list to store the name-value pairs will be a good approach, though :-)
Sep 22, 2020 at 12:22 history edited Cong Chen CC BY-SA 4.0
added 89 characters in body
Sep 22, 2020 at 11:45 comment added Razetime your answer needs to work even when keywords are used as names. function = 3 fails: Try it online!
Sep 22, 2020 at 11:37 history answered Cong Chen CC BY-SA 4.0
toggle format

AltStyle によって変換されたページ (->オリジナル) /