Displaying 8 results from an estimated 8 matches similar to: "Restructuring Star Wars data from rwars package"
2012 Oct 11
4
Changing NA to 0 in selected columns of a dataframe
I've been beating my head on the table for hours now and don't understand why
this doesn't work. I have a dataframe that I want to change NAs to 0 for
some of the columns and not others. Consider this...
>#create dataframe
> A = c(1:5)
> B = c(6, 7, NA, NA, NA)
> C = c(NA, NA, 13, 14, 15)
> D = c(16:20)
> E = c(21, NA, NA, NA, 25)
> data = as.data.frame ( cbind (
2012 Nov 10
1
help with for loop to test for a condition in a vector
I want my for loop to test for the presence of a term in a vector and return
a value to a new vector. I'm not writing it correctly though. Here's what I
have...
> testfor = letters[1:5]
> x = c("a", "b", "e", "f", "g")
> result = rep(NA, length(testfor))
>
> for (i in testfor){
+ v = any(x == testfor[i])
+ result[i] = v
2009 Sep 30
2
C++ parser for doc.get_data() result.
Xapians!
Did anybody wrote and would like to share a routines that parse result
from doc.get_data() into some key and pair values in C++ ?
Code:
Xapian::Document doc = i.get_document();
string data = doc.get_data();
mymap = parse_result(data);
As you know the data string contain all the data within the document
delimited by "=" sign and "\n" new line and needs to be parse
2020 Jun 01
2
Extended attributes not working on mac
Am 5/30/20 um 8:00 PM schrieb Martin Steiner / 3MF GmbH via samba:
> I changed the configuration and raised the log level, in my opion samba tries to access the non existent double files.
> Samba is now probably writing the data in a netatalk compliant way in the extended attributes of the file but is not reading it.
>
> new configuration:
>
> [Global]
> min protocol = SMB2
2020 Jun 02
0
Extended attributes not working on mac
I did a fresh install of ubuntu right now and changed the configuration as you proposed,
now there it?s showing the tag for about one second but it?s disappearing afterwards.
The attr binary shows the following output (seems to be written again in the extended attributes,
but finder can?t read it):
attr -l rwar
Attribute "DOSATTRIB" has a 32 byte value for rwar
Attribute
2020 Jun 05
2
Extended attributes not working on mac
Any more ideas? It?s not displaying anyway :(
Martin
> Am 02.06.2020 um 14:20 schrieb Martin Steiner / 3MF GmbH <martin.steiner at 3mf-media.de>:
>
> I did a fresh install of ubuntu right now and changed the configuration as you proposed,
> now there it?s showing the tag for about one second but it?s disappearing afterwards.
>
> The attr binary shows the following
2008 Jun 06
32
Dedicate Nic''s to DomU''s
Hey all I''m new to Linux and Virtualizing. I''m trying to dedicate my nic''s to each virtual server. For instance, virt server A would use nic1 and virt server B would use nic2 and so on. I''ve been reading some stuff for this list and to tell you the truth I''m a bit overwhelmed. We are going to run SLES10.1 and Xen. I would appreciate any assistance.
2012 Oct 30
1
rJava Out of Memory Error
I'm running XLConnect 0.2-1 that depends on rJava 0.9-3. I am only able to
work with 2 workbooks before I get this error...
> SppRich = wb["SpeciesRichness"] # This command calls an Excel
> spreadsheet
Error: OutOfMemoryError (Java): GC overhead limit exceeded
I have tried...
> rm(list = ls())
... to clear the workspace, but it doesn't help. I am using RStudio