Hi,
I don´t know which circuit you mean.
So I had to go through all your posts to find a "switch" and guess it´s "prac2.png"...
since this filename exists twice in your thread with different content I refer to post#19. But there´s no "R1".
"prac3.png" of post#19? the switch is not related to R1...
Regarding LTspice switch:
I never used a switch in LTspice. Thus I did an internet search for you.
LTspice includes a large number of excellent FET models, but sometimes you need to simulate a simple switch that opens and closes at specific times or under certain conditions.To insert and configure a switch in LTspice… Insert the symbol for the voltage-controlled switch in your schematic...
It takes endless time to find out what you need. I`ve spent enough time now, thus I give others the opportunity to assist you.
Good luck.
Klaus