While using get.all.shortest.paths function in R I was not able to use it for more than one data. Can anyone tell me how to use this function inside loop?
[code]
for (i in 1:6)
{
k=2;
res
Why do You use i and k at the same time, is it nescecery?
You could try like this:
for (i in 2:7)
thank you so much for your response. but the problem here is that get.all.shortest.paths function is not working in for loop.
so can u suggest me better way of using this function in loop.
Hi,
I did some tests, and find a way to get what you want. First I suggest you to turn all matrixes into vectors and then try this:
file name is: gsp.R
======================
val=function(g,i)
get.shortest.paths(g, i)
}
val_all=function(g,i,prnodes)
get.all.shortest.paths(g, i,prnodes)
g
Also,
If you need to store the results You could use something like this:
=============
Thank you so much this is really a great help...
I have calculated the peak area from the XPS data. From this data how can I calculate the wt% of the material.
14 July 2024 6,951 1 View
How does the quarter wavelength affect the efficiency and light absorption of the cells, and what considerations need to be taken into account when applying this concept to optimize the thickness...
10 July 2024 647 5 View
I did some column tests in my lab where I needed to detect the DOC fractions using LC-OCD. For the abiotic columns I used sodium azide to restrict the biofilm formation. I did LC-OCD to detect the...
07 July 2024 468 0 View
I am trying to simulate the above truss in Abaqus to get its natural frequencies through Modal Analysis. The joints are connected through welding. However, I am unsure how to define the...
04 June 2024 4,071 1 View
I am trying to infecting huh 7 cell with plasma derived HCV but the infection cannot be established. Has anybody tried infecting any cell line with virus derived from plasma/serum?
03 April 2024 4,685 0 View
The so-called secular equation for a plane wave in piezoelectric medium can be written as f(c,α)=0. (and sometimes f(c,α,ω)=0). It is written in the literature that "for a given apparent wave...
06 February 2024 9,386 0 View
Can you please share one heart-touching picture ever taken or any picture that touched your heart deeply ?
08 January 2024 2,941 5 View
When I was acquiring half of my sample as live cells and half fixed, I used to get 30% positivity and now when Im taking the whole sample as live cells only, it increased to 90%. What is the...
19 December 2023 9,249 0 View
I have been working on the quantitative analysis of plant extract. For the determination of TPC and TFC I have taken four extracts hexane, ethyl acetate, methanol and aqueous. I was able to...
13 December 2023 7,671 4 View
Hello !! I am trying to purify a secreted protein from Expi293 cells and was expecting a cleaner Ni-NTA elution profile unlike what I got (attached picture). Inspite of OD260/280 being >1 -...
18 November 2023 3,219 5 View
"PUBLISHING IN A SCOPUS JOURNAL" Researchers are now at a cross road. The critical need to publish in a Scopus or ISI, etc journal is ever vital. Journal Publication fees must be submitted....
10 August 2024 8,621 1 View
Hello everyone, I am currently developing a thesis proposal and would appreciate your input on its viability and how to effectively carry it out. My proposed topic is: "Does the perceived threat...
10 August 2024 8,992 0 View
Who will bear moral responsibility for the deaths of thousands of people in the event of an earthquake? Weeks and months remain before the onset of strong earthquakes that bring death to...
08 August 2024 6,134 12 View
There are a huge number of methods for studying objects in space, according to the senses (and not only). Mechanical, thermal, optical, acoustic, electrical, magnetic, based on particle beams,...
06 August 2024 7,102 0 View
After immunohistochemistry of previously fixed in PFA and EtOH and then frozen 20 μm sections of zebrafish brain, DAPI staining is very weak (right) compared to the same sections stained without...
05 August 2024 9,637 2 View
I aim to be as skeptical as possible regarding whether a pair of orthologous genes results in the same phenotype in their different but related bacterial organisms under similar environmental...
05 August 2024 6,787 4 View
Brain and body mass together are positively correlated with lifespan (Hofman 1993). The duration of neural development is one of the best predictors of brain size, and conception is the best...
05 August 2024 6,247 3 View
In the case of a wound l recurrence after radical breast cancer and sentinel lymph node biopsy. Are the sentinel lymph node procedure recommended? If no axillary lymph node dissection was not...
05 August 2024 8,056 1 View
Regarding a model for simulating battery charge and discharge, what do you consider to be high fidelity? What is the acceptable percentage of error (regardless of the metric)? Could you suggest...
03 August 2024 5,358 0 View
Hi RG family. My team and I are working on some SCOPUS publications and we need co-authors who are willing and capable of undertaking both qualitative and quantitative-based studies. The scope...
02 August 2024 7,843 0 View