Displaying 20 results from an estimated 800 matches similar to: "Complex sampling?"
2011 Feb 10
1
Conditional sampling
R experts,
I need to sample two rows without replacement from the following data frame such that
neither row contains the same 'DOW'. For example, I cannot select both a Monday morning
and a Monday afternoon. I am using STRATA_NUM as an index to randomly select rows from,
since this variable indexes all unique permutations of DOW, SITE, and TOD. I know how to
use the sample function
2011 Feb 17
0
Data frame sampling
R users,
I have been trying to write a program in R that will extract rows from a data frame and combine the rows
into a new smaller data frame while meeting several criteria. I would greatly appreciate any advice
that could help me get started down the right path. What I want to do is to extract two rows WEEK
(26 weeks total) from the data frame by sampling without replacement from the
2012 Aug 22
1
Error in if (n > 0)
I've searched the Web with Google and do not find what might cause this
particular error from an invocation of cenboxplot:
cenboxplot(cu.t$quant, cu.t$ceneq1, cu.t$era, range=1.5, main='Total
Recoverable Copper', ylab='Concentration (mg/L)', xlab='Time Period')
Error in if (n > 0) (1L:n - a)/(n + 1 - 2 * a) else numeric() :
argument is of length zero
I do
2010 Mar 05
2
How to assign week numbers to a time-series
Hello everyone,
My progress has stalled on finding a way of creating a somewhat complicated variable to add to my existing dataframe and I am hoping one of you could help me out. The dataframe below contains only a fraction of the data of my complete dataframe, but all of the variables. What I want to do is add another variable named 'WEEK' to this dataframe that is assigned 1 for row 1
2022 Jul 18
1
[Announce] Samba 4.16.3 Available for Download
Release Announcements
---------------------
This is the latest stable release of the Samba 4.16 release series.
Changes since 4.16.2
--------------------
o? Jeremy Allison <jra at samba.org>
?? * BUG 15099: Using vfs_streams_xattr and deleting a file causes a panic.
o? Douglas Bagnall <douglas.bagnall at catalyst.net.nz>
?? * BUG 14986: Add support for bind 9.18.
?? * BUG
2022 Jul 18
1
[Announce] Samba 4.16.3 Available for Download
Release Announcements
---------------------
This is the latest stable release of the Samba 4.16 release series.
Changes since 4.16.2
--------------------
o? Jeremy Allison <jra at samba.org>
?? * BUG 15099: Using vfs_streams_xattr and deleting a file causes a panic.
o? Douglas Bagnall <douglas.bagnall at catalyst.net.nz>
?? * BUG 14986: Add support for bind 9.18.
?? * BUG
2012 Nov 12
5
Matrix to data frame conversion
I have a matrix which I wanted to convert to a data frame. As I could not
succeed and resorted to export to csv and reimport it again. Why did I fail
in the attempt and how can I achieve what I wanted without this
roundabouts?
The original matrix:
> str(comb_model0)
num [1:90, 1:4] 3.5938 0.0274 0.0342 0.0135 0.0207 ...
- attr(*, "dimnames")=List of 2
..$ : chr [1:90]
2010 Feb 26
7
How to add a variable to a dataframe whose values are conditional upon the values of an existing variable
Hi everyone,
I am at my wits end with what I believe would be considered simple by a more experienced R user. I want to know how to add a variable to a dataframe whose values?are conditional?on the values of an existing?variable.?I can't seem to make an ifelse statement work?for my situation.?The existing variable?in my dataframe is?a character variable named DOW which contains abbreviated
2011 Mar 07
1
Associating the day of week to a daily xts object
I have the following xts objetct "temp"
> str(temp)
An ?xts? object from 2010-12-26 to 2011-03-05 containing:
Data: num [1:70, 1] 2.95 0.852 -0.139 1.347 2.485 ...
- attr(*, "dimnames")=List of 2
..$ : NULL
..$ : chr "t_n"
Indexed by objects of class: [POSIXct,POSIXt] TZ: GMT
xts Attributes:
NULL
> temp
t_n
2010-12-26
2005 Jan 25
2
Having problems running palm desktop or the uninstall program
I have a user John Dow on a local machine johnsmachine. I have a samba
user jdow. When I moved the profile john dow to the domain keydomain, I
can't get the install program to run. This is how it looks. I have
local profile johnsmachine/John Dow and roaming profile
keydomain/jdow. When logged into profile johnsmachine/John Dow, I can
install and uninstall the palm software with no
2006 Jun 15
3
Can I call MySql statements directly??
Hi All.
I have a mysql statement that I would really really like to call from my
Ruby program which goes like this:
SELECT a, b, DAYOFWEEK(date_time) as DOW,
HOUR(date_time) at hr,
AVG(x/y)
FROM records;
This is possible by creating a 3-dimentional array of a, b, date_time
containing x/y, and then finding averages and putting it into a
4-dimensional array of a, b, dow,
2011 Jan 04
1
Dovecot-auth crash after upgrade to 1.2.16
Just made FreeBSD 8.1 portupgrade to new Dovecot version 1.2.16 from
1.2.14_1.
In message log I has many records such this
> Jan 4 23:30:11 beta kernel: pid 15096 (dovecot-auth), uid 0: exited on s
>> ignal 11 (core dumped)
>
> Jan 4 23:30:11 beta kernel: pid 15097 (dovecot-auth), uid 0: exited on s
>> ignal 11 (core dumped)
>
> Jan 4 23:30:11 beta kernel: pid 15098
2008 Jul 24
3
DoW Soulstorm crack
I was wondering if anyone has been able to get DoW Soulstorm Running on their Wine. I've looked at several forum lines, and no one seems to have been able to crack it yet. From what i've gathered, the reason it wont work is because of the cd check. If i were able to crack the game so it didnt check for the cd, would it work then? I'm very new to Linux, so please post any replies with a
2012 Feb 17
1
R's list data structure
Given
dayOfWeekName<-c("Mon","Tue","Wed","Thu","Fri","Sat","Sun");
dayOfWeekOrdinal<-c(1,2,3,4,5,6,0);
dayOfWeekWorkDay<-c(TRUE,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE);
weekProfile<-list(dow=dayOfWeekName,dowI=dayOfWeekOrdinal,dowW=dayOfWeekWorkDay)
1. How can I conditionally get dow, dowI, and dowW from weekProfile?
2021 Nov 17
3
stupidly simple crontab problem
Hi all,
This is crazy but I can't see the answer.? In my system crontab I've
added a job to stop the music system at 10:59 on the 11th November, and
restart it at 11:02 on the 11th November
# m??? h??? dom??? mon? dow??? user??? command
? 59? 10???? *???? 11??? *???? root???? /bin/squeezy -all -off
>>/var/log/newplaylist 2>&1
? 02? 11???? *???? 11??? *???? root????
2006 Jan 05
1
sortable_element not recognizing newly added <li> elements
I have a user defined list of items. Using the sortable_element
function, I can manipulate the ordering of this list fine by dragging
each component around.
When I dynamically add another <li> item to this list, the newly added
item is _not_ "draggable" like its other siblings.
Using the sortable_element function, how do I make it aware of newly
added list items? Here is my
2011 Dec 06
4
how to view/edit large matrix/array in R?
head, tail and fix commands don't really work well if I have large
matrix/array for which I would like to be able to scroll up and dow, left
and right ...
Could anybody please help me?
Thanks
[[alternative HTML version deleted]]
2010 Jan 22
2
Question on Merge/Lookup
I need to merge three datasets and don't know how. If I were using SQL, I
would use df3, look up the characteristics of each date in df1 and the value
for each observation in df2.
df1 - unique list of Dates and characteristics of those dates
Date, YYYYMM, YYYYWW, DOW
df2 - the raw data
Date, Place, Value
df3 - all posibile combinations of Date + Place (via
2007 Oct 14
2
GetTimeZoneInformation question
Hi all,
The following code snippet isn''t working terribly well for me. I can get
the Bias, StandardName and DaylightName, but everything else is goofed
up. The alignment seems ok, but maybe I''ve missed something or maybe I
have to do extra work to unpack the SYSTEMTIME structures.
require ''windows/time''
include Windows::Time
buf = 0.chr * 172 #
2011 Sep 08
1
Seasonal and 11-day subset for zoo object
I have a zooreg object and I want to be able to generate a value for seasons
and 11-day composites paste it onto my zoo data frame, along with year,
month and days.
Right now I have the following to work from:
eg. dat.zoo.mdy <- with(month.day.year(time(dat.zoo)), cbind(dat.zoo, year,
month, day, quarter = (month - 1) %/% 3 + 1, dow =
as.numeric(format(time(dat.zoo), "%w"))))
For