Re: [R] adding new level with new values and transpose the dataframe

2020-07-30 Thread Rasmus Liland
On 2020-07-30 18:07 +0300, Engin Yılmaz wrote: | El jueves, 30 de julio de 2020, Rasmus Liland escribió: | | On 2020-07-30 21:13 +1000, Jim Lemon wrote: | | | On Thu, Jul 30, 2020 at 8:33 PM Engin Yılmaz wrote: | | | | | | | | I have 3 different factors for every | | | | month in my dataframe.The c

Re: [R] adding new level with new values and transpose the dataframe

2020-07-30 Thread Rasmus Liland
Hi Engin, On 2020-07-30 21:13 +1000, Jim Lemon wrote: | On Thu, Jul 30, 2020 at 8:33 PM Engin Yılmaz wrote: | | | | I have 3 different factors for every | | month in my dataframe.The column of | | classification description has 3 | | factors. | | | | Question 1: | | I need to add a new factor t

Re: [R] adding new level with new values and transpose the dataframe

2020-07-30 Thread Jim Lemon
Hi Engin, If you know what all the levels are, you can specify these in the format command: Classification_Description<-factor(Classification_Description, levels=c("Total Surplus (+) or Deficit (-)","Borrowing from the Public", "By other means")) This ensures that all the levels are encoded ev

[R] adding new level with new values and transpose the dataframe

2020-07-30 Thread Engin Yılmaz
* Record Date* *Classification Description* *Current Month Budget Amount* 2020-06-30 Total Surplus (+) or Deficit (-) -864,074,068,492 2020-06-30 Borrowing from the Public 716,272,172,707 2020-06-30 By Other Means 420,704,500,379 2020-05-31 Borrowing from the Public 759