Suppose I have the variables: groups and values in Table 1. Can someone suggest to me how I can obtain the result of the median of the groups as indicated in the table named "Output":
groups
Output
You can use the function tapply():
output
Thanks Miguel, it works perfectly. Now let me apply it to the real huge dataset :).
I run: install.packages("devtools") in my terminal & get the error message: bash: syntax error near unexpected token `"devtools"'. Any ideas of how I can successfully install this R package...
10 November 2016 4,291 0 View
I'm analyzing some graphs in R, and have an error with "community.to.membership". I get error message "Error: could not find function "community.to.membership", anyone seen it before? When I type...
09 October 2015 6,182 2 View
11 December 2014 265 4 View
Suppose I have a table, T3. I would like to find unique values by removing repeated rows (with reversed entries, e.g. row 1 and 4). The final table I need should look like T4. Simply using...
10 November 2014 8,520 3 View
06 July 2014 1,197 2 View
I've the data in the "Table" given below (as generated from R-package), does anyone out there know how to get the median values as shown in "output"? I've tried using "tapply" but this only works...
05 June 2014 4,750 1 View
Given a vector, e.g. x
02 March 2014 2,755 5 View
[problem in R]: How can I compute the medians of the rows in the matrix x3; where, e.g. x1
02 March 2014 4,217 2 View
Given the table "Tgiven", I need to compute the median "val_med" of the columns "val1" and "val2", i.e. need to get the table "Trequired" Below is a simple data structure that mimics the more...
02 March 2014 1,968 6 View
Just loaded, read and worked with ".txt" and ".csv" files in R (no problems), but having trouble loading ".dat" files.
02 March 2014 9,043 8 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
Which is suitable for use with Python? MySQL or SQL Server? What is your suggestion?
01 March 2021 3,422 3 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
I understand there are a lot of software programs that can simulate DED by going through specific modeling, simulation, and commands. For me, that was time consuming and results were not accurate....
24 February 2021 4,428 3 View
Hello everyone: I am looking for a simple software program to model chemical bonds. The purpose is to generate a high-quality graphical abstract for a top leading journal in the field of...
23 February 2021 8,012 3 View
I am looking for implementation of bayesian decision trees and bayesian regression trees in Python and/or R.. Do you know if the existing libraries support this
23 February 2021 6,689 3 View
To be specific, I want to conduct an IV regression in stata with the following three equations. EQ1: Y1 ~Y2 Y3 X EQ2: Y2 ~ Z1 EQ3: Y3 ~ Z2 Both Y2 and Y3 are endogenous. However, Z1 and Z2 are...
23 February 2021 6,266 3 View
My real system (buck converter) can only take an input of 0 to 1 (duty ratio) and I need to constrain the system so the controller action keeps within this bounds. How can I do this? The code for...
22 February 2021 2,125 3 View
Hi everyone. I am researching droguht effects on soil water drought. I am looking for already implemented functions in R or Python to estimate soil water content from precipitation,...
21 February 2021 2,084 1 View
I have a basic knowledge on Python, R and MATLAB in analysing data. Among those, which is the best and user friendly? Which one should I learn deeply to analyse data?N:B: I want to learn data...
20 February 2021 3,950 15 View