Re: [R] Handling special characters in reading and writing to CSV

2014-02-07 Thread Venkata Kirankumar
Hi Ista,
I tried its working fine for me.

thank you

Regards,
D V Kiran Kumar


On Thu, Feb 6, 2014 at 11:13 PM, Ista Zahn istaz...@gmail.com wrote:

 Hi Venkata,

 That example reads into R fine for me. I copied and saved it as
 tmp.csv and simply read it in with

 dat - read.csv(tmp.csv)

 which gave me a data.frame with one row and 78 columns as expected.
 This worked in three different environments (linux, mac, windows), and
 with different versions of R. Does it not work for you? If not please
 post the results of running sessionInfo() so we can see what version
 of R etc. you are using.

 Best,
 Ista

 On Thu, Feb 6, 2014 at 3:34 AM, Venkata Kirankumar
 kiran4u2...@gmail.com wrote:
  Dear Ista,
  I copied my data below
 
 
 UNIQUEID,FINDINGSID,ORGNUMRES,STNUMRES,CONVRES,VISITDY,ORGCHARRES,STCHARRES,NOMINALDAY,NOMINALDATE,MEASRMTDAY,MEASRMTDATE,INPUTDATE,NEOPLASMNAME,TUMORCLASSNAME,CATDOMAIN,CATDID,SPECIMENTYP,SPTDID,PCDOMAIN,USUBJID,PCDID,TESTDOMAIN,TSTDID,ORRESUNIT,RESDID,SUBJECTSID,STDRESUNIT,STDRDID,CONVRESUNIT,COVRDID,CUSTOMFIELD5,GRPLABEL,GRPNUMBER,SEX,SEXDID,TRIALGROUPSID,SPECIMENLOC,SPECIMENCOND,SPECIMENCOND1,SPECIMENCOND2,SPECIMENCOND3,SEVERITY,COMM,ASPECT,CAUSEOFDEATH,DERIVEFLG,PHASENAME,PHASENAMEDID,ENTITY,ENTITYDID,SECONDARYFLAG,CUSTOMFIELD0,CUSTOMFIELD4,CUSTOMFIELD6,CUSTOMFIELD9,SOURCE,RESCATEGORY,OFSPSEX,OFFSPNUM,FILEID,ANALYTEID,ANALYTEDID,DATETIME,ELTM,ENDY,NOMDAYOFPHASE,OFSPSEXDID,PLTIMEPOINT,STATUSFLAG,ANABIOREGION,TESTMETHOD,FINDLOC,CUSTOMFIELD8,TIMESLOTDESC,TIMESLOTCODE,PTPTN,TPTNUM
  3073004,3073004,,37.800,37.800,61,© ® ™ ℠ ℗ 
  ₳ ฿
 ₵ ¢
  ₡ ₢ ₠ $ ₫ ৳ ₯ € ƒ ₣ ₲ ₴ ₭ ₺ ℳ ₥ ₦ ₧ ₱ 
  ₰ £ ₹ ₨ ₪ ₸ ₮ ₩ ¥ ៛,© ® ™ ℠ ℗ ₳ ฿
 ₵ ¢
  ₡ ₢ ₠ $ ₫ ৳ ₯ € ƒ ₣ ₲ ₴ ₭ ₺ ℳ ₥ ₦ ₧ ₱ 
  ₰ £ ₹ ₨ ₪ ₸ ₮ ₩ ¥
  ៛,61,,,BW,apcu102881`~!@#$%^*()-_+={[}]|:;',.?/,16082,© ®
 ™ ℠
  ℗ ₳ ฿ ₵ ¢ ₡ ₢ ₠ $ ₫ ৳ ₯ € ƒ ₣ ₲ ₴ ₭ ₺ ℳ 
  ₥ ₦ ₧ ₱ ₰ £ ₹ ₨ ₪ ₸ ₮ ₩ ¥ ៛,,© ®
 ™ ℠
  ℗ ₳ ฿ ₵ ¢ ₡ ₢ ₠ $ ₫ ৳ ₯ € ƒ ₣ ₲ ₴ ₭ ₺ ℳ 
  ₥ ₦ ₧ ₱ ₰ £ ₹ ₨ ₪ ₸ ₮ ₩ ¥
  ៛,45741,38733,© ® ™ ℠ ℗ ₳ ฿ ₵ ¢ ₡ ₢ ₠ $ ₫ ৳ ₯ 
  € ƒ ₣ ₲ ₴ ₭ ₺ ℳ ₥ ₦ ₧ ₱ ₰
 £ ₹
  ₨ ₪ ₸ ₮ ₩ ¥ ៛,,© ® ™ ℠ ℗ ₳ ฿ ₵ ¢ ₡ ₢ ₠ $ 
  ₫ ৳ ₯ € ƒ ₣ ₲ ₴ ₭ ₺ ℳ ₥ ₦ ₧ ₱ ₰
 £ ₹
  ₨ ₪ ₸ ₮ ₩ ¥
 
 ៛,,USB102881`~!@#$%^*()-_+={[}]|:;',.?/,SC51`~!@#$%^*()-_+={[}]|:;',.?/:
  SET 1€ é í ñ ó ú ü ¿ á é í ó ú ü
 
 ñ,SC51`~!@#$%^*()-_+={[}]|:;',.?/,M,42133,14452631,A,,,©
  ® ™ ℠ ℗ ₳ ฿ ₵ ¢ ₡ ₢ ₠ $ ₫ ৳ ₯ € ƒ ₣ ₲ ₴ 
  ₭ ₺ ℳ ₥ ₦ ₧ ₱ ₰ £ ₹ ₨ ₪ ₸ ₮ ₩ ¥
 ៛,
 
  Thanks  Regards,
  D V Kiran Kumar
 
 
  On Wed, Feb 5, 2014 at 5:05 PM, Ista Zahn istaz...@gmail.com wrote:
 
  Hi Kiran,
 
  Please post a reproducible example, either by pasting a sample of
  comma separated values into you message, posting a .csv file somewhere
  where we can download it. Without an example all we can do is guess
  what your problem might be.
 
  Best,
  Ista
 
  On Wed, Feb 5, 2014 at 5:10 AM, Venkata Kirankumar
  kiran4u2...@gmail.com wrote:
   Hi David,
  
  
   In CSV RFC 4180 format if any ' or  character is there then character
   will
   go with escape character so CSV will distinguish properly.
  
  
  
   I will try with read.fwf once because with redline I am facing same
   issue.
  
   Thanks  Regards,
   D V Kiran Kumar.
  
  
   On Wed, Feb 5, 2014 at 3:14 AM, David Winsemius
   dwinsem...@comcast.netwrote:
  
  
   On Feb 4, 2014, at 7:58 AM, Venkata Kirankumar wrote:
  
Hi All,
   
   
I have some data with different special characters, newline
character,
   and
different language characters in a CSV file like `~!@#$%^*|
()-_+={[}]|\:;',.?/
in data, while I am trying to read this CSV and trying to do
   calculations I
am not able to get this data as there in single cell. I found
something
like RFC 4180 format can help to solve this problem.
   
   
   
If anyone can give suggestion related to handling these special
   characters
it will be help full for me
   
  
   I'm having a difficult time understanding your expectations and
 thedata
   situation. If it's a csv file,  then how can all three of comma,
   single-quote, and double-quote be properly distinguished when
 they
   are
   also part of the data?
  
  
   You might consider using readLines (from base) or read.fwf (from the
   utils
   package)
  
  
  
   
   
Thanks in advance,
   
D V Kiran Kumar
   
  [[alternative HTML version deleted]]
   
__
R-help@r-project.org mailing list
https://stat.ethz.ch

Re: [R] Handling special characters in reading and writing to CSV

2014-02-06 Thread Venkata Kirankumar
Dear Ista,
I copied my data below

UNIQUEID,FINDINGSID,ORGNUMRES,STNUMRES,CONVRES,VISITDY,ORGCHARRES,STCHARRES,NOMINALDAY,NOMINALDATE,MEASRMTDAY,MEASRMTDATE,INPUTDATE,NEOPLASMNAME,TUMORCLASSNAME,CATDOMAIN,CATDID,SPECIMENTYP,SPTDID,PCDOMAIN,USUBJID,PCDID,TESTDOMAIN,TSTDID,ORRESUNIT,RESDID,SUBJECTSID,STDRESUNIT,STDRDID,CONVRESUNIT,COVRDID,CUSTOMFIELD5,GRPLABEL,GRPNUMBER,SEX,SEXDID,TRIALGROUPSID,SPECIMENLOC,SPECIMENCOND,SPECIMENCOND1,SPECIMENCOND2,SPECIMENCOND3,SEVERITY,COMM,ASPECT,CAUSEOFDEATH,DERIVEFLG,PHASENAME,PHASENAMEDID,ENTITY,ENTITYDID,SECONDARYFLAG,CUSTOMFIELD0,CUSTOMFIELD4,CUSTOMFIELD6,CUSTOMFIELD9,SOURCE,RESCATEGORY,OFSPSEX,OFFSPNUM,FILEID,ANALYTEID,ANALYTEDID,DATETIME,ELTM,ENDY,NOMDAYOFPHASE,OFSPSEXDID,PLTIMEPOINT,STATUSFLAG,ANABIOREGION,TESTMETHOD,FINDLOC,CUSTOMFIELD8,TIMESLOTDESC,TIMESLOTCODE,PTPTN,TPTNUM
3073004,3073004,,37.800,37.800,61,© ® ™ ℠ ℗ ₳ 
฿ ₵ ¢
₡ ₢ ₠ $ ₫ ৳ ₯ € ƒ ₣ ₲ ₴ ₭ ₺ ℳ ₥ ₦ ₧ ₱ ₰ £ 
₹ ₨ ₪ ₸ ₮ ₩ ¥ ៛,© ® ™ ℠ ℗ ₳ ฿ ₵ ¢
₡ ₢ ₠ $ ₫ ৳ ₯ € ƒ ₣ ₲ ₴ ₭ ₺ ℳ ₥ ₦ ₧ ₱ ₰ £ 
₹ ₨ ₪ ₸ ₮ ₩ ¥
៛,61,,,BW,apcu102881`~!@#$%^*()-_+={[}]|:;',.?/,16082,© ® ™
℠ ℗ ₳ ฿ ₵ ¢ ₡ ₢ ₠ $ ₫ ৳ ₯ € ƒ ₣ ₲ ₴ ₭ ₺ ℳ 
₥ ₦ ₧ ₱ ₰ £ ₹ ₨ ₪ ₸ ₮ ₩ ¥ ៛,,© ®
™ ℠ ℗ ₳ ฿ ₵ ¢ ₡ ₢ ₠ $ ₫ ৳ ₯ € ƒ ₣ ₲ ₴ ₭ ₺ 
ℳ ₥ ₦ ₧ ₱ ₰ £ ₹ ₨ ₪ ₸ ₮ ₩ ¥
៛,45741,38733,© ® ™ ℠ ℗ ₳ ฿ ₵ ¢ ₡ ₢ ₠ $ ₫ ৳ ₯ € 
ƒ ₣ ₲ ₴ ₭ ₺ ℳ ₥ ₦ ₧ ₱ ₰ £ ₹
₨ ₪ ₸ ₮ ₩ ¥ ៛,,© ® ™ ℠ ℗ ₳ ฿ ₵ ¢ ₡ ₢ ₠ $ ₫ 
৳ ₯ € ƒ ₣ ₲ ₴ ₭ ₺ ℳ ₥ ₦ ₧ ₱ ₰ £
₹ ₨ ₪ ₸ ₮ ₩ ¥
៛,,USB102881`~!@#$%^*()-_+={[}]|:;',.?/,SC51`~!@#$%^*()-_+={[}]|:;',.?/:
SET 1€ é í ñ ó ú ü ¿ á é í ó ú ü
ñ,SC51`~!@#$%^*()-_+={[}]|:;',.?/,M,42133,14452631,A,,,©
® ™ ℠ ℗ ₳ ฿ ₵ ¢ ₡ ₢ ₠ $ ₫ ৳ ₯ € ƒ ₣ ₲ ₴ ₭ 
₺ ℳ ₥ ₦ ₧ ₱ ₰ £ ₹ ₨ ₪ ₸ ₮ ₩ ¥ ៛,

Thanks  Regards,
D V Kiran Kumar


On Wed, Feb 5, 2014 at 5:05 PM, Ista Zahn istaz...@gmail.com wrote:

 Hi Kiran,

 Please post a reproducible example, either by pasting a sample of
 comma separated values into you message, posting a .csv file somewhere
 where we can download it. Without an example all we can do is guess
 what your problem might be.

 Best,
 Ista

 On Wed, Feb 5, 2014 at 5:10 AM, Venkata Kirankumar
 kiran4u2...@gmail.com wrote:
  Hi David,
 
 
  In CSV RFC 4180 format if any ' or  character is there then character
 will
  go with escape character so CSV will distinguish properly.
 
 
 
  I will try with read.fwf once because with redline I am facing same
 issue.
 
  Thanks  Regards,
  D V Kiran Kumar.
 
 
  On Wed, Feb 5, 2014 at 3:14 AM, David Winsemius dwinsem...@comcast.net
 wrote:
 
 
  On Feb 4, 2014, at 7:58 AM, Venkata Kirankumar wrote:
 
   Hi All,
  
  
   I have some data with different special characters, newline character,
  and
   different language characters in a CSV file like `~!@#$%^*|
   ()-_+={[}]|\:;',.?/
   in data, while I am trying to read this CSV and trying to do
  calculations I
   am not able to get this data as there in single cell. I found
 something
   like RFC 4180 format can help to solve this problem.
  
  
  
   If anyone can give suggestion related to handling these special
  characters
   it will be help full for me
  
 
  I'm having a difficult time understanding your expectations and thedata
  situation. If it's a csv file,  then how can all three of comma,
  single-quote, and double-quote be properly distinguished when they
 are
  also part of the data?
 
 
  You might consider using readLines (from base) or read.fwf (from the
 utils
  package)
 
 
 
  
  
   Thanks in advance,
  
   D V Kiran Kumar
  
 [[alternative HTML version deleted]]
  
   __
   R-help@r-project.org mailing list
   https://stat.ethz.ch/mailman/listinfo/r-help
   PLEASE do read the posting guide
  http://www.R-project.org/posting-guide.html
   and provide commented, minimal, self-contained, reproducible code.
 
  David Winsemius
  Alameda, CA, USA
 
 
 
  [[alternative HTML version deleted]]
 
  __
  R-help@r-project.org mailing list
  https://stat.ethz.ch/mailman/listinfo/r-help
  PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
  and provide commented, minimal, self-contained, reproducible code.


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained

