After fetching my Database from SQL in R, I want that median should be calculated row-wise,i.e.
Median of (3.54,4.23,2.6,7.16) in a new column.Please find image attached.
what is "my_means" in ydata$my_means?
I'm sorry I missunderstood your question.
It was simplier than I thought.
You only need the median function, and use it like this:
median(ydata[,3:6], na.rm=TRUE)
equals:
median(c(ydata$value_1,ydata$value_2,ydata$value_3,ydata$value_4), na.rm=TRUE)
Bye.
Hi Marcelo, I have tried the above code,it ran successfully but result is just a single value for complete table. When i have inserted a new column & again run this code ,it produces same result. I'm looking for some more suggestions.
It is not nice but this works for sure:
ydata
Preference is for free data
31 December 2016 409 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
Hello everyone. I have conducted the research on post harvest longevity of tomato crop using plastic packaging and different doses of chemicals as two different factors. The design of experiment I...
28 February 2021 8,189 3 View
I am wanting to run a serial mediation model with 2 x IVs, 2 x MVs, and 3 DPs (all continuous). Is it problematic to run 2 different models for each IV, keeping the MVs and DPs the same in each...
27 February 2021 5,681 3 View
Hi, I am doing a review and hopefully meta-analysis for my Master thesis but I have the following problems: - Some studies only give the difference between end trial and baseline data and other...
22 February 2021 1,115 4 View
I know, or think I do, the basic idea behind these natural structures, as from what I know they form due to water dripping from the top leaving a salt deposit behind. But started to wonder about...
22 February 2021 1,400 4 View
Are there any types of cylindrical cell culture inserts that are designed to confine cell seeding area? Say, if I'm using a 12 well plate (3.5 cm^2/well), but only want to seed cells in the middle...
22 February 2021 7,127 4 View
I am currently trying to copy an assembly feature, that is present in an old version of the model I am using, onto a new model. The feature is a reference point that is fixed to an attachment...
16 February 2021 8,872 2 View
Hi all, I'm running a 2 x 2 between-subjects ANOVA with the setup in the attached image (kindly refer to JPG attachment). I understand that calculating simple effects involves determining...
09 February 2021 547 3 View
02 February 2021 728 3 View