Copy array & keep data formats

rstudio

#1

Hi, i am new to R & just started learning.
I tried a simple passing of array to another variable, which works, but 1 column in the array is in percent.
The format was not kept into the variable I pass the array.

SortedTable<-arrange(SourceTable)

Is there any syntax/command I can use to ensure data formats are kept when passing the data to another variable?

Appreciate your inputs.


#2

By a simple passing of array to another variable, do you just mean assigning an object to a new name? I'm struggling to replicate your issue.

Could you ask this with a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.