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, maxheight=3

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 thi

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 connecti

[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 to