similar to: removing NA from multidmension arrays

Displaying 20 results from an estimated 200 matches similar to: "removing NA from multidmension arrays"

2012 Apr 02
2
sampling rows from a list
Hi: I'm sure this seems like a rudimentary question, but I am not well versed with R syntax for lists. I have a ragged array from which I've removed records (entire rows) with missing data. The functions I used to remove the missing cases resulted in the generation of an R list class object, that looks something like this; mydata [[1]] [,1] [,2] [,3] [1,] 1 2 3 [2,] 4
2012 Apr 25
1
Proper apply function for matrices embedded in lists
Hi: I have a small problem that I'm not quite sure how to figure out. I've generated some randomized (permutated) data which consists of nrows=3 by ncols=165 (see below) per element (3 x 165 = 495 sub-elements). [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14]....... [1,] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [2,]
2011 Apr 24
3
If Then Trouble
Dear R Helpers, I have another one of those problems involving a very simple step, but due to my inexperience I can't find a way to solve it. I had a look at a number of on-line references, but they don't speak to this problem. I have a variable with 20 values > table (testY2$redgroups) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
2013 Oct 27
2
Error from Trying to Mount Btrfs
I have the attached error from trying to mount btrfs on external hard drive. The F.S. was my primary system, then I dd''d it to an external and reinstalled Fedora. I tried to follow https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#Filesystem_can.27t_be_mounted_by_label. I used "# btrfs device scan --all-devices" before attempting to mount.   What should I do?
2005 Sep 15
1
make check FAILS -> Error code 1...comparing d-p-q-r-tests.Rout
Under FreeBSD 5.3, attempting to properly install R-2.1.1, I get the following response when I..... % make ;all finishes without error, then... % make check <ret> . . ---------------------------------------------- comparing d-p-q-r-tests.Rout to d-p-q-r-tests.Rout.save 1004c1004 < [1] mean relative difference 1.2848649e-08 [1] TRUE .....Error code 1 stop in ~R/R-2.1.1/tests
2011 Feb 03
3
R Data Manipulation - Transposing Data by a Given Column, Like User_ID
Hello, I'd like to transpose data to create an analysis-friendly dataframe. See below for an example, I was unable to use t(x) and I couldn't find a function with options like PROC TRANSPOSE in SAS. The ideal solution handles variable quantities of SITE - but beggars can't be choosers. :-) Thank you in advance, Mike ## INPUT DATA USER_ID<-c(1,1,1,2,2,2,3,3,4) SITE
2006 Aug 29
1
Bootstraping for groups and subgroups and joing with other table
Dear R-experts, I have a table with following collumns: State, SamplePlot, Species and BodySize. I sampled bird species at 34 SamplePlots and 5 States (regions) monthly during two years. On each bird record I measured bodysize and identified the species. So I have many records of each species (about 150 species) at each SamplePlot and each Region (State). Now I would like bootstrap
2008 May 02
3
data transformation
Dear all, how can I, with R, transform a presence-absence (0/1) matrix of species occurrences into a presence-only table (3 columns) with the names of the species (1st column), the lat information of the sites (2nd column) and the lon information of the sites (3rd column), as given in the below example? Thanks a lot for your help! Christian my dataframe: site lat lon spec1 spec2 spec3 spec4
2006 Aug 29
0
En: Bootstraping for groups (right data tables)
Dear R-friends, Unfortunately the tables that I "past" on last email gone with bad visual structure. So I send it again. Sorry to do this so confuse. Miltinho ==== Table1 - Bird records State,SampleSite,Species,Bodysize SaoPaulo,Site1,Spp01,4.39 SaoPaulo,Site1,Spp04,4.05 SaoPaulo,Site1,Spp01,2.75 SaoPaulo,Site1,Spp02,8.18 SaoPaulo,Site1,Spp02,0.80
2005 Feb 09
4
subset
Dear all, I am trying to extract rows from a data.frame based on the rowSums != 0. I want to preserve rownames in the first column in the subset. Does anyone know how to extract all species that don't have rowSums equal to zero? Here it is: # dataset x <- data.frame( species=c("sp.1","sp.2","sp.3","sp.4"), site1=c(2,3,0,0), site2=c(0,0,0,0),
2018 Feb 20
2
SAMBA failed join domain DC
On Tue, 20 Feb 2018 17:34:00 +0500 "denis.shigapov" <denis.shigapov at stroylandiya.ru> wrote: > Not join(( > samba-tool domain join example.ru DC -Uvas.lah --password=password > --realm=EXAMPLE.RU --site=SITE2 -d 4 'example.ru' is your dns domain name, you should be using your netbios domain name 'EXAMPLE' Who is 'vas.lah' ? does the user have
2005 Oct 04
2
Joining Dataframes
I am attempting to join several dataframes that summarize sampling effort for different samples into one large data.frame/table. I have looked at the merge command, but have not been clever enough to figure out how to get it to do what I want. A simplified example of what I am trying to do: The dataframes I have look like this (they were generated using the table command) species1.effort
2011 Feb 06
2
Subsampling out of site*abundance matrix
Hello, How can I randomly sample individuals within a sites from a site (row) X species abundance (column) data frame or matrix? As an example, the matrix "abund2" made below. ##### (sorry, Im a newbie and this is the only way I know to get an example on here) abund1 <- c(150, 300, 0, 360, 150, 300, 0, 240, 150, 0, 60, 0, 150, 0, 540, 0, 0, 300, 0, 240, 300, 300,
2012 May 14
2
How to interpret an ANOVA result?
Hello all, here's a real-world example: I'm measuring a quantity (d) at five sites (site1 thru site5) on a silicon wafer. There is a clear site-dependence of the measured value. To find out if this is a measurement artifact I measured the wafer four times: twice in the normal position (posN), and twice rotated by 180 degrees (posR). My data looks like this (full, self-contained code at
2006 Sep 26
1
How to "Pack" a matrix
Hello, Suppose I have a matrix a where a= sp1 sp2 sp3 sp4 sp5 sp6 site1 1 0 1 1 0 1 site2 1 0 1 1 0 1 site3 1 1 1 1 1 1 site4 0 1 1 1 0 1 site5 0 0 1 0 0 1 site6 0 0 1 0 1 0 And I want to pack that matrix so that the upper left corner contains most of the ones and the bottom right corner contains most of the zeros so that matrix b is b= sp3 sp6 sp4 sp1 sp2 sp5 site1 1 1 1 1 0 0 site2
2018 Feb 20
0
SAMBA failed join domain DC
Not join(( samba-tool domain join example.ru DC -Uvas.lah --password=password --realm=EXAMPLE.RU --site=SITE2 -d 4 samba find srv-site3-dc01 and failed join to server DC srv-site3-dc01 lpcfg_load: refreshing parameters from /etc/samba/smb.conf Processing section "[global]" Processing section "[netlogon]" Processing section "[sysvol]" pm_process() returned Yes
2018 Feb 20
3
SAMBA failed join domain DC
On Tue, 20 Feb 2018 14:10:16 +0500 "denis.shigapov" <denis.shigapov at stroylandiya.ru> wrote: It seems that the problem starts here: Could not find machine account in secrets database Yet near the top there is: Setting up secrets.ldb It seems that either 'secrets.ldb' doesn't contain the required info or 'vas.lah' doesn't have the required permissions
2011 Oct 27
2
Consistant test for NAs in a factor when exclude = NULL?
Dear folks? Is there a function to correctly find (and count) the NAs in a factor when exclude=NULL, regardless of whether their origin is in the original data or by subsequent assignment? In example number 1 below, where NAs are assigned by is.na()<-, testing the factor with is.na() finds the correct number of NAs. In example number 2, where the NAs are from the data, neither is.na(), ==NA,
2004 Aug 31
4
rsync crashing Redhat RHEL3.0 server
We are using rsync to mirror around 10 of our websites from dedicated server A to dedicated server B runing RHEL 3.0 and rysnc v2.6.3pre1 in a daemon mode. I am using the following crontab script command on dedicated server A: /usr/local/bin/rsync -avz -e "ssh -i /home/users/admin/publicKey-for-server-B" /home/serverA/site3 serverB::home/mirror Dedicated server B (where the
2013 Feb 25
1
Multicast and Router mode
Hi, I have seen http://www.tinc-vpn.org/pipermail/tinc-devel/2010-October/000473.html and so tried out for myself to see if multicast would work in tinc using routing mode. I'm using tinc 1.0.19. My test involved sending a ping out on 224.1.1.1 (as 224.0.0.0/24 is a special case), and while I could see the traffic reaching the other tinc daemons, it never seemed to go out to the local