It's easier to help you if you include a simple [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input and desired output that can be used to test and verify possible solutions.
– MrFlickMar 10 '21 at 19:05
1
You mean the scaled basis functions; the spline would be the sum over the scaled basis functions. I don't know of a canned way, but I doubt it would be difficult to implement with tools already available in my {gratia} or directly with the {mgcv} . If you can prepare a minimal example I'll take a look this evening
– Gavin SimpsonMar 11 '21 at 18:49