Displaying 20 results from an estimated 500 matches similar to: "FLAC-compress data with Python"
2009 Oct 15
3
populating an array
Hi,
Can someone please give me a pointer as to how I can set values of an array?
Why does the code below not work?
my_array <- array(dim=c(2,2))
my_array[][] = 0
my_array
[,1] [,2]
[1,] 0 0
[2,] 0 0
for(i in seq(1,2,by=1)){
for(j in seq(1,2,by=1)){
my_array[i][j] = 5
}
}
Warning messages:
1: In my_array[i][j] = 5 :
number of items to replace is not a multiple of
2013 Apr 02
2
Create a vector without using an external 'if statement'
Dear R-users,
suppose I have three dataframes like these
df1:
mydate min_temp
31032013 12
01042013 8
02042013 -999
df2:
mydate min_temp
31032013 10
01042013 11
02042013 14
df3:
mydate min_temp
31032013 4
01042013 3
02042013 5
where -999 means that the temperature data is not available (at the moment I cannot change it to NA because I am not the db administrator);
suppose also that oggi is
2012 Feb 24
4
Table into a list
Hello,
I am looking for a way to transform an array into a list (or a string).
My array has two columns 1 and 2, and I would like to create a list of the
values.
Let's say I have :
x1 x2
1 a b
2 c d
3 e f
4 g h
What I would like to obtain is a,b,c,d,e,f,g,h.
I tried without success melt and reshape ( reshape(my_array,
2020 Mar 10
2
DWARF .debug_aranges data objects and address spaces
Hello
I've been looking at a debuginfo issue on an out-of-tree target which uses
DWARF aranges.
The problem is that aranges are generated for both data and code objects, and
the debugger gets confused when program addresses overlap data addresses. The
target is a Harvard Architecture CPU, so the appearance of overlapping address
ranges is not in itself a bug as they reside in different
2006 May 31
3
textfield_with_auto_complete - filling two fields
I am going nuts here..
I have a form where users can write a city name (used with
auto_complete) - and once they click on the desired city in the dropdown
menu - I would like to have the Country field filled automatically as
well...
Is this possible at all ?
If so, can somebody please tell me where I can find some documentation
on the subject, or preferrably an example ?
Many thanks in
2012 Mar 19
4
[Arrray] grep -v
Hi everyone,
I am trying to simulate the ''grep -v'' behavior in an array:
Ex:
vgrep([''aaa'',''bbb'',''ccc'',''aaaddd''], ''aaa'')
Would return:
[''bbb'', ''ccc'']
So I tried to use ruby to do it: normally the ''-'' operation should be
2017 Feb 06
3
Centos6.8 and Python33
I've some trouble with installing numpy in python 3.3 on Centos 6.8 as
installation request a different python version...
[root at sge ~]$ yum install python33 python33-python-tools
[root at sge ~]$ scl enable python33 bash
===== *this load Python 3.3.2* ===
[root at sge ~]$ easy_install pip
[root at sge ~]$ pip install numpy
Collecting numpy
Using cached numpy-1.12.0.zip
2006 Aug 07
4
excel
Can anyone help me ???
I want to export some data into MS excel and create a pie or line chart.
How can I export the data? Does it gives any tutorial websites ?
thanks for your help!
--
Posted via http://www.ruby-forum.com/.
2018 Apr 06
9
Semi-OT: install python package in userspace
CentOS 7 box. As there's no package in any of the repos, we're trying to
install scikit-learn in the user's space. It refuses. My late try was,
after d/l a .whl from last year, hoping that would work with the numpy
package in the regular repos, I did a pip install --user scikit-learn...,
and it still seems to want to write to system space: OSError: [Errno 13]
Permission denied:
2018 Apr 06
2
Semi-OT: install python package in userspace
Richard Demeny wrote:
> Just sudo it
>
> On Fri, 6 Apr 2018 17:25 , <m.roth at 5-cent.us> wrote:
>
>> CentOS 7 box. As there's no package in any of the repos, we're trying to
>> install scikit-learn in the user's space. It refuses. My late try was,
>> after d/l a .whl from last year, hoping that would work with the numpy
>> package in the
2018 Apr 06
3
Semi-OT: install python package in userspace
On 04/06/18 13:51, Ulf Volmer wrote:
> On 06.04.2018 18:25, m.roth at 5-cent.us wrote:
>> CentOS 7 box. As there's no package in any of the repos, we're trying to
>> install scikit-learn in the user's space. It refuses. My late try was,
>> after d/l a .whl from last year, hoping that would work with the numpy
>> package in the regular repos, I did a pip
2018 Apr 10
2
Semi-OT: install python package in userspace
Just had a look at scikit-learn. An issue you have with the current
version of this package is that is depends on NumPy (>= 1.8.2). The
version of NumPy in CentOS 7 base is 1.7.1. You may need to look at
building a Python virtual environment. You can google that ;)
On Tue, Apr 10, 2018 at 9:43 AM, Richard Grainger <grainger at gmail.com> wrote:
> I created the epypel (Extra Extra
2020 Jun 23
8
[Incubation] Request to incubate mlir-npcomp
Per the recent (seeming) consensus regarding incubating new projects under
the LLVM organization, I would like to trial the process by requesting to
incubate mlir-npcomp <https://github.com/google/mlir-npcomp>. The project
is still quite young and has been primarily developed part time by myself
and Sean Silva over the last ~2 months. We set it up following discussion
of a Numpy/Scipy op set
2024 Jul 15
2
reticulate + virtual environments
Hi,
I am using reticulate and a virtual environment (not conda) to run
Python scripts from RStudio. However, when I try to use my own
(existing) virtual environment, reticulate does not use it. If I run my
scripts, the installed modules (e.g., py_install("pandas",
"mmstat4.hu.data")) are not found. I believe this happens because
reticulate is using r-reticulate instead of
2024 Jul 15
1
reticulate + virtual environments
Have you tried https://rstudio.github.io/reticulate/ ?
Generally speaking, complex nonstandard package specific questions
such as yours rarely get a reply here -- there are 20,000+ packages
(and counting) after all! As reticulate was created by and integrated
with RStudio/Posit, I would think their site and help resources might
be a better venue. Of course, if you don't use RStudio, you may
2018 Apr 06
4
Semi-OT: install python package in userspace
Valeri Galtsev wrote:
<snip>
>>> On Fri, 6 Apr 2018 17:25 , <m.roth at 5-cent.us> wrote:
>>>
>>>> CentOS 7 box. As there's no package in any of the repos, we're trying
>>>> to install scikit-learn in the user's space. It refuses. My late try
was,
>>>> after d/l a .whl from last year, hoping that would work with the numpy
2010 Aug 25
4
OT: R for iPhone/iPad OS?
No, seriously: I've had more than one person at work wonder what math
toolset could be loaded onto iOS. So, before Matlab, FreeMat,
Mathematia, SciLab, Octave, or numpy (:-) ) produces a version for iPad,
any chance someone is working on R for iPad?
2006 Apr 17
9
ruby on rails book, fundamental question
Hi guys,
bought the ROR book. I understand most of it and really like it. There
is just on thing I just dont get.
Lets take this code for example.
def list
@products = paginate :product, :per_page => 10
end
As far as I understand @products should be some kinda hash or array,
with the data of the Database inside.
How can I display this array ?
One solution is to do it like this (like in
2009 Jun 16
1
mixing effects when joining videos
Hi,
what is the best way to go about mixing effects when joining two
videos, like crossfading?
Once I have the individual images as numpy arrays, the mixing itself
is the easy part (I'll just use numpy + scipy for that, or any other
python lib). However, it's not clear to me how (and especially when)
to handle decoding and encoding properly.
So lets say I create a video tutorial
2009 Feb 11
1
RSPython
Hi all,
I try to utilize RSPython to invoke Python from R. For me it works pretty
fine for basic applications, but I have 3 problems that may be related.
(1) I can't load other packages but "standard" ones also when I adjust the
PythonPath:
> importPythonModule('sys', all=T)
NULL
> importPythonModule('numpy', all=T)
Error in