Displaying 20 results from an estimated 200 matches similar to: "IFELSE across a 3D array?"
2017 Aug 11
0
Problem with the fdim package
Hm, I am not an expert in this field but trying to use obviously old package which was removed about 5 years ago from CRAN is asking for problems. There is probably some incompatibility between recent R version and obsolete package.
You either
1. need to install/compile R version from 2012 and install/compile this old package for this version.
2. Or you could try to find some similar
2017 Aug 10
2
Problem with the fdim package
Hi,
I?m new to R but I?m interested in using the fdim package to find the fractal dimension of a dataset. I downloaded the the package from https://cran.r-project.org/src/contrib/Archive/fdim/ and successfully installed it together with xgobi.
However, when I try to run the first example, after df <- fdim(mydata,q=0,Alpha=0.3) I get the following error:
Error in .C("pointdif",
2010 Mar 30
1
Adding RcppFrame to RcppResultSet causes segmentation fault
Hi,
I'm a bit puzzled. I uses exactly the same code in RcppExamples
package to try adding RcppFrame object to RcppResultSet. When running
it gives me segmentation fault problem. I'm using gcc 4.1.2 on redhat
64bit. I'm not sure if this is the cause of the problem. Any advice
would be greatly appreciated. Thank you.
Rob.
int numCol=4;
std::vector<std::string>
2005 Apr 29
1
na.action
Hi,
I had the following code:
testp <- rcorr(t(datcm1),type = "pearson")
mat1 <- testp[[1]][,] > 0.6
mat2 <- testp[[3]][,] < 0.05
mat3 <- mat1 + mat2
The resulting mat3 (smaller version) matrix looks like:
NA 0 0 0
0 NA 0 NA
0 0 NA 2
0 0 2 NA
To get to the number of times a '2' appears in the rows, I was
2007 Apr 19
1
read.table with more than one sep
Dear List,
somebody knows, if the following operation can be done in an easier way?
The data rows which should be read into R look like that:
4547;1970.01.01 00:00-1970.01.01 01:00; noData
Unitil now we are doing this procedure:
1. Dividing columns which are separated by ";"
=> temp <- read.table(file ,sep=';', na.strings='noData',
strip.white=TRUE)
=>
2012 May 10
6
averaging two tables (rows with columns)
Hi R user,I am struggling to figure out on how I can calculate the average from the two tables in R. Any one can help me? really your help would be grateful- I am spending so much time to figure it out. It should not be so hard, I think.
I have very big data but I have created a hypothetical data for simplification.
for example
I have : table 1
table 1: species occurance data
2010 Jul 13
2
Checking for duplicate rows in data frame efficiently
I wrote something to check for duplicate rows in a data frame, but it is too inefficient. Is there a way to do this without the nested loops?
This code correctly indicates rows 1-7, 1-8, 2-9 and 7-8 are duplicates.
> m <- matrix(c(1,1,1,1,1, 2,2,2,2,2, 6,6,6,6,6, 3,3,3,3,3, 4,4,4,4,4, 5,5,5,5,5, 1,1,1,1,1, 1,1,1,1,1, 2,2,2,2,2, 7,7,7,7,7), ncol=5, byrow=TRUE)
> df <- data.frame(m)
2004 Apr 27
2
Gcc 3.4.0 and syslinux-2.09 menu
The menu directory won't compile with gcc 3.4.0 because gcc complains
that "ebp" cannot be used as a constraint. If preserving ebp is
necessary then it will have to be done in the assembler code. Gcc 3.3.3
just seems to ignore the constraint. It didn't do anything special to
preserve the register.
I also noticed that getnumrows returns the contents of 0x484 which is
the
2008 Aug 11
1
Unexpected parameter problem using rsaga.geoprocessor() {RSAGA}
Hello,
I discovered SAGA, an interesting free GIS, a few days ago and now, I
would like to use it from within R 2.6.2 using the RSAGA package. I read
the documentation for this package and thought that I understood it
correctly for trying to call some of the SAGA modules. For getting the
information on the usage of and arguments required by the SAGA command
line "Import Binary Raw
2006 Sep 23
2
Question about merge()
If I want to do a join based on *two* matching fields in two data frames,
can merge() handle this? It appears to only handle a single matching column
-- do I need to make a "metacolumn" or is there some way to do this? E.g.:
Dataframe 1 contains columns A,B,C and Dataframe 2 contains A,B,D
I want an output A,B,C,D which places C and D together if A and B match
(otherwise, make two
2008 Nov 25
1
Problem running R from within a script
Howdy Folks,
I am running R version 2.7.2 (2008-08-25) on CentOS 5.2 - the standard RPM
distribution.
I am having a curious occurance trying to run a R script from within a
shell script. Basically, I have a small R script that processes a file.
It takes two parameters - the input file, and the output file. I then
have a shell script that runs the R script for each file matching a glob.
R
2002 Jun 21
1
naming things in functions
Hello,
I'm working with R version 1.5.0 in Windows. I've written a function
(SummaryMat, segment below) which uses a loop to
repeatedly call another function (PercentsMat, segment below).
PercentsMat creates a matrix and adds rows to it each time it is called.
I use deparse(substitute(...)) to get the names of the lists sent to
PercentsMat to use them as row names in the generated
2011 Nov 14
1
Subset of a subset?
Hi All-
I have created a subset of my original csv for the times I am interested in
(9, 12, 3). I have a subset for all of those times then each individually. I
would like to have specific case studies to analyze individually for those
times. For example, I want to look at 2009/06/01-2009/06/10. Is the easiest
way to created a subset of ss? I haven't been able to figure out the easiest
way
2019 Dec 10
0
[Bug 14214] New: --report-special=OPS option to return error code if no data was copied
https://bugzilla.samba.org/show_bug.cgi?id=14214
Bug ID: 14214
Summary: --report-special=OPS option to return error code if no
data was copied
Product: rsync
Version: 3.1.3
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: core
2006 Oct 04
1
A more efficient code using whole object approach?
Dear All,
I have the following code which works fine but takes 16+ hours to run and I was hoping someone could give me a hint as to how I could make it more efficient.
Let me explain what the code is supposed to do. Each single row of the m.o.f matrix (n*p dim) has to go through the following operation Dm*m.o.f[i]^alpha1m where both Dm and alpha1m have n*1 dimensions. Each row of the m.o.f
2007 Dec 26
1
data.frame - how to calculate the number of rows
Hello,
it seems to be a simple problem, but I couldn't find an answer in the
archiv. (I think, it must has something to do with the group-select, like in
php)
I've the following data.frame:
A B C
1 3 6 5
2 4 4 20
3 5 8 2
I want to get the number of the
2011 May 06
1
convert count data to binary data
Is there a way to generate a new dataframe that produces x lines based on the contents of a column?
for example: I would like to generate a new dataframe with 70 lines of data[1, 1:3], 67 lines of data[2, 1:3], 75lines of data[3,1:3] and so on up to numrow = sum(count).
> data
pop fam yesorno count
1 126 1 70
1 127 1 67
1 128 1 75
1 126 0 20
1 127
2004 Oct 23
0
Re: FXTable -- numColumns & resize
On Fri, 22 Oct 2004 13:39:06 -0700, Bob Sidebotham <bob@windsong.bc.ca> wrote:
> In 1.2 FXTable, numColumns is documented as numCols, but should be
> numColumns, I think. Also the examples/table.rb app uses numCols, and
> should use numColumns.
Yes, you''re right. I''ve added both of these bugs to the FXRuby bug
list, found here:
2009 Aug 08
0
[LLVMdev] Profiling in LLVM Patch Followup 1
Applied as r78477.
I do have a few comments on the patch, below, but I'll wait to see
where things are going before acting on them. :)
--
> Index: include/llvm/Analysis/ProfileInfo.h
> ===================================================================
> + // MissingValue - The value that is returned for execution counts in case
> + // no value is available.
> +
2009 Jun 02
2
bigmemory - extracting submatrix from big.matrix object
I am using the library(bigmemory) to handle large datasets, say 1 GB,
and facing following problems. Any hints from anybody can be helpful.
_Problem-1:
_
I am using "read.big.matrix" function to create a filebacked big matrix
of my data and get the following warning:
> x =
read.big.matrix("/home/utkarsh.s/data.csv",header=T,type="double",shared=T,backingfile