Re: [R] Handling special characters in reading and writing to CSV

2014-02-05 Thread Venkata Kirankumar
Hi David,


In CSV RFC 4180 format if any ' or  character is there then character will
go with escape character so CSV will distinguish properly.



I will try with read.fwf once because with redline I am facing same issue.

Thanks  Regards,
D V Kiran Kumar.


On Wed, Feb 5, 2014 at 3:14 AM, David Winsemius dwinsem...@comcast.netwrote:


 On Feb 4, 2014, at 7:58 AM, Venkata Kirankumar wrote:

  Hi All,
 
 
  I have some data with different special characters, newline character,
 and
  different language characters in a CSV file like `~!@#$%^*|
  ()-_+={[}]|\:;',.?/
  in data, while I am trying to read this CSV and trying to do
 calculations I
  am not able to get this data as there in single cell. I found something
  like RFC 4180 format can help to solve this problem.
 
 
 
  If anyone can give suggestion related to handling these special
 characters
  it will be help full for me
 

 I'm having a difficult time understanding your expectations and thedata
 situation. If it's a csv file,  then how can all three of comma,
 single-quote, and double-quote be properly distinguished when they are
 also part of the data?


 You might consider using readLines (from base) or read.fwf (from the utils
 package)



 
 
  Thanks in advance,
 
  D V Kiran Kumar
 
[[alternative HTML version deleted]]
 
  __
  R-help@r-project.org mailing list
  https://stat.ethz.ch/mailman/listinfo/r-help
  PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
  and provide commented, minimal, self-contained, reproducible code.

 David Winsemius
 Alameda, CA, USA



[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Handling special characters in reading and writing to CSV

2014-02-04 Thread Venkata Kirankumar
Hi All,


I have some data with different special characters, newline character, and
different language characters in a CSV file like `~!@#$%^*|
()-_+={[}]|\:;',.?/
in data, while I am trying to read this CSV and trying to do calculations I
am not able to get this data as there in single cell. I found something
like RFC 4180 format can help to solve this problem.



If anyone can give suggestion related to handling these special characters
it will be help full for me



Thanks in advance,

D V Kiran Kumar

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Problem with converting F to FALSE

2013-09-05 Thread Venkata Kirankumar
Hi,
I have a peculier problem in R-Project that is when my CSV file have one
column with all values as 'F' the R-Project converting this 'F' to FALSE.
Can some one please suggest how to stop this convertion. Because I want to
use 'F' in my calculations and show it in screen. for example my data is
like

sex  group
F   1
F   2
F   3

but when I use read.csv and load the csv file data is converting it to

sex  group
FALSE   1
FALSE   2
FALSE   3
but i want it as source data like

sex group
F  1
F  2
F  3


Thanks in advance,
D V Kiran Kumar

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Problem with converting F to FALSE

2013-09-05 Thread Venkata Kirankumar
Thank you everyone
 I got actual values in my view




On Thu, Sep 5, 2013 at 7:31 PM, Keith Jewell
keith.jew...@campdenbri.co.ukwrote:

 Depending what you're doing with the data, you might want
 colClasses=c(factor,**numeric)


 On 05/09/2013 13:58, Joshua Wiley wrote:

 Hi,

 You can either manually specify colClasses or the asis argument.  See
 ?read.csv for more details.

 If you just had those two columns, something like:

   read.table(header = TRUE, text = 
   sex group
   F 1
   T 2
   , colClasses = c(character, integer))

 Cheers,

 Josh


 read.csv(file.csv, colClasses = c(character, integer))




 On Thu, Sep 5, 2013 at 5:44 AM, Venkata Kirankumar
 kiran4u2...@gmail.com  wrote:

 Hi,
 I have a peculier problem in R-Project that is when my CSV file have one
 column with all values as 'F' the R-Project converting this 'F' to FALSE.
 Can some one please suggest how to stop this convertion. Because I want
 to
 use 'F' in my calculations and show it in screen. for example my data is
 like

 sex  group
 F   1
 F   2
 F   3

 but when I use read.csv and load the csv file data is converting it to

 sex  group
 FALSE   1
 FALSE   2
 FALSE   3
 but i want it as source data like

 sex group
 F  1
 F  2
 F  3


 Thanks in advance,
 D V Kiran Kumar


 __**
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/**listinfo/r-helphttps://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/**
 posting-guide.html http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Problem with writing a CSV file in UTF-8 formate

2010-06-22 Thread venkata kirankumar
Hi all,
I have a problem with writing a *.CSV file in UTF-8 formate

I tried to write a dataframe named  dfPREINDX to the new file named
preindx.csv in below formate

write.table(dfPREINDX,PreIndex,fileEncoding=UTF-8,sep=|,row.names=FALSE)

but its throed an error  like

Error in write.table(dfPREINDX, preindx.csv, fileEncoding = UTF-8, sep =
|,  :
  unused argument(s) (fileEncoding = UTF-8)

can any one please help me how to create a file in UTF-8  formate.


Thanks in advance
kiran.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Problem with writing a CSV file in UTF-8 formate

2010-06-22 Thread venkata kirankumar
Hi Murdoch,
first of all thanks allot for your suggestion.
I tried the way you suggested but while opening in notepad and checking its
showing  that the file is in ANSI
can any thing else I can do for this

Thanks in advance
kiran
On Tue, Jun 22, 2010 at 7:02 PM, Duncan Murdoch murdoch.dun...@gmail.comwrote:

 On 22/06/2010 9:00 AM, venkata kirankumar wrote:

 Hi all,
 I have a problem with writing a *.CSV file in UTF-8 formate

 I tried to write a dataframe named  dfPREINDX to the new file named
 preindx.csv in below formate


 write.table(dfPREINDX,PreIndex,fileEncoding=UTF-8,sep=|,row.names=FALSE)

 but its throed an error  like

 Error in write.table(dfPREINDX, preindx.csv, fileEncoding = UTF-8, sep
 =
 |,  :
  unused argument(s) (fileEncoding = UTF-8)

 can any one please help me how to create a file in UTF-8  formate.


 The write.table has no fileEncoding argument.  To write to a non-native
 encoding, you need to open a connection with that encoding, and write to
 that.  For example:

 con - file(preindx.csv, open=w, encoding=UTF-8)
 write.table(dfPREINDX, con, sep=|,row.names=FALSE)
 close(con)

 Duncan Murdoch




[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with not in in subseting dataframe

2010-05-26 Thread venkata kirankumar
Hi all,
I have a problem while subsetting a dataframe that is

while I am using  *%in%* condition like

*stemp-subset(temp, obj1 %in% obj2,select=c(temp))*

this is working and giving results that what ever is there is both *obj1*and
*obj2*
**
**
but I want to get values which is there in *obj1* but not in *obj2 *
can anyone help me how to get those values.
i tried with *%o%*  but i am not able to get it


thanks in advance

kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with retreaving column from a data.frame

2010-04-20 Thread venkata kirankumar
Hi all,
I have a problem with retreaving column from a data.frame that is

I have a data.frame named  temp
in that dataframe some column  are there whose names are

IDENTIFIERUNIQUEID  TRIALGROUPSID GRPNUMBER
GRPDESC   SEXDIDSTDID STUDYTYPE
SDID  DOSDIDSOPDIDSPECIES

i can retreave any column with using  command like  temp$STDID

but my problem is  the column name i have to get from another xml its
comming like  STDID
that one i assigned to a variable namedkk  like  kk-STDID

but now while i am trying to retreave this column from dataframe  temp
like  temp$kk   or
 with using command paste like

paste(temp,kk,sep$)
both the times its giving null result
but its having values in table

can any one help me how to get column values from dataframe like these cases

thanks in advance
kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Problem with mean

2010-03-09 Thread venkata kirankumar
Hi all,
I got one intresting problem with caliculating mean that is

while i am taking mean of values

*0.6, -0.8, 4, -3.8*

using
*val-c(0.6, -0.8, 4, -3.8)*
*mean(val)*
it given result as
*2.775558e-17*

but the actual result is  *0*

can any one suggest how can I get correct mean result in this case

can any one suggest how I can farward

thanks in regards

kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Problem with retreaving numeric data

2010-02-10 Thread venkata kirankumar
Hi all,
I am trying to get a value from a dataset
in data set its stored as  001
but while i am trying to retreave it its giving as 1
can any one help me to retreave it  as 001

thanks in advance
kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



[R] Hi problem with read.csv

2010-02-08 Thread venkata kirankumar
Hi all,
I am getting problem with   read.csv()
command

the problem is

I have one file which is saved in ANSI
while I am trying to open with R-Project its opend and all the cloumn names
are comming proper like

for the command

names(kk)

 FILEID   UNIQUEIDLATESTFLG   ACTIVEFLG
  PROJROLEID  IDENTIFIER  TREATMTSTDATE   TITLE
SOURCE  PLANSUB STENDDATE   STSTARTDATE
NOOFGROUPS  SLOTNO  PREPPERIOD  STREPORTDATE
COMPLETIONDATE  ARCHIVEDATE HOUSINGNAME NOOFGEN
NOOFANIMALS SPECIES SPDID   STRAIN
STDID   STUDYTYPE   SDIDDOSETYPE
DOSDID  SEXPARTICIPANTS SOPDID  X



this is correct


but if I am converting those files to   UTF-8   formate and after loading
to R-project Object and again I checked for
coloumn names then its giving like

 ï..FILEID   UNIQUEIDLATESTFLG   ACTIVEFLG
  PROJROLEID  IDENTIFIER  TREATMTSTDATE   TITLE
  SOURCE  PLANSUB STENDDATE   STSTARTDATE
NOOFGROUPS  SLOTNO  PREPPERIOD  STREPORTDATE
COMPLETIONDATE  ARCHIVEDATE HOUSINGNAME NOOFGEN
NOOFANIMALS SPECIES SPDID   STRAIN
STDID   STUDYTYPE   SDIDDOSETYPE
DOSDID  SEXPARTICIPANTS SOPDID  X

here the problem is while loading for the first coloumn name R-project
adding  special charecters like  ï..

can any one help me how to read these UTF-8 files with out these  extra
charectors

thanks in advance

kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem withrbind function

2010-02-01 Thread venkata kirankumar
Hi all,
I am trying to to merge two data.frames(kk and ff)
like


 kk
  a b d
1 1 4 7
2 2 5 8
3 3 6 9

 ff
  a b d
1 2 5 8
2 3 6 9
3 4 7 1

and
g-rbind(kk,ff)
is working perfectly and giving results
but if any of the column name changed then its giving

Error in match.names(clabs, names(xi)) :
  names do not match previous names


like

  kk
  a b d
1 1 4 7
2 2 5 8
3 3 6 9

 ff
  a b f
1 2 5 8
2 3 6 9
3 4 7 1

and
g-rbind(kk,ff)

can any one suggest how can I bind by rows

or

is there any way to change the column name in any date frame
this one also heps me

please help me to get the dateframe which combines both

thanks in advance

kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Problem with multy level sorting

2010-01-29 Thread venkata kirankumar
Hi all
I have a dataframe like I coppied below


 ff
   a  b  d
110 5   7
220 4   9
3 3 8   10
4 5 68
5 6 35
67373
74528  9
83  2   8

while I am trying to sort multy coloums  at once I am not able to get that
like ina order of   first column a next column d after that column b
here I tried with


o - order(a,d,b)
but it returns an error
can any one help me to sort this multy-columns atonce


thanks in advance

kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Problem with toString

2010-01-11 Thread venkata kirankumar
Hi all,
I got a problem with* toString()*  function
its behaving odd in some times most of the times its giving correct results
but in peculier cases its giving results like *æ]*
especially while i am working with c# +R-project
thats also after getting some error like
after trying to caliculate *mean(NA)*
can any one help me why its giving like those results and this error is not
consistent
some times this error is comming and some times this error is not comming

please help me to get understand why its behaving like that

thanks in advance

kiran
**

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with number formation

2010-01-04 Thread venkata kirankumar
Hi all,
this is kiran
I got one problem with formating a number
that is

if I have a number like ---2.33
that one ihave to convert to --2.33000
and
 if I have a number like ---0.33
that one ihave to convert to --0.33000

is this posible in R-project
if its posible please help me to get it
onemore thing if it converts to char also noproblem because i have to show
it in user interface no caliculation are required.

thanks in advance
kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Problem with spliting a dataframe values

2009-12-17 Thread venkata kirankumar
Hi all,
Hi this is kiran
I am facing a problem to split a dataframe

that is..
 i have a string like:a,b,c|1,2,3|4,5,6|7,8,8
first I have to split  with respect to   |
I did it with  command

unlist(strsplit(a,b,c|1,2,3|4,5,6|7,8,8, \\,))


after getting that set i made it as a dataframe and it comes like

a,b,c
1,2,3
4,5,6
7,8,8

now i have to split this dataframe with respect to ,  and i have to get it
like


a b c
1 2 3
4 5 6
7 8 8


this one i am not able to findout
can any one help me to get it done

thanks in advance
kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] saving custom functions to existing library

2009-11-11 Thread venkata kirankumar
Hi all,
I writen one function in Rgui(R Editor) I saved it as testfunction.R   and
while I am running that file using

source(C:/testfunction.R)  its running and it is giving subsequent
result

insted of this there is any thing like to save my function to save in
existing library
to reuse it when ever I want to use because I have to use those function
from my C# code right now I am not able to use those function.

If any library is there to write and make that function visible through C#
code also helpful to me
can any one help me to solve this problem

thanks in advance

kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with executing r-function from windows command prompt

2009-11-10 Thread venkata kirankumar
Hi all,
I am trying to execute one function from windows command prompt
and I am trying to execute queries like source(myRfile.R)  but itis
throughing runtime errors can any one help me how can i run my
 *.R file and how can i call a function in that *.R file

thanks in advance

kiran.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] creating custom package and functions

2009-11-10 Thread venkata kirankumar
Hi all,
I am new to R-project
I have to create custom package and some required functions in that package
can any one help me how to create a custompackage and how to write my
function in to that package
These things I have to use in many places as per requirements in my solution
please help me to create these custom packages

thanks in advance

kiran.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with CPU usage

2009-10-09 Thread venkata kirankumar
Hi all,
I have a problem with CPU usage  while running the Rgui.exe

problem is
while I am running scripts on  Rgui  its taking 100% of CPU is there any
posibility to reduce the cpu consumption
are any package I can use to reduce CPU consumption
can any one help me out from this problem because
while running these scripts I am not able to do any other work

and there is no recursive functions and  all loops are ending properly

Thanks in advance
kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with checking wether file is present or not

2009-06-22 Thread venkata kirankumar
Hi all,
I have a problem with checking File is present in the directory or not
like
I have a sequence of files in one folder I have to take each file in order
and have to caliculate on those files data but in order some files are
missing for that I have to check and load those files for that I am using

condition like

if(file.exists(findings)==TRUE){}



its giving results for files which are present in that folder
but for files which are not present in that folder its giving error
but it have to skip and run for remaining files

can any one suggest any other way to make it work
for all those files

thanks in advance
kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with bulk insert into a *.csv file

2009-06-08 Thread venkata kirankumar
Hi all,

I am trying to create a  index.csv  with caliculating different
types of caliculations .
In that i have to caliculate on 10,000 studies and have to insert many no of
rows more than 500,000
for that right now I am inserting every row after caliculating and doing
data.frame
but its taking much time to create that index.csv

is there any thing like bulk insert in to file with keeping those rows in
memory and inserting into table
if any thing is there means please give me some idea to do bulk insert
then I can save time to  create index.csv file

thanks in advance


kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] problem with bulk insert into a *.csv file

2009-06-08 Thread venkata kirankumar
Hi jim,

I am caliculating these caliculation on quaring on 4 tables and preparing
subsets of those and from there I am getting the final results
that is

034P91|d947468f-95ff-4844-8d04-36619ed2cced|1|Control|9686|brain|9301|7912|10746|10742|9710|12591|7933|12612|Gram|2.014|1.721|1.8902|0.0772662927802285|0|1


this contains study *Identyfier  *which contains *4 trialgroups  and each
group contains 2genders and each gender contains nearly 50 speciman types
for eachspeciman type I have to caliculate mean,max,min,standered
deviation,difference between treatmentgroup mean to controlgroup mean,and
ratio between  treatmentgroup mean to controlgroup mean*
*this will repeate for 10,000 studies*
*right now I am appending these values to the file row wise with making it
data.frame andding to the index.csv*

**
if any thing like keeping these rows in memory and inserting into *index.csv
*file at once means it will reduce time taken for creating the file

is there any thing to do such type of bulk insert  in R-project means saves
lots of time and improves performance to my project

can you please suggest me if any thing is there like that  and I am sending
my script file to you for the referance

thanks in advance


kiran


On Mon, Jun 8, 2009 at 9:43 PM, jim holtman jholt...@gmail.com wrote:

 You can always open a connection and write the rows out as you have
 calculated them.  It would be nice if you had included at least a subset of
 the calculations that you are doing so that we can understand the problem
 you are trying to solve.

   On Mon, Jun 8, 2009 at 11:43 AM, venkata kirankumar 
 kiran4u2...@gmail.com wrote:

  Hi all,

 I am trying to create a  index.csv  with caliculating different
 types of caliculations .
 In that i have to caliculate on 10,000 studies and have to insert many no
 of
 rows more than 500,000
 for that right now I am inserting every row after caliculating and doing
 data.frame
 but its taking much time to create that index.csv

 is there any thing like bulk insert in to file with keeping those rows in
 memory and inserting into table
 if any thing is there means please give me some idea to do bulk insert
 then I can save time to  create index.csv file

 thanks in advance


 kiran

[[alternative HTML version deleted]]

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.htmlhttp://www.r-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.




 --
 Jim Holtman
 Cincinnati, OH
 +1 513 646 9390

 What is the problem that you are trying to solve?

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with using subset from two different tables

2009-06-04 Thread venkata kirankumar
Hi all,

I am new to R-project my problem is I tried to get subset from two different
tables its giving error
but if i m tring for  geting results from one table its working

actually i have to take values from two tables with applying different
conditions on two tables like


kk- is an object of one table and
fk- is an object of another table

here i have to get values  from these tables like

subset(kk  fk,kk$Rmaxtgavcg  1.256  fk$rmaxtgavcg 
3.25,select=c(uniqueid))

my doubt is, that if any thing like this expression is there in R-project or
i have to go for two different subsets and then adding those two one after
another with checking the common uniqueid's


any help is more precious to me

Thanks in advance

kiran.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with 'loading file size'

2009-04-01 Thread venkata kirankumar
Hi all,
I am working in a project which needed to load *.csv files of size more than
200MB
is it posible to load 200MB size file to r-project and do subsetting as per
requirement
i am able to load maximum of 90 mb
is there any way to increase memory limits and how much maximum memory we
can exten
please some one help me to get it work

thanks in advance.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with Dates

2009-03-19 Thread venkata kirankumar
Hi all,
I am strugling with date formates and caliculating diferent operations like
different between 2 dates and
getting minimum in vector of dates

that is i m working with dates in formate 6/22/1992  12:00:00 AM
and the vector is

[1] 6/4/1992 12:00:00 AM 2/13/1992 12:00:00 AM6/19/1992 12:00:00 AM
 [4] 2/11/1992 12:00:00 AM  6/22/1992 12:00:00 AM10/3/1991 12:00:00 AM
 [7] 5/12/1992 12:00:00 AM  7/11/1991 12:00:00 AM2/6/1992 12:00:00 AM
[10] 10/4/1991 12:00:00 AM  1/31/1992 12:00:00 AM   6/9/1992 12:00:00 AM
[13] 10/9/1991 12:00:00 AM  6/10/1992 12:00:00 AM7/19/1991 12:00:00 AM
[16] 7/18/1991 12:00:00 AM  9/20/1991 12:00:00 AM8/6/1992 12:00:00 AM
[19] 8/12/1992 12:00:00 AM  8/19/1992 12:00:00 AM7/12/1991 12:00:00 AM
[22] 6/5/1992 12:00:00 AM2/7/1992 12:00:00 AM 7/1/1992 12:00:00 AM
[25] 8/7/1992 12:00:00 AM8/13/1992 12:00:00 AM

and here i have to get least date (means first initial date) and i have to
get difference between that date to all other dates in vector

i tried with  functins like

formate()
and  round()but its not woking on this formate of data

can any one help me out to solve this


thanks in advance

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with creating webserver

2009-03-10 Thread venkata kirankumar
Hi all,
I am not able to built a webservice with using R-Project
is there any package I have to import while building webservice
my problem here is I installed in one server and while I am working in
another server i have to pass a request to the server
where r-project is installed and I have to execute the function what ever I
am running in in present server
for that i have to write a webservice function which calls the server having
r-project

can any one help me out to get solved this problem.

thanks in advance

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with concatinating string while taking as a path of a file

2009-03-09 Thread venkata kirankumar
Hi all,

I have a problem with concatinating strings while taking as a path here the
problem is

i have to take path as
FPATH-D:\\Kiran

and file name as

Fname-FINDINGS.CSV
and while I am reading  this table I have to take path with using these two
strings because in FPATH  there is many files like findings.csv,
and path will be D:\\Kiran\\FINDINGS.CSV


here i tried with FPATH+\\+Fname,  FPATH~\\~Fname ,  FPATH\\Fname
and FPATH::\\::Fname
but I am not able to get path like D:\\Kiran\\FINDINGS.CSV.


can any one help me out of this problem.


thanks in advance.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with comparing a part of string with whole string

2009-02-19 Thread venkata kirankumar
Hi all,

I got one problem with comparing strings like if any string is like

*RIGHT, EPICARDIUM: FOCUS, GRAY-WHITE, SINGLE, APPROX 0.6 CM IN DIAMETER*.

and i have to compare   *GRAY-WHITE*with the above string

or otherwise   i have to compare*TUMOR BENIGN*   this string
with

*MEDULLRY TUMOR BENIGN,TYP PHEOCHROMOCYTOMA*

i tried with split and compare but its not working

can any one suggest how can i compare these type of Strings

thanks in advance

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Problem in converting a string in binary formate

2009-02-19 Thread venkata kirankumar
Hi all,
can any one suggest how to convert one string into binary formate to store
in another file
and to use for farther searching
with using of binary files only that search can process for that i need to
convert string into binary files


thanks in advance

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] problem with comparing a part of string with whole string

2009-02-19 Thread venkata kirankumar
Hi ,

i just attached one file to this mail which contains one modal of my data
and there i have to search for the rows which contains   SPECIMENTYP %in%
ADIPOSE TISSUE
and the rows which contains  PRESERVEDin  ORGCHARRES
for that i tried with
 r-subset(rr,SPECIMENTYP %in% ADIPOSE TISSUE  grep(IN
DIAMETER,rr$ORGCHARRES),select=c(SPECIMENTYP,ORGCHARRES))

but i got only the rows having  ADIPOSE TISSUE   in  SPECIMENTYP

can anyone suggest any of the way for comparision of this type


thanks in advance





On Thu, Feb 19, 2009 at 6:26 PM, Petr PIKAL petr.pi...@precheza.cz wrote:

 Hi

 r-help-boun...@r-project.org napsal dne 19.02.2009 13:39:42:

  Hi all,
 
  I got one problem with comparing strings like if any string is like
 
  *RIGHT, EPICARDIUM: FOCUS, GRAY-WHITE, SINGLE, APPROX 0.6 CM IN
 DIAMETER*.
 
  and i have to compare   *GRAY-WHITE*with the above string
 
  or otherwise   i have to compare*TUMOR BENIGN*   this
 string
  with
 
  *MEDULLRY TUMOR BENIGN,TYP PHEOCHROMOCYTOMA*
 
  i tried with split and compare but its not working

 Work for regular expressions?

 vec=*RIGHT, EPICARDIUM: FOCUS, GRAY-WHITE, SINGLE, APPROX 0.6 CM IN
 DIAMETER*.
 test=GRAY-WHITE
 regexpr(test, vec)
 [1] 28
 attr(,match.length)
 [1] 10

 Regards
 Petr


 
  can any one suggest how can i compare these type of Strings
 
  thanks in advance
 
  [[alternative HTML version deleted]]
 
  __
  R-help@r-project.org mailing list
  https://stat.ethz.ch/mailman/listinfo/r-help
  PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.htmlhttp://www.r-project.org/posting-guide.html
  and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with using %in% condition while using in if() condition

2009-02-18 Thread venkata kirankumar
Hi all,
I got one problem with using %in% condition while using in if() condition
where
I used the condition as


if(SubFinSpt$SPECIMENTYP %in% CAP$SPECIMENTYP)

this   if()condition is in  else condition
and hear  *SubFinSpt$SPECIMENTYP* having only one value   but
*CAP$SPECIMENTYP
*having nearly 20 SPECIMENTYP's

while applying this condition I got one warning that says  only first
element is checked
and after that warning it is executing normally and giving results
but i want to know why it is giving this warning

can any one explain why it is comming and how to resolve it

thanks in advance

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Problem in appending a row to *.csv file

2009-02-09 Thread venkata kirankumar
Hi all,
I am new to R-project
I have a problem when when ever I am going to append a row in a *.csv file
that is
in R-project I created one dataframe and I saved it in res.csv  and again
I got some results in dataframe with same column names and i tried to append
in a new row of same  res.csv  file but its appending again with
columnnaes like



first time when i created the  csv file

,max,min,avg
1,22,7,12.98333

and when I try to append another column for this file its writing like

,max,min,avg
1,22,7,12.98333
,max,min,avg
1,19,7,12.9918699186992


can any one suggest how to solve this problem
and how can I save new rows without taking column names


and also i tried withappend()  function to append to dataframes then
also its giving the same result

thanks in advance

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with subsetting in compating one column with a vector

2009-02-03 Thread venkata kirankumar
Hi all,
I got one problem withsubset()function

hear i executed:

findings1-subset(findings,SUBJECTSID==SUBJECTS1$SUBJECTSID,select=c(SUBJECTSID,ORGNUMRES))
hear SUBJECTS1$SUBJECTSID vector contains nearly  65  values
the problem is after comparing and subsetting its not giving

all the values related to that instead its giving randam values

and giving warning that:



Warning message:
In SUBJECTSID == SUBJECTS1$SUBJECTSID :
  longer object length is not a multiple of shorter object length


can any one suggest what I can do to retreave all the related data of subset
and store in one object


thanks in advance

regards;
kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] parsing problem

2009-02-02 Thread venkata kirankumar
Hi all,
I am trying to parse a vector for caliculating minimum in that vector the
vector having values like

1Kontrolle
2  Placebo
3 125mg/kg
4 250mg/kg
5 500mg/kg
61000mg/kg
hear i tries for comverting it into numeric with using  as.numaric()
 function
but i got values like
5
6
2
3
4
1

it gives 1000mg/kg is the least one
but i have toget 125mg/kg as the minimum value
for that i have to remove all the strings and spetial charecters from that
for that i used  parse()  but i am not able to get the out put

can anyone suggest how I will solve it


thanks in advance



regards;
kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] need a help with dealing XML

2009-01-30 Thread venkata kirankumar
Hi all,
I am trying to read data from a XML file but the thing is when I am trying
to read data from XML
it is not allowing me to read and store nodes in objects can any one suggest
how can i solve this problem.


thanks in advance

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Grouping problem

2009-01-28 Thread venkata kirankumar
Hi all,
I have a problem with grouping like I have to give count of employes in each
department like

if in one company there is departments like
Mechanical, Computer, Fitting, electronics and Chemical

hear I have to retreave the number of employes in each department and as
well as
I have to retreave number of John's in each department

is there any function is there which can solve my problem
i tried withsubset();
but it is retreaving one department's data only
can anyone suggest what I have to do for this


thanks in advance

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with compating 2 strings

2009-01-22 Thread venkata kirankumar
Hi all,

I got one problem with compating charecterstrings with using  ==
can anyone suggest if any other way to compare two charecterstrings

thanks in advance

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem in appending data into*.csv file

2009-01-22 Thread venkata kirankumar
Hi all,
I got a problem with appending data into the *.csv file
like

abc-read.csv(bbb.csv)   # reading data from one csv file
abc1-mean(subset(abc,Group==A))

hear i have to creat a .csv file and in that i have to create
column's with names  *group, mean* and farther i have to caliculate for
Groups:-A, B, C, D, F
and i have to append data to consicutive rows of groups

can any one suggest how can i farward in this issue

thanks in advance

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with writing data to *.xls file

2009-01-20 Thread venkata kirankumar
Hi all,
I read data from *.xls file and i did some caliculations on that data and
now i have to create a column in the same .xls file
and i have to insert the data in to the consicutive rows related to the
previous data
i tried it with *write.xls() *but the thing is it deleted all the columns
previously presented in that file and it created a column and inserted data
can any one suggest what to do for this

thanks in advance

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with applying where condition

2009-01-19 Thread venkata kirankumar
Hi all,

I am a biggener in R-Project

I got one problem with applying *where condition*
like

if 2 tables like
table1:

empidname   dep
  101  kiransolutions
   102 ram  testing
   103pavan database

table2:

empid   month   sal
  101  Dec  9500
  102  Dec  9800
  103  Dec  8500

in first table i have to take *empid* with using the *name(kiran)*
and after getting that *empid* i have to get *sal *with using that *empid*

can any one suggest how can I acheave this


Thanks  regards;
kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] reading data from Excel Spread sheet

2009-01-16 Thread venkata kirankumar
Hi all,

I tried to read data from Excel spread sheet with using

read.csv(file.choose())
and
read.delim(file.choose())
but its showing *ÐÏ.à.*.

and also i tried with
read.table(file.choose())

then its showing*  V1
1 ÐÏ\021ࡱ*   


can any one suggest how to read data from Excel Spread sheet

thanks  regards;

kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] problem with working on R-Project from C#

2009-01-07 Thread venkata kirankumar
Hi,
i got a problem with initialising R-Project from C#
in this i m sending what are all the code line I had been written and the
error where i got



sc1 = new STATCONNECTORSRVLib.StatConnector();

sc1.Init(R);

and error at
SCN_E_INVALIDINTERPRETERVERSION -2147221487 0x80040011


can any one suggest how can i resolve it


thanks  regards;
kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] request for StatConnecter oriented problem

2009-01-07 Thread venkata kirankumar
hi, i got a problem with initialising R-Project from C#
in this i m sending what are all the code line I had been written and the
error where i got



sc1 = new STATCONNECTORSRVLib.StatConnector();

sc1.Init(R);

and error at
SCN_E_INVALIDINTERPRETERVERSION -2147221487 0x80040011


can any one suggest how can i resolve it


thanks  regards;
kiran

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] hi i have a problem with implementing R-Project in C#

2009-01-06 Thread venkata kirankumar
Hi,



This is Kiran

I tried to work on r-project through C#.Net

While calling the r-project I got an error that



*System.Runtime.InteropServices.COMException(0x80040013):Exception from
HRESULT:0x80040013 at STATCONNECTORSRVLib.StatConnectorClass.Init(String
bstrConnectorName) at IAG.RD.RcomWrapper.Rcom..ctor() at
demo.DemoForm.RcomExecute()*





Can any one suggest how can I salve this problem



Thanks  regards;

Kiran.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.