Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to create a new datframe using paste0 function and i need to copy an existing dataframe into it.
e.g.

ty <-"min" 
If (nrow(paste0("myolddata", ty) >1)
{
Paste0("mynewdata",ty) <- paste0("myolddata", ty)
}

But this paste0 is just returning a string and not able to create/ access a dataframe.

A help on understanding this is much appreciated.

Thanks. 


What I have tried:

Tried paste0 function and assign function.
Posted
Comments
Joanny Camden 12-Oct-21 20:04pm    
⁸⁹

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900