David, I don't think that this is the case.
When I do the calculation like this subnet_MYSUBNET <- my_function(MYSUBNET), i.e. assigning a variable by hand to each function result, all is fine. Am 9. April 2021 17:22:05 MESZ schrieb David Winsemius <[email protected]>: > >On 4/9/21 5:21 AM, Wolfgang Grond wrote: >> Greg, >> >> here I get the error message: >> >> Error my_function(val) : >> >> cannot find function my_function. > >I'm guessing that you are following someone else's blog and have failed > >one of two things: > >- understand that what was meant by the author was that you were >assumed >to have a function in mind to use for a programming strategy being >illustrated > >- or you were copying and pasting only part of a blog and failed to >paste in the code from above where there was earlier code defining >`my_function` > >> >> Am 9. April 2021 12:35:40 MESZ schrieb Greg Minshall ><[email protected]>: >>> Wolfgang, >>> >>>> result <- assign(paste("subnet_", val, sep = "") >>>> >>>> result <- my_function(val) >>> i don't understand why you are twice assigning to =result=. also, >the >>> first assignment doesn't seem well formatted (t's missing a value?). >>> >>> did you mean something like >>> >>> : assign(paste("subnet_", val, sep = ""), my_function(val)) >>> >>> (which i would think should work)? >>> >>> cheers, Greg >>> >>> ______________________________________________ >>> [email protected] mailing list -- To UNSUBSCRIBE and more, see >>> https://stat.ethz.ch/mailman/listinfo/r-help >>> PLEASE do read the posting guide >>> http://www.R-project.org/posting-guide.html >>> and provide commented, minimal, self-contained, reproducible code. >> >> - >> Numberland - Dr. Wolfgang Grond >> Diplomphysiker, TQM-Assessor (EFQM) >> Six Sigma Green Belt >> Ingenieurbüro / Engineering Consultancy >> Lohfeld 20, DE-95326 Kulmbach, Germany >> Phone: +49 9221 6919131 >> Fax: +49 9221 6919156 >> Mail: [email protected] >> URL: http://www.numberland.com >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> [email protected] mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > >______________________________________________ >[email protected] mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] ______________________________________________ [email protected] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

