Displaying 20 results from an estimated 6000 matches similar to: "using apply"
2018 May 02
0
using apply
Hi Neha,
Perhaps merge() from base or join from dplyr is what you are looking for.
data. table could also be interesting.
Hth
Ulrik
On Wed, 2 May 2018, 21:28 Neha Aggarwal, <aggarwalneha2000 at gmail.com> wrote:
> Hi
>
> I have 3 dataframes, a,b,c with 0/1 values...i have to check a condition
> for dataframe a and b and then input the rows ids to datframe c . In the if
>
2018 Mar 20
2
Elements of Sets as dataframe column names
Hello all,
I have a set B and a dataframe df. I want to name the columns of the
dataframe after the elements of the set B.
For example, for set B with elements {{"P1"}, {"P2"}, {"P3", "P4"}} I want
to create a new dataframe with 3 columns named {"P1"} and {"P2"} and
{"P3","P4"}.
I tried colnames(df)<-(B). But it
2018 Apr 21
2
Check if row of dataframe is superset of any row in another dataframe.
Hi,
I am looking for a way in which I can check if rows in 1 dataframe are
present in another data frame in a unique way. A row in dataframe should be
super set of any row in another dataframe.
I can write a for loop for it, however, that will be inefficient. So, I am
looking for an efficient way to do this in R.
I have explained it with an example below:
I want to check if a row in dataframe
2018 Mar 11
4
subsetting comparison problem
Hello All,
I am facing a unique problem and am unable to find any help in R help pages
or online. I will appreciate your help for the following problem:
I have 2 data-frames, samples below and there is an expected output
R Dataframe1:
C1 C2 C3 C4...... CN
R1 0 1 0 1
R2 1 0 1 1
R3
2018 May 24
1
Time complexity of functions in R
Hi,
I have implemented an algorithm in R, where i have used while loop and some
set operations inside it, for example,
while(condition){
union(set A,set B)
set C - set D
intersection(set D, set E)
}
I want to calculate the complexity of my algo. Can you tell me the
complexity of union, intersection and set minus operations/functions in R?
Is it O(n) or O(log n) ?
Also can anyone point a good
2018 Mar 12
0
subsetting comparison problem
> On Mar 11, 2018, at 3:32 PM, Neha Aggarwal <aggarwalneha2000 at gmail.com> wrote:
>
> Hello All,
> I am facing a unique problem and am unable to find any help in R help pages
> or online. I will appreciate your help for the following problem:
> I have 2 data-frames, samples below and there is an expected output
>
> R Dataframe1:
> C1 C2
2005 Dec 16
1
Bug in acepack (PR#2352)
This ancient bug was tracked to the acepack library, line 556 in line
src/avas.f
The troublesome line is:
if (x(n).gt.x(1)) go to 30
Since the input arguments are empty, referencing x(1) and x(n) cause
a Segmentation fault, and cause R to crash. Acepack author and
maintainer Rob Tibshirani <tibs at utstat.toronto.edu> has been contacted
with this information. This is not a
2018 Mar 18
1
Set Difference Problem
Hello All,
I am facing a problem and am unable to find much help online as sets
package in R is relatively new.
My problem is as follows:
Set R is made of 2 sets x and y
x<-{"P1", "P2", "P3", "P4"}
y<-{}
R<-set(x,y)
#R={{}, {"P1", "P2", "P3", "P4"}}
i need to use R in a recursive loop where i need to take
2018 Mar 18
1
How to take difference of sets when there is an empty subset involved
Hello,
Problem I am facing is as follows:
Set A is made of 2 sets x and y
x<-{"P1", "P2", "P3", "P4"}
y<-{}
A<-set(x,y)
#A={{}, {"P1", "P2", "P3", "P4"}}
i need to use A in a recursive loop where i need to take set difference of
A and it 's elements.
Example:
for (i in A){
print(i)
2018 Apr 17
2
Time intervals in a datframe
Hi all
I have a list of multiple datframes with the same column headers. The last column in each datframe contains a vector of "Interval" class after I have produced this column using "lubridate" package. I needed to convert my list of dataframes to be in a single dataframe for further analysis. I did this using the following syntax :
SingleDataframe <- ldply
2014 Oct 09
3
help!!
@Scott: Did u use MPD for storing your database??
On Oct 9, 2014 5:12 PM, "Scott Winterstein" <0turn1 at gmail.com> wrote:
> I can help and have alot of exp in Icecast, but not sure about your
> Android need. If you want to use the phone as the server and streaming I
> dont think that would be possible. I have setup many servers tho.
> www.dlradio.org is my private
2014 Oct 09
2
help!!
Yeah i meant that only. But MPD is not working well in Windows. Can you
elaborate other types for creating database ?? Can we fetch songs from that
database on user demand?
On Oct 9, 2014 5:27 PM, "Scott Winterstein" <0turn1 at gmail.com> wrote:
> I have a database of the music in a autodj type of playlist playing the
> music files right from the database... there are many
2018 Apr 17
0
Time intervals in a datframe
> On Apr 17, 2018, at 10:10 AM, Allaisone 1 <allaisone1 at hotmail.com> wrote:
>
>
> Hi all
>
> I have a list of multiple datframes with the same column headers. The last column in each datframe contains a vector of "Interval" class after I have produced this column using "lubridate" package. I needed to convert my list of dataframes to be in a single
2014 Oct 09
2
help!!
I got some other code on stackoverflow and it works. It also uses libshout
library. Now my main concern is on that MPD part !!
On Thu, Oct 9, 2014 at 4:32 PM, Neha Arora <neha1451 at iiitd.ac.in> wrote:
> Actually we people have decided to make a WiFi radio app as our android
> project in college. So we are using icecast for that purpose.. we will be
> implementing icecast in
2014 Oct 09
1
help!!
Thanx a lot. I ll try now :)
On Oct 9, 2014 5:57 PM, "Scott Winterstein" <0turn1 at gmail.com> wrote:
> Yes. You need a server and a programming to the list that users might be
> able to pick songs. Like this...
>
> <link rel="stylesheet" type="text/css" href="
> http://server6.reliastream.com/theme/widget_ondemand.css" />
>
2004 Sep 22
2
Facing problems with C code compilation - Please help.
Hello,
I started using R a month ago - so I am a novice in this area. I am stuck with a problem and need some help urgently.
I am using windows version of R 1.9.1. I am trying to compile C code in it. I have my C code - "hello.c" is lying in C:\Program Files\R\rw1091
This code is -
#include <R.h>
void hello(int *n)
{
int i;
for(i=0;i< *n; i++)
{
2006 Aug 05
14
Rake aborted! on No Rakefile Found error
Hello,
On a command:
rake db:migrate
I get the "rake aborted!" error. The message is:
No Rakefile found (looking for: rakefile, Rakefile, rakebile.rb,
Rakefile.rb)
c:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1822:in
''load_rakefile''
Checking my setup, I see that Rakefile.rb is in the expected path.
Why can''t rake see Rakefile.rb,
2014 Oct 09
2
help!!
He most likely refer to libshout...
http://droidtools.sourceforge.net/content/libogglibvorbis-and-libshout-libraries-android
On Thu, Oct 9, 2014 at 1:13 PM, Scott Winterstein <0turn1 at gmail.com> wrote:
> You want to run a server on Android?
>
> Mit freundlichen Gr??en
> Scott Winterstein
>
> EMAIL: 0turn1 at gmail dot com
>
> On Thu, Oct 9, 2014 at 11:06 AM, Neha
2005 Mar 25
2
tapply and NA value
Hi,
I'm writing for a little help.
I have a dataframe with same NA value and I'd like to obtain the means of the
value of a coloumn grouped by the levels of a factor coloumn of the datframe.
I'm using the function "tapply" but I see that if only a NA value is present
the result is NA.
There is an option to have the correct result or I must use an other function?
Thanks of
2007 Jan 28
4
Use Microsoft shared fax printer?
Hello:
Is it possible to use Samba to send documents to
a Microsoft Shared Fax Printer?
How would I give it the phone number and other recipient
details that normally comes in the popup window when
I print to a shared fax printer from Windows?
Thanks,
Neil
--
Neil Aggarwal, (214)986-3533, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit