rename Questions
2
Solved
I have a pandas dataframe df1 with an index column and an unnamed series of values. I want to assign a name to the unnamed series.
The only way to do this that I know so far is to export to df1.c...
6
Solved
I have a the following structure:
src/
modules/
module1/
js/
main.js
scss/
main.scss
index.html
module2/
js/
main.js
scss/
main.scss
index.html
I'd like to run a grunt task to copy ...
Glair asked 7/3, 2013 at 12:20
2
Solved
I have a dataframe with columns id, feature_1, feature_2, feature_3 as follows.
df = data.frame(
id = sample(letters, 5),
feature_1 = sample(1:10, 5),
feature_2 = runif(5),
feature_3 = rnorm(5)...
4
Solved
The following code renames first column in the data set:
require(dplyr)
mtcars %>%
setNames(c("RenamedColumn", names(.)[2:length(names(.))]))
Desired results:
RenamedColumn cyl disp hp dr...
2
Solved
Suppose I have a folder named my_folder_old in /path/to/folder, how can I create a duplicate named my_folder_new in the same directory?
EDIT
Moreover if my_folder_new already exists, my_folder_ol...
6
I have figured out how to edit batches of files using REN in Windows 7 Command Prompt. However, this time, I am trying to add a prefix to all files but I am unable to do it. All files are tif files...
4
Solved
My company has a ClickOnce application that has been in use with our customers for about a year now.
We're going through a re-branding and want to change the name of the application. However, just...
7
Solved
I like plyr's renaming function rename. I have recently started using dplyr, and was wondering if there is an easy way to rename variables using a function from dplyr, that is as easy to use as to ...
6
Solved
Is there a dead easy way to rename a collection in mongo? Something like:
db.originalCollectionName.rename('newCollectionName');
And if not, what is the best way to go about effectively renaming...
Roswell asked 4/1, 2012 at 19:11
7
Solved
There is no option in the file menu to rename a workspace. Is the recommended practice to close eclipse, rename the folder, and re-open? I worry about some potential dangling references in configur...
4
I am connecting to my remote sftp using below command:
sftp user@host
After inputing password next I get sftp prompt i.e.
sftp>
My job is to move multiple files from directory A to direct...
3
Solved
I have multiple zip files with names such as 001.zip, 002.zip, 003.zip and have the potential to go up to 999.zip. Each zip file has exactly one text file. I would like to extract each zip file usi...
Messina asked 24/7, 2012 at 15:59
2
Solved
Is there a way to rename the file in a FTP directory?
I'm streaming live images from computer to FTP, but problem is that when it uploads the image to FTP it making instant replacement of a file. I...
Jolda asked 22/8, 2012 at 10:7
2
Solved
I'm having a problem with a set of data.
I want to change the values of a column, only for certain values in the rows of data.
My table has this structure:
Var1 Var2
1 A High
2 A High
3 A High
4 ...
3
Solved
Is it possible to rename file when trying to download it?
For example, I would like to store files to folders using their id's but when user downloads file I'd like to return the original filename....
3
Similar questions have been asked many times in SO. But most answers suggested to do it manually, which is very time consuming.
Any free tools that can rename projects (and directories) automatica...
Ehr asked 27/5, 2011 at 2:49
4
I am trying to create a small Bash script to remove hyphens from a filename. For example, I want to rename:
CropDamageVO-041412.mpg
to
CropDamageVO041412.mpg
I'm new to Bash, so be gentle :] Th...
2
Solved
Hey i'm trying to rename some columsn by adding "Last_" with the new version of dplyr but I keep getting this error
Error: `across()` must only be used inside dplyr verbs.
this is my cod...
8
Solved
(Somewhat related question: Enter new column names as string in dplyr's rename function)
In the middle of a dplyr chain (%>%), I would like to replace multiple column names with functions o...
2
Solved
I mirrored a GitHub project years ago. This project participated in the grand "master"-to-"main" branch renaming. I haven't touched my fork in a while, and I have a branch in my...
9
Rename all the files within a folder with prefix "Unix_"
Suppose a folder has two files
a.txt
b.pdf
then they both should be renamed from a single command to
Unix_a.txt
Unix_b.pdf
1
Solved
If I have a dataframe like:
test = DataFrame(A = [1,2,3] , B= [4,5,6])
and I want to change only the name of A, what can I do? I know that I can change the name of all columns together by rename! ...
1
Solved
I don't want to rename a remote branch, as described in Rename master branch for both local and remote Git repositories.
How can I rename a local branch which hasn't been pushed to a remote b...
Norsworthy asked 5/10, 2020 at 19:51
3
Solved
I'm just trying to write a little application that takes a value from a file named 'DATA.DAT' and renames the folder which contains that file with that value.
The .py script runs in another folder...
4
Solved
I have a dataframe with many columns ending in the same suffix, and I want to use rename_at() to remove them all, but I can't figure it out.
library(tidyverse)
my_df <- tibble(id = c(1, 2),
ja...
© 2022 - 2024 — McMap. All rights reserved.