Displaying 5 results from an estimated 5 matches for "tempr".
Did you mean:
temp
2010 May 28
2
if negative value, make zero
I have a data frame with both positive and negative values, and I want
to make all the negative values equal zero, so i can eventually take
an average.
I've tried
temp2 <- ifelse(tempr<0, 0, tempr)
but it doesn't seem to work.
Any suggestions?
Thanks!
2004 Nov 02
2
A little more on R, mdbtools and Access databases
...uote(tableName)
read.table(pipe(paste("mdb-export -d '\t' ", dbname, tableName)), sep="\t", header=TRUE)
}
mdbDescribe <- function(dbname,tableName) {
tableName <- dQuote(tableName)
cat("describe table ", tableName, "\ngo", file = "tempR.sql")
mdesc <- system(paste("mdb-sql -i tempR.sql ", dbname), intern=TRUE)
mdesc <- strsplit(substring(mdesc[-c(1:3,5, length(mdesc), length(mdesc)-1)], 2), "\\|")
tabDesc <- rbind(mdesc[[2]])
for (i in 3:length(mdesc)) {
tabDesc <- rbind(tabDesc, md...
2008 Aug 13
5
subsetting matrix according to columns with character index
Hi,
I have a long matrix of the following form which I would like to subset according to the third column:
[x y z]:
a1 c1 1
a1 c1 2
a2 c1 1
a1 c2 1
a1 c2 2
. . .
The first two columns a characters ai and cj.
I would like to keep all the rows where there are two entries for z, 1 and 2.
That is, I want:
a1 c1 1
a1 c1 2
a1 c2 1
a1 c2 2
. . .
I try to use something like
1998 Oct 13
1
Assembler messages?
...,
event, pspline,etc.. I will ask about this in another mail) but a number
give 'Assembler messages'.
Of these I will quote an install log for 'akima' in full:
...........................................................................
for:/usr/local/R/bin # ./R INSTALL /usr/local/tempR/akima
Installing package `akima' ...
libs
f77 -fpic -c idbvip.f -o idbvip.o
f77 -fpic -c idgrid.f -o idgrid.o
f77 -fpic -c idpdrv.f -o idpdrv.o
f77 -fpic -c idsfft.f -o idsfft.o
f77 -fpic -c idxchg.f -o idxchg.o
f77 -fpic -c idcldp.f -o idcldp.o
/tmp/cca01314.s: Assembler messages:
/tmp/cca0131...
1998 Oct 13
1
Assembler messages?
...,
event, pspline,etc.. I will ask about this in another mail) but a number
give 'Assembler messages'.
Of these I will quote an install log for 'akima' in full:
...........................................................................
for:/usr/local/R/bin # ./R INSTALL /usr/local/tempR/akima
Installing package `akima' ...
libs
f77 -fpic -c idbvip.f -o idbvip.o
f77 -fpic -c idgrid.f -o idgrid.o
f77 -fpic -c idpdrv.f -o idpdrv.o
f77 -fpic -c idsfft.f -o idsfft.o
f77 -fpic -c idxchg.f -o idxchg.o
f77 -fpic -c idcldp.f -o idcldp.o
/tmp/cca01314.s: Assembler messages:
/tmp/cca0131...