Re: [R] Please guide

2022-07-11 Thread Richard O'Keefe
ARGH! Now I understand less than ever! Previously you said that you HAD a file and that you got an error message when you tried to read and process it. You showed us the line of code. You sent us what was supposed to be a copy of the file! Now you say that - is not your code - the person who di

Re: [R] Please guide

2022-07-11 Thread Muhammad Zubair Chishti
Dear Respected Sir, My exact question is how to develop "DY_Table.xlsx" for the following code: (While considering [,-1])*100) con = as.matrix(read_excel("DY_Table.xlsx")[,-1])*100 I asked that code writer about it, he just reply to write the table. So, I need to know how to write the table fo

Re: [R] Please guide

2022-07-11 Thread Richard O'Keefe
(1) Your sample code refers to a file DY_Table.xlsx but the file you attached to a later message is called Data_oil_agri.xlsx and I find it hard to believe that they are the same file. (2) gmail offered me two different ways to download the file, but neither of them worked. Fortun

Re: [R] Please guide

2022-07-10 Thread Avi Gross via R-help
inal Message- From: Muhammad Zubair Chishti To: Jeff Newmiller ; r-help@r-project.org Sent: Mon, Jul 11, 2022 12:45 am Subject: Re: [R] Please guide Dear Jeff, 1) Being a PhD student, I am obliged to pay deep homage to all experts like you on this forum who provide free knowledge. 2) Since the da

Re: [R] Please guide

2022-07-10 Thread Muhammad Zubair Chishti
Dear Jeff, 1) Being a PhD student, I am obliged to pay deep homage to all experts like you on this forum who provide free knowledge. 2) Since the data is too large and I cannot cut it, I have no other suitable option to send my full data. 3) This is the same file that I used in the codes mentione

Re: [R] Please guide

2022-07-09 Thread Muhammad Zubair Chishti
Dear Experts, A kind reminder. Please help me. On Fri, 8 Jul 2022, 21:56 Muhammad Zubair Chishti, wrote: > > *Dear Experts,* > *Greetings from Pakistan*. > *When I run the following code in R* > library(frequencyConnectedness) > library(readxl) > ##Add data here## > Data <- read_excel("Data_oil

[R] Please guide

2022-07-08 Thread Muhammad Zubair Chishti
*Dear Experts,* *Greetings from Pakistan*. *When I run the following code in R* library(frequencyConnectedness) library(readxl) ##Add data here## Data <- read_excel("Data_oil_agri.xlsx", sheet = "Sheet1") Data <- Data[,2:22] Data=na.omit(Data) Bnames=colnames(Data) lags=VARselect(Data, lag.max = 1

Re: [R] Please guide -- UTF-8 locale setting fails on Windows on writing

2016-03-28 Thread Sunny Singha
Milan, Anwer to your queries: -- But how do you read back the contents of the file? You need to specify the encoding when reading it too. Answer: I read back as stated in 'Case 2' -- Are you sure the notepad saved the text as UTF-8? Answer: Yes. Regards, Sunny On Mon, Mar 28, 2016 at 9:58 PM, Mi

Re: [R] Please guide -- UTF-8 locale setting fails on Windows on writing

2016-03-28 Thread Milan Bouchet-Valat
Le lundi 28 mars 2016 à 20:12 +0530, Sunny Singha a écrit : > Milan, > Ok, Let me take a case of facebook. I used Rfacebook package >  to get posts (getPost()) which returns list() of data frames(post, > comments, Likes) > > let me demonstrate 2 cases of read and write just as you suggested, > Cas

Re: [R] Please guide -- UTF-8 locale setting fails on Windows on writing

2016-03-28 Thread Sunny Singha
Milan, Ok, Let me take a case of facebook. I used Rfacebook package to get posts (getPost()) which returns list() of data frames(post, comments, Likes) let me demonstrate 2 cases of read and write just as you suggested, Case 1: Lets say one of the facebook comment has below string value,

Re: [R] Please guide -- UTF-8 locale setting fails on Windows on writing

2016-03-28 Thread Milan Bouchet-Valat
Le lundi 28 mars 2016 à 19:16 +0530, Sunny Singha a écrit : > Hi, > I think I'm experiencing an issue regarding system Locale. I have > exported '.csv' formatted data frames gathered from various social > media platforms like facebook/twitter/G+, etc. > > I observe many variable/columns consists o

[R] Please guide -- UTF-8 locale setting fails on Windows on writing

2016-03-28 Thread Sunny Singha
Hi, I think I'm experiencing an issue regarding system Locale. I have exported '.csv' formatted data frames gathered from various social media platforms like facebook/twitter/G+, etc. I observe many variable/columns consists of strings formatted similar to below: " " As expected and I confirmed,

Re: [R] Please guide -- Error during export in csv format

2016-03-21 Thread Duncan Murdoch
On 21/03/2016 7:53 AM, Sunny Singha wrote: Please guide, I'm exporting data in '.csv' format in the Windows user directory, I have full access to. The write operation happens within a for loop. Each iteration exports data in csv format in the user directory. The issue is that the data gets expo

Re: [R] Please guide -- Error during export in csv format

2016-03-21 Thread Sunny Singha
(Re-posting after including R-help) Thanks Ben, Changing './' and '.' and shQuote() didn't work. I'm trying dQuote(). For your information the 'name' value retrieved is --> Hội những người đồng hành cùng I guess the string is in Vietnamese language. As you would have observed in error message it

Re: [R] Please guide -- Error during export in csv format

2016-03-21 Thread Ben Tupper
Hi, You are defeating the purpose of the file.path() function by providing a path separator in the first argument; you used './', but try instead... my.file1 <- file.path('.', paste0('likes','_',name,'_',grp_id,'.csv')) Also, there appear to be spaces in the 'name' argument - that might be caus

[R] Please guide -- Error during export in csv format

2016-03-21 Thread Sunny Singha
Please guide, I'm exporting data in '.csv' format in the Windows user directory, I have full access to. The write operation happens within a for loop. Each iteration exports data in csv format in the user directory. The issue is that the data gets exported for all the 9 iterations but fails for 1