search for: one_sample

Displaying 3 results from an estimated 3 matches for "one_sample".

2010 Jul 12
1
long to wide on larger data set
...a <- read.table(textConnection("rs9999853,cv0084,A,A rs999986,cv0084,C,B rs9999883,cv0084,E,F rs9999853,cv0085,G,H rs999986,cv0085,I,J rs9999883,cv0085,K,L"),header=FALSE,sep=",") closeAllConnections() mysamples <- unique(testData$V2) for (one_ind in mysamples) { one_sample <- testData[testData$V2==one_ind,] mywide <- reshape(one_sample, timevar = "V1", idvar = "V2",direction = "wide") # write.table(mywide,file ="newdata.txt",append=TRUE,row.names=FALSE,col.names=FALSE,quote=FALSE) }
2020 Oct 17
10
[RFC] treewide: cleanup unreachable breaks
...52d643a 100644 --- a/drivers/iio/adc/meson_saradc.c +++ b/drivers/iio/adc/meson_saradc.c @@ -591,17 +591,15 @@ static int meson_sar_adc_iio_info_read_raw(struct iio_dev *indio_dev, switch (mask) { case IIO_CHAN_INFO_RAW: return meson_sar_adc_get_sample(indio_dev, chan, NO_AVERAGING, ONE_SAMPLE, val); - break; case IIO_CHAN_INFO_AVERAGE_RAW: return meson_sar_adc_get_sample(indio_dev, chan, MEAN_AVERAGING, EIGHT_SAMPLES, val); - break; case IIO_CHAN_INFO_SCALE: if (chan->type == IIO_VOLTAGE) { ret = regulator_get_voltage(priv->vref); if (ret <...
2020 Oct 17
10
[RFC] treewide: cleanup unreachable breaks
...52d643a 100644 --- a/drivers/iio/adc/meson_saradc.c +++ b/drivers/iio/adc/meson_saradc.c @@ -591,17 +591,15 @@ static int meson_sar_adc_iio_info_read_raw(struct iio_dev *indio_dev, switch (mask) { case IIO_CHAN_INFO_RAW: return meson_sar_adc_get_sample(indio_dev, chan, NO_AVERAGING, ONE_SAMPLE, val); - break; case IIO_CHAN_INFO_AVERAGE_RAW: return meson_sar_adc_get_sample(indio_dev, chan, MEAN_AVERAGING, EIGHT_SAMPLES, val); - break; case IIO_CHAN_INFO_SCALE: if (chan->type == IIO_VOLTAGE) { ret = regulator_get_voltage(priv->vref); if (ret <...