Bug in


Hello, everyone
I found a bug in "Execute R" operator
I am using R-3.6.0
Briefly, "Execute R" cannot compute mean function of R
I did
data[1,1] <- mean(data[3:5,4])
but it didn't work and why it didn't is written in the log file I attached
I believe it will not be able to compute var function either.
I attached the process and log files.
Please fix this problem for me
Thank you and have a nice day.
Best,
Tagged:
1
Best Answer
-
yyhuang Administrator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, MemberPosts:363
RM Data Scientist
Hi@Rapidminerpartner
It seems that R'smeandoes not behave well with dataframes. One workaround is to convert the data to a regular matrix before taking the mean:
data[1,1] <- mean(data.matrix(data[3:5,4]))
https://stackoverflow.com/questions/35485536/r-argument-is-not-numeric-or-logical-returning-na/52153758
< ?xml version = " 1.0 " encoding = " UTF -8"?>
6
Answers
Hello, yyhuang
Thank you for your help
It works now
Have a nice day!