Re: [R] Long Format data

2021-08-05 Thread Admire Tarisirayi Chirume
Thank you very much, the code worked the trick. Thank you, i appreciate. Alternative email: addtar...@icloud.com/tchir...@rbz.co.zw Skype: admirechirume Call: +263773369884 whatsapp: +818099861504 On Thu, Aug 5, 2021 at 11:53 AM Jim Lemon wrote: > Hi Admire, > I think rep_n_stack in the pretty

Re: [R] Long Format data

2021-08-05 Thread Jim Lemon
Hi Admire, I think rep_n_stack in the prettyR package may do what you want: # download and install the prettyR package install.packages("prettyR") # load the prettyR package library(prettyR) # read in your data ATCdf<-read.csv("BOP_All_Countries.csv",stringsAsFactors=TRUE) # convert the values you

Re: [R] Long Format data

2021-08-03 Thread Jim Lemon
Hi Admire, Neither the R script nor CSV file was attached to your message. Both should be plain text files and are unlikely to be rejected by the help list mail server. Perhaps check your email client. Jim On Tue, Aug 3, 2021 at 5:09 PM Admire Tarisirayi Chirume wrote: > > Hello, i hope you are

[R] Long Format data

2021-08-03 Thread Admire Tarisirayi Chirume
Hello, i hope you are well. May you kindly help me to structure data in the folder attached herewith in file BOP_All_Countries.csv. I am doing panel data analysis. *I need it to be structured as it is on the file R_help.csv. * Please kindly see the r-script below *(r_help.R)* that i ran which did