Skip to main content

Multiple Division/Math

Posted in

I'm not sure which is the correct forum. I'm new to R, statistics, and Red-R. I was trying to add two different columns by dividing them with the Math widget, and plotting them together. However, since the column is always named divide_1, one always replaces the last one. Is there a way to change the new column's name for this to work?
Thanks,
Daniel

Daniel,

We have created separate forum sections for bugs and requests. These forums are the best place to report any bugs or requests.

I'll move this thread to the bug section.

Any feedback is welcome. Thanks for your interest,
Anup

Hi Kyle,
Thanks for the quick response, your workaround did the job. I've played around with Red-R a little and I'm really liking it, although I have a couple of requests/suggestions. Do you guys have a bug tracker and a place to posts requests other than the forum? Or is this correct way of doing it?
Thanks!
Daniel

Hi Daniel,

Thanks for reporting this error. I just fixed it and it will be functional in the next release of Red-R. The counter doesn't index up after a basic math manipulation.

What you can do to cheat the system is to perform one of 'log10', 'log2', 'as.numeric', 'as.character', 'exp' on any column to index the count up one. Then do the division again. You should see _2 after the divide.

If that doesn't work then you can do it in RExecutor like this:

[received data]$d1<-[received data]$[col1]/X (press enter)
[received data]$d2<-[received data]$[col2]/Y (press enter)
[received data] (press send)

Then connect the Data Frame output of RExecutor to the plotting widget or in your case you might want to treat the data frame as a list and separate the variables for an x y plot.

Sorry for that error and thanks again for letting me know about it.

Kyle