Displaying 20 results from an estimated 443 matches for "chemics".
2009 Sep 28
6
SAS user now converting to R - Help with Transpose
I am just starting to code in R and need some help as I am used to doing this
in SAS.
I have a dataset that looks like this:
Chemical Well1 Well2 Well3 Well4
BOD 13.2 14.2 15.5 14.2
O2 7.8 2.6 3.5 2.4
TURB 10.2 14.6 18.5 17.3
and so on with more chemicals....
I would like to transpose my data so that it looks like this:
Chemical WellID Value
BOD Well1 13.2
BOD Well2 14.2
BOD Well3 15.5
BOD
2011 Sep 02
2
Chemical Names in Data Frames
Greetings -
I am working on some data that contain chemical names with air concentrations, and I am creating a data frame with date/time and each chemical having its own column. However, these are organic chemicals (e.g. 1-butene, 2,3,4-trimethylbenzene etc). The package I am going to be using the data with is openair, and many of the great functions require you to specify a column name which
2017 Jul 01
0
How to replace match words whith colum name of data frame?
Dear ?,
I'm sure that there are many ways to do what you want; here's one:
> cbind(concept_df, category=
+ ifelse(apply(
+ sapply(chemical_df$chemical,
+ function(x) grepl(x, concept_df$concept)),
+ 1, any),
+ "chemical", ""))
concept category
1 butan
2005 Dec 08
2
'mean' and 'sd' calculations do not match
...and what is going wrong?
Could it be related to the data import already? Some of the imported
data got the character strings NA and others <NA>. But they are defined
from the same values, -9999.
I used the code below. Below the code are parts of the results.
Cheers, Ulrich
Data import:
chemicS <- read.table("ChemieUlli_4_Quellen.csv", header = TRUE, sep =
",",na.strings = "-9999")
Count EC NO3 NO2 NH4
3504 630.0000 33.00 0.001 0.01
3505 NA 26.66 <NA> <NA>
3506 NA 0.72 <NA> <NA>
3507...
2007 Aug 02
1
New user help with plot.default
Hi - I'm just starting out with R and have come up against a problem with
what should be a simple operation. I'm plotting a range of safety standards
for 7 different chemicals. I don't want the standard box and whisker plot -
I just a dot for each value. Whilst using "plot.default" I get the error
"invalid xlim value" - which is confusing since using the same script
2004 Jul 22
2
Standard error of a sum
Folks,
This is so simple is driving me crazy. It's not really an R question is
more an Statistics question.
I applied a chemical in 3 different events during a growing season. I
took 3 samples in each event to estimate mean applied chemical.
Thus, I can easily estimate means and st.err by event. I can then
estimate the total chemical applied for the whole season by adding the 3
means
2008 Jul 09
4
Auto Postback in Ruby On Rails
in some other language have a concept e.i "auto postback"
So, in Ruby on rails is there any such option e.i "auto postback"
or same as "auto postback"
basically what i want ot do is that i have 2 select box
One for "Industry" and other for "Chemical"
1st we show all the industry in "Industry" select box.
if we select any 1 industry
2011 Dec 04
1
Logistic Regression with genetic component
Greetings, I have a question that I'd like to get input on. I have a
classic toxicology study where I artificially fertilized and exposed
embryos to a chemical and counted defects. In addition, I kept track of
male-female pairs that I used to artificially fertilize and generate
embryos with. I need to use logistic regression to model the response, but
also check that the genetics of the
2009 May 27
2
How to set a filter during reading tables
We are reading big tables, such as,
Chemicals <-
read.table('ftp://ftp.bls.gov/pub/time.series/wp/wp.data.7.Chemicals',header
= TRUE, sep = '\t', as.is =T)
I was wondering if it is possible to set a filter during loading so that
we just load what we want not the whole table each time. Thanks,
-james
2003 Jan 13
1
Fw: Plotting text-string real_date names at excel_date positions.
How do I post text-string dates along the x-axis instead of the excel_date
position values?
I would like to plot a time-series of chemical values changing with time
The first column is the internal date from excel. This should be the x-axis
position of a graph
of the plotted data.
The second column is a text-string of date. This should be what is posted
(instead of the excel_date).
The third
2010 Apr 22
1
cell-based high-throughput chemical compound screens package?
Hi
I'm looking for a package to perform quality control, normalization and analysis of high throughput cell-base chemical screens. I know that the cellHTS2 package provides this for siRNA screens.
Does anybody know if something like what I'm looking for exists?
Thank you!
Gabriele Zoppoli, MD
Ph.D. Fellow, Experimental and Clinical Oncology and Hematology, University of Genova,
2010 Dec 26
4
Parsing a Simple Chemical Formula
Hello R Folks...
I've been looking around the 'net and I see many complex solutions in
various languages to this question, but I have a pretty simple need
(and I'm not much good at regex). I want to use a chemical formula as
a function argument. The formula would be in "Hill order" which is to
list C, then H, then all other elements in alphabetical order. My
2013 Jan 19
2
Deformulation and R
Dear All,
I hope this is not too off-topic.
Essentially, I need to know if there is any R package which can help me
with a deformulation project.
Suppose e.g. that you know from a chemical analysis the fat, mineral,
vitamin, energy [and so on] content of a certain food product.
You also know the ingredients of this product (e.g. milk, lactose,
vegetable oil) and you know the chemical
2002 May 25
3
expressions as axis labels
Dear colleagues,
I often use chemical formulas to label my x-axis, e.g. in barplots. I
used to do this like the following example and it worked just fine:
a <- seq(2,24,2)
b <- seq(3,36,3)
c <- rbind(a,b)
barplot(c, width=c(0.9, 1.1),space=c(0.2, 0.75), col=c("indianred4",
"yellow2"), beside = TRUE,
xlab="Ions", yaxt="n", xaxt="n", ylab
2002 May 25
3
expressions as axis labels
Dear colleagues,
I often use chemical formulas to label my x-axis, e.g. in barplots. I
used to do this like the following example and it worked just fine:
a <- seq(2,24,2)
b <- seq(3,36,3)
c <- rbind(a,b)
barplot(c, width=c(0.9, 1.1),space=c(0.2, 0.75), col=c("indianred4",
"yellow2"), beside = TRUE,
xlab="Ions", yaxt="n", xaxt="n", ylab
2017 Jul 01
0
How to replace match words whith colum name of data frame?
I have two data frame. I want to use "chemical_df" to match "concept_df "
concept_df <- data.frame(concept=c("butan acid ", "nano diamond particl", "slurri
composit", "composit ph polis", " inorgan particl ", "grind liquid", "liquid formul", "nanoparticl", "size abras particl",
2017 Jul 30
0
How to replace match words whith colum name of data frame?
Try the stringr package.
This should work
chemical=c("basic", "alkalin", "alkali", "acid", " ph ", "hss")
chemical_match <- str_c(chemical, collapse = "|")
chemical_match
concept_df$match[str_detect(concept_df$concept, chemical_match)] <-
"chemical"
concept_df
> concept_df
concept match
2012 Aug 07
3
reshape2's dcast() Adds NAs to Data Frame
I need to understand how and why dcast() adds NAs to a data frame that
contained no missing values.
The database table of chemical concentrations has all missing values
removed because they cannot contribute to data analyses. The structure of
the R data frame of these data have no NA values, and neither does the data
frame resulting from applying the reshape2 melt() function to it. However,
2012 Nov 20
0
McNemar's Test Question
Hi all,
I'm wondering if there's a way that I can perform McNemar's test for a small
dataset easier.
I know this may be different from the usual way, but I'm hoping to throw it
out there for help.
For now, my orginnal dataset looks something like this...
Chemical shifts Pre_yes Pre_no Post_yes Post_no
1 20 23 30
2011 Feb 25
1
ANOVA and Pseudoreplication in R
Hi, As part of my dissertation, I'm going to be doing an Anova,
comparing the "dead zone" diameters on plates of microbial growth with
little paper disks "loaded" with antimicrobial, a clear zone appears
where death occurs, the size depending on the strength and
succeptibility. So it's basically 4 different treatments, and I'm
comparing the diameters (in mm) of