Re: [R] Problem with reading data from an UTF-16 database

2018-03-14 Thread Duncan Murdoch
On 14/03/2018 7:15 AM, Thierry Onkelinx wrote: Dear all, We have a problem with reading some characters correctly from an UTF-16 encoded database. The code below givens the correct characters on Ubuntu with the_driver = {ODBC Driver 13 for SQL Server}. On Windows (with the_driver = {SQL

[R] Problem with reading data from an UTF-16 database

2018-03-14 Thread Thierry Onkelinx
Dear all, We have a problem with reading some characters correctly from an UTF-16 encoded database. The code below givens the correct characters on Ubuntu with the_driver = {ODBC Driver 13 for SQL Server}. On Windows (with the_driver = {SQL Server}), special characters like '♂' and '♀' are

[R] Problem while reading Data from a data frame

2013-11-05 Thread Baro
Hi experts, I want to read only the half of my data frame, which I read it from clip board, and save it in a list. I wrote this code but it doesnt work: ck-read.table(clipboard) datalist-list() d-dim(ck)[1] i-1 repeat { datalist-c(datalist,ck[i,]) i-i+2 if(id) {break} } datalist

Re: [R] Problem while reading Data from a data frame

2013-11-05 Thread ONKELINX, Thierry
-boun...@r-project.org] Namens Baro Verzonden: dinsdag 5 november 2013 15:42 Aan: R help Onderwerp: [R] Problem while reading Data from a data frame Hi experts, I want to read only the half of my data frame, which I read it from clip board, and save it in a list. I wrote this code but it doesnt

Re: [R] Problem while reading Data from a data frame

2013-11-05 Thread PIKAL Petr
-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Baro Sent: Tuesday, November 05, 2013 3:42 PM To: R help Subject: [R] Problem while reading Data from a data frame Hi experts, I want to read only the half of my data frame, which I read it from clip board, and save it in a list. I

Re: [R] Problem while reading Data from a data frame

2013-11-05 Thread PIKAL Petr
Sorry shall be datalist-ck[odd,] Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of PIKAL Petr Sent: Tuesday, November 05, 2013 3:56 PM To: Baro; R help Subject: Re: [R] Problem while reading Data from a data

Re: [R] Problem while reading Data from a data frame

2013-11-05 Thread Baro
[mailto:r-help-bounces@r- project.org] On Behalf Of Baro Sent: Tuesday, November 05, 2013 3:42 PM To: R help Subject: [R] Problem while reading Data from a data frame Hi experts, I want to read only the half of my data frame, which I read it from clip board, and save it in a list

Re: [R] Problem while reading Data from a data frame

2013-11-05 Thread PIKAL Petr
Message- From: r-help-boun...@r-project.orgmailto:r-help-boun...@r-project.org [mailto:r-help-bounces@r-mailto:r-help-bounces@r- project.orghttp://project.org] On Behalf Of Baro Sent: Tuesday, November 05, 2013 3:42 PM To: R help Subject: [R] Problem while reading Data from a data frame Hi

Re: [R] Problem while reading Data from a data frame

2013-11-05 Thread Baro
it. It can help you greatly in beginning. Regards Petr *From:* Baro [mailto:babak...@gmail.com] *Sent:* Tuesday, November 05, 2013 4:02 PM *To:* PIKAL Petr *Cc:* R help *Subject:* Re: [R] Problem while reading Data from a data frame thank you for your answers. It works and I have

Re: [R] Problem while reading Data from a data frame

2013-11-05 Thread Bert Gunter
to locate R-intro and go through it. It can help you greatly in beginning. Regards Petr *From:* Baro [mailto:babak...@gmail.com] *Sent:* Tuesday, November 05, 2013 4:02 PM *To:* PIKAL Petr *Cc:* R help *Subject:* Re: [R] Problem while reading Data from a data frame thank you

Re: [R] Problem while reading Data from a data frame

2013-11-05 Thread PIKAL Petr
at hand (as as.numeric() or unclass() give the internal codes). Regards Petr From: Baro [mailto:babak...@gmail.com] Sent: Tuesday, November 05, 2013 4:35 PM To: PIKAL Petr Cc: R help Subject: Re: [R] Problem while reading Data from a data frame I exactly jump over this values and only have

Re: [R] Problem while reading Data from a data frame

2013-11-05 Thread Baro
Petr *Cc:* R help *Subject:* Re: [R] Problem while reading Data from a data frame I exactly jump over this values and only have the integer values, henc I want to read only odd rows On Tue, Nov 5, 2013 at 7:31 AM, PIKAL Petr petr.pi...@precheza.cz wrote: Hi It means that what you read

[R] Problem in reading data

2009-12-01 Thread Megh
In my Excel file, I have data in following format : Feb-07 38.49 Mar-07 39.95 Apr-07 37.47 May-07 35.77 Jun-07 32.96 Jul-07 33.27 I tried to copy this data as a time series using following code : library(zoo) dat - read.zoo(file=clipboard, format=%m-%y) However getting following error :

Re: [R] Problem in reading data

2009-12-01 Thread Gabor Grothendieck
Specify that your input is of class yearmon (as opposed to Date class) and also correct the format specification as per the percent codes in ?strptime library(zoo) z - read.zoo(clipboard, FUN = as.yearmon, format = %b-%y) On Tue, Dec 1, 2009 at 12:55 PM, Megh megh700...@yahoo.com wrote: In

Re: [R] problem in reading data

2009-05-01 Thread tedzzx
cases the missing values have been replaced by NAs so you can look for those. On Thu, Apr 30, 2009 at 9:28 AM, tedzzx zengzhenx...@gmail.com wrote: Dear R users I am runing into a problem in reading data in R This is the error information a-read.table(tt_mb_200409.txt,as.is=T) Error

[R] problem in reading data

2009-04-30 Thread tedzzx
Dear R users I am runing into a problem in reading data in R This is the error information a-read.table(tt_mb_200409.txt,as.is=T) Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 1653997 did not have 5 elements It seams that some lines don't have equal

Re: [R] problem in reading data

2009-04-30 Thread Dimitri Liakhovitski
What kind of .txt file is it? If it's a tab-delimited file, try read.delim(tt_mb_200409.txt) Dimitri On Thu, Apr 30, 2009 at 9:28 AM, tedzzx zengzhenx...@gmail.com wrote: Dear R users I am runing into a problem in reading data in R This is the error information a-read.table(tt_mb_200409.txt

Re: [R] problem in reading data

2009-04-30 Thread jim holtman
In some cases the missing values have been replaced by NAs so you can look for those. On Thu, Apr 30, 2009 at 9:28 AM, tedzzx zengzhenx...@gmail.com wrote: Dear R users I am runing into a problem in reading data in R This is the error information a-read.table(tt_mb_200409.txt,as.is=T