I would recommend that you add a column to the dataset which indicates what function needs to be evaluated in the apply loop. innerFun <- function(row) { if (row[1] == 1){ result <- mean(row[-1]) } e
<o:p> </o:p> I’m working with a data frame with 6 columns. The first column indicates the year (ranging from 1993 until present) and the other ones the measurements at different locations. For
Is it possible to change the colour of error bars? Adding ‘col = <st1:metricconverter ProductID="4’" w:st="on">4’</st1:metricconverter> to the arguments of the error.bar functions h
Use (x - y) < threshold if you want to compare floating point vectors. The threshold is the smallest possible difference between your data. --Oorspronkelijk bericht-- Van: s-news-owner@lists.biostat.
The problem is in your sql statement. sqlQuery="create table TRYTABLE as select * from mytable" into sqlQuery=" SELECT * INTO trytable FROM mytable;" This code worked with my database Connection <- "