Re: [R] Need to Write a Code that can find the molecular weight of various compounds

2012-02-07 Thread matthew.ttd.nguyen
Thanks Paul, I was trying to get the function for getMass to input into another column into a data set using R code: FakeCompounds$Molecule - with(FakeCompounds, getMolecule(Molecular.Formula)) showData(FakeCompounds, placement='-20+200', font=getRcmdr('logFont'), maxwidth=80,

Re: [R] Need to Write a Code that can find the molecular weight of various compounds

2012-02-02 Thread matthew.ttd.nguyen
Hi Paul! Thanks a lot! I tried downloading the Rdisop file and encountered this error: Error: package ‘Rdisop’ is not installed for 'arch=x64' I tried downloading directly from the source using R and got this error: Error in file(filename, r, encoding = encoding) : cannot open the

Re: [R] Need to Write a Code that can find the molecular weight of various compounds

2012-02-02 Thread matthew.ttd.nguyen
I also tried downloading the JDK version of Java and received this new error when running it: Error : .onLoad failed in loadNamespace() for 'rJava', details: call: dirname(this$RuntimeLib) error: a character vector argument expected Error: package/namespace load failed for ‘rJava’ -- View

Re: [R] Need to Write a Code that can find the molecular weight of various compounds

2012-02-02 Thread H. Paul Benton
Matthew, My Fault I should have sent you to the current release cycle page. The link was for the old 2.6 Bioconductor release, sorry about that. :( Personally the easies way to install any bioconductor package is to open R copy and paste the following code:

Re: [R] Need to Write a Code that can find the molecular weight of various compounds

2012-01-31 Thread hpbenton
Matthew, I would try first looking at the Rcdk package. From it sound like what you want to do they already have some very efficient code to that. If you don't want all of CDK then you could try Rdisop from Bioconductor. The package will take a formula and give you it's mass. It won't do a

[R] Need to Write a Code that can find the molecular weight of various compounds

2012-01-30 Thread matthew.ttd.nguyen
Hi! Just started working at a lab and have only minimal experience with R. I was wondering if there was a way to write a code that would intake a data set of chemical compounds (ex: H2O, CH3) and be able to give an output column of the molecular weight? I tried some really basic coding to try