Displaying 5 results from an estimated 5 matches for "pm25".
Did you mean:
pm2
2012 Feb 13
2
finding and describing missing data runs in a time series
Hi -
I am trying to find and describe missing data in a time series. For instance, in the library openair, there is a data frame called "mydata":
library(openair)
head(mydata)
date ws wd nox no2 o3 pm10 so2 co pm25
1 1998-01-01 00:00:00 0.60 280 285 39 1 29 4.7225 3.3725 NA
2 1998-01-01 01:00:00 2.16 230 NA NA NA 37 NA NA NA
3 1998-01-01 02:00:00 2.76 190 NA NA 3 34 6.8300 9.6025 NA
4 1998-01-01 03:00:00 2.16 170 493 52 3 35 7.6625 10.2175 NA
5 1998-01-01 04:00:00 2.40 180...
2013 Jan 15
1
Using system() to dump HDF to text file?
Hi all --
I am working on 64-bit Windows XP. I'm not a very technical person when it
comes to the command line stuff, so please forgive me if this is a stupid
question.
I have a bunch of HDF files, and I want to dump a single PM25 data layer
from each file to .txt by invoking ncdump.exe from system(). Here's a
sample command string:
"C:/ncdump -v PM25 C:/01aug2010.hdf > C:/01aug2010.txt"
This works perfectly in Python, but does not actually generate the .txt
file in R when:
system(command)
It does show...
2024 Dec 02
1
Identify first row of each ID within a data frame, create a variable first =1 for the first row and first=0 of all other rows
...tunately, you failed to show us the critical information
necessary to give you a definitive answer: the structure of a single
record. However, I will wing it based on your description and assume
that each record contains the following information something like
this: Latitude Longitude Date Time pm25 + other stuff maybe. If
this is the case,
1) You do not need to sort anything. R has robust date-time
manipulation and computation capabilities to handle dates and times,
though in this case you only need dates. R knows all about how to
order dates and times.
2) You do not have to physically gro...
2012 Nov 16
1
Split data frame and create a new column
...pitalized G, P and S) and pollutant
name. Names with no ?L? prefix or 01/04 suffix are lag 0. Lag 01 is average
of lag 0 and 1, and 04 is average of 0 to 4 days. How can one do that in R?
I will ignore the other components( e.g. 10 , max or mean)
Current stand
L1o3maxG10
L1o3P10
L2o3G10
noxP10
pm25S_01
comeanS_03
noxP_04
What I want to get :
pollutant Lag station
o3 1 G
o3 1 P
o3 2 G
nox 0 P
Pm25 01 S
co 03 S
nox 04 P
Thanks
--
View this message in context: http://r.789695.n4.nabble.com/Split-data-frame-and-create-a-new-column-tp4649683.html
Sent from the R help mailing list archive...
2013 Feb 17
3
Select components of a list
Hi Gustav,
Try this:
lapply(1:length(models),function(i) lapply(models[[i]],function(x) summary(x)$coef[2,]))[[1]] #1st list component
[[1]]
#??? Estimate?? Std. Error????? z value???? Pr(>|z|) # pm10
#5.999185e-04 1.486195e-04 4.036606e+00 5.423004e-05
#[[2]]
#??? Estimate?? Std. Error????? z value???? Pr(>|z|) #ozone
#0.0010117294 0.0003792739 2.6675428048 0.0076408155
#[[3]]
#???