I want to convert the string "mean" to function "mean"
Depending on your needs, have a look at ?do.call or ?call, the latter is giving an unevaluated call
What also works is to "get" the function by its name:
x = "mean"
get(x)(1:5)
# 3
Thank you very much for the answers!
The get() was the solution of my problem!!
Best Regards
ICh
-
10 November 2014 8,816 0 View
Hiiiii everyone! I have an enquiry on statistical analysis. I was looking for many forum and it's still cannot solve my problem. I want to compare means of two groups of data but only with two...
03 March 2021 8,796 3 View
What's the best way to measure growth rates in House sparrow chicks from day 2 to day 10? Since, the growth curve from day 2 to 10 won't be like the "Logistic curve" it might not follow logistic...
03 March 2021 1,401 3 View
Good afternoon, I recently used OmniLog from BIOLOG for my experimentations : I tested the metabolism of different strains on 2 types of plates. I have 16 strains of 3 different groups...
02 March 2021 3,584 1 View
I am wanting to calculate the average trend in maximum annual NDVI in Iceland from 2010-2020 using MODIS MYD13Q1 V6. How would I do this? I have currently inserted the NDVI bands from the MODIS...
02 March 2021 752 2 View
Which is suitable for use with Python? MySQL or SQL Server? What is your suggestion?
01 March 2021 3,422 3 View
I want to make a stacked bar graph with showing each data value as dots. I tried with graph pad prism, version 6, but could not succeed. Does anyone have tried before making such graphs?
01 March 2021 9,383 1 View
I am studying the potential of DCT and FFT coefficients extracted from a signal to classify the different objects that emit the signal. I applied the Shapiro-Wilk to confirm that data was not...
01 March 2021 8,079 2 View
I'm having a problem with my bloxplot with Shannon's and Simpson's indexs. The value of Shannon for my Community 1 indicating higher diversity (in relation of the Community 2), but have lower...
26 February 2021 3,033 9 View
I am trying to make an SEM model in AMOS for my dissertation but having some trouble with getting a good fit. I am looking for relationships between self-efficacy reported on a Likert scale and...
26 February 2021 8,642 4 View
In R-studio, there are many commands of Gumbel package. Arguments are also different. I`m asking about the alpha parameter of the Copula which must be greater than 1. If this is the one used to...
25 February 2021 5,229 3 